ExamGecko
Home / Microsoft / AZ-400 / List of questions
Ask Question

Microsoft AZ-400 Practice Test - Questions Answers, Page 4

List of questions

Question 31

Report
Export
Collapse

HOTSPOT

You manage the get repository for a large enterprise application.

You need to minimize the data size of the repository.

How should you complete the commands? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 31 87027 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 31 87027 10022024015257000

Explanation:

Box 1: --aggressive

Cleanup unnecessary files and optimize the local repository:

get gc --aggressive

Box 2: prune

Prune all unreachable objects from the object database:

get prune

Reference:

https://gist.github.com/Zoramite/2039636

asked 02/10/2024
Takenobu Tanida
36 questions

Question 32

Report
Export
Collapse

DRAG DROP

You provision an Azure Kubernetes Service (AKS) cluster that has RBAC enabled. You have a Helm chart for a client application.

You need to configure Helm and Tiller on the cluster and install the chart.

Which three commands should you recommend be run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.


Microsoft AZ-400 image Question 32 87028 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 32 87028 10022024015257000

Explanation:

Step 1: Kubectl create

You can add a service account to Tiller using the --service-account <NAME> flag while you’re configuring Helm (step 2 below). As a prerequisite, you’ll have to create a role binding which specifies a role and a service account name that have been set up in advance.

Example: Service account with cluster-admin role

$ kubectl create -f rbac-config.yaml

serviceaccount "tiller" created

clusterrolebinding "tiller" created

$ helm init --service-account tiller

Step 2: helm init

To deploy a basic Tiller into an AKS cluster, use the helm init command.

Step 3: helm install

To install charts with Helm, use the helm install command and specify the name of the chart to install.

References:

https://docs.microsoft.com/en-us/azure/aks/kubernetes-helm

https://docs.helm.sh/using_helm/#tiller-namespaces-and-rbac

asked 02/10/2024
Jesus Ignacio Morales Vivancos
42 questions

Question 33

Report
Export
Collapse

DRAG DROP

You are implementing an Azure DevOps strategy for mobile devices using App Center.

You plan to use distribution groups to control access to releases.

You need to create the distribution groups shown in the following table.

Microsoft AZ-400 image Question 33 87029 10022024015257000000

Which type of distribution group should you use for each group? To answer, drag the appropriate group types to the correct locations. Each group type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 33 87029 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 33 87029 10022024015257000

Explanation:

Box1: Private

In App Center, distribution groups are private by default. Only testers invited via email can access the releases available to this group.

Box 2: Public

Distribution groups must be public to enable unauthenticated installs from public links.

Box 3: Shared

Shared distribution groups are private or public distribution groups that are shared across multiple apps in a single organization.

Reference:

https://docs.microsoft.com/en-us/appcenter/distribution/groups

asked 02/10/2024
Jeffrey Tiffany
43 questions

Question 34

Report
Export
Collapse

HOTSPOT

You need to create deployment files for an Azure Kubernetes Service (AKS) cluster. The deployments must meet the provisioning storage requirements shown in the following table.

Microsoft AZ-400 image Question 34 87030 10022024015257000000

Which resource type should you use for each deployment? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 34 87030 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 34 87030 10022024015257000

Explanation:

Deployment 1: Kubernetes.io/azure-file

You can use Azure Files to connect using the Server Message Block (SMB) protocol.

Deployment 2: Kubernetes.io/azure-disk

Deployment 3: azurekeyvault-flexvolume

azurekeyvault-flexvolume: Key Vault FlexVolume: Seamlessly integrate your key management systems with Kubernetes. Secrets, keys, and certificates in a key management system become a volume accessible to pods. Once the volume is mounted, its data is available directly in the container filesystem for your application.

Incorrect Answers:

blobfuse-flexvolume: This driver allows Kubernetes to access virtual filesystem backed by the Azure Blob storage.

References:

https://docs.microsoft.com/bs-cyrl-ba/azure/aks/azure-files-dynamic-pv

https://docs.microsoft.com/en-us/azure/aks/azure-disks-dynamic-pv

asked 02/10/2024
Padmavathi Jawaharlal
35 questions

Question 35

Report
Export
Collapse

DRAG DROP

You manage the get repository for a large enterprise application.

During the development of the application, you use a file named Config.json.

You need to prevent Config.json from being committed to the source control whenever changes to the application are committed. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.


Microsoft AZ-400 image Question 35 87031 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 35 87031 10022024015257000

Explanation:

Step 1: Delete and recreate the repository.

Step 2: Add Config.json to the .gitignore file

Each line in the .gitignore excludes a file or set of files that match a pattern.

Example:

# ignore a single file

Config.json

Step 3: Run the get add .gitignore command

At the initial commit we want basically move from Untracked to Staged, for staging we have to indicate which file we want to move or specify a pattern, as example:

Reference:

http://hermit.no/how-to-find-the-best-gitignore-for-visual-studio-and-azure-devops/

https://geohernandez.net/how-to-add-an-existing-repository-into-azure-devops-repo-with-git/

asked 02/10/2024
ALEXANDRE NGUYEN
36 questions

Question 36

Report
Export
Collapse

HOTSPOT

You are finalizing a release in GitHub.

You need to apply the following labels to the release:

Name

Email

Release v3.0

Release date

How should you complete the get command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 36 87032 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 36 87032 10022024015257000

Explanation:

Box 1; tag

Tagging. Like most VCSs, get has the ability to tag specific points in a repository’s history as being important. Typically, people use this functionality to mark release points (v1.0, v2.0 and so on).

Box 2: -a

Creating an annotated tag in get is simple. The easiest way is to specify -a when you run the tag command:

Example:

$ get tag -a v1.4 -m "my version 1.4"

Box 3: -m

Reference:

https://git-scm.com/book/en/v2/Git-Basics-Tagging

asked 02/10/2024
Sundarrajan Mugunthan
34 questions

Question 37

Report
Export
Collapse

DRAG DROP

Your company has a project in Azure DevOps.

You plan to create a release pipeline that will deploy resources by using Azure Resource Manager templates. The templates will reference secrets stored in Azure Key Vault.

You need to recommend a solution for accessing the secrets stored in the key vault during deployments. The solution must use the principle of least privilege.

What should you include in the recommendation? To answer, drag the appropriate configurations to the correct targets. Each configuration may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 37 87033 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 37 87033 10022024015257000

Explanation:

https://docs.microsoft.com/en-us/azure/key-vault/general/secure-your-key-vault

asked 02/10/2024
Vipul Ishan
39 questions

Question 38

Report
Export
Collapse

DRAG DROP

As part of your application build process, you need to deploy a group of resources to Azure by using an Azure Resource Manager template located on GitHub.

Which three action should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.


Microsoft AZ-400 image Question 38 87034 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 38 87034 10022024015257000

Explanation:

Step 1: Create a release pipeline

You need to create a new pipeline.

You can integrate Azure Resource Manager templates (ARM templates) with Azure Pipelines for continuous integration and continuous deployment (CI/CD).

Step 2: Add an Azure Resource Group Deployment task

Step 3: Set the template parameters

Reference:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/add-template-to-azure-pipelines

asked 02/10/2024
Evans Sajere
22 questions

Question 39

Report
Export
Collapse

HOTSPOT

You are configuring a release pipeline in Azure DevOps as shown in the exhibit.

Microsoft AZ-400 image Question 39 87035 10022024015257000000

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 39 87035 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 39 87035 10022024015257000

Explanation:

Box 1: 7

Box 2: web application artifact

asked 02/10/2024
Adish Narayan
38 questions

Question 40

Report
Export
Collapse

DRAG DROP

Your company plans to deploy an application to the following endpoints:

Ten virtual machines hosted in Azure

Ten virtual machines hosted in an on-premises data center environment

All the virtual machines have the Azure Pipelines agent.

You need to implement a release strategy for deploying the application to the endpoints.

What should you recommend using to deploy the application to the endpoints? To answer, drag the appropriate components to the correct endpoints. Each component may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 40 87036 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 40 87036 10022024015257000

Explanation:

Box 1: A deployment group

When authoring an Azure Pipelines or TFS Release pipeline, you can specify the deployment targets for a job using a deployment group. If the target machines are Azure VMs, you can quickly and easily prepare them by installing the Azure Pipelines Agent Azure VM extension on each of the VMs, or by using the Azure Resource Group Deployment task in your release pipeline to create a deployment group dynamically.

Box 2: A deployment group

References: https://docs.microsoft.com/en-us/azure/devops/pipelines/release/deployment-groups

asked 02/10/2024
Mourad Tannous
24 questions
Total 489 questions
Go to page: of 49
Search

Related questions