Microsoft Designing and Implementing DevOps Solutions AZ-400 Dumps in PDF

Free Microsoft AZ-400 Real Questions (page: 8)


Case Study
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.
To start the case study
To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs.
When you are ready to answer a question, click the Question button to return to the question.
Overview
Contoso, Ltd. is a manufacturing company that has a main office in Chicago.
Existing Environment
Contoso plans to improve its IT development and operations processes by implementing Azure DevOps principles. Contoso has an Azure subscription and creates an Azure DevOps organization.
The Azure DevOps organization includes:
-The Docker extension
-A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2019 The Azure subscription contains an Azure Automation account.
Requirements
Planned changes
Contoso plans to create projects in Azure DevOps as shown in the following table.

Technical requirements
Contoso identifies the following technical requirements:
-Implement build agents for Project1.
-Whenever possible, use Azure resources.
-Avoid using deprecated technologies.
-Implement a code flow strategy for Project2 that will:
- Enable Team2 to submit pull requests for Project2.
- Enable Team2 to work independently on changes to a copy of Project2.
- Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2.
-Whenever possible, implement automation and minimize administrative effort.
-Implement Project3, Project5, Project6, and Project7 based on the planned changes.
-Implement Project4 and configure the project to push Docker images to Azure Container Registry.
-

DRAG DROP (Drag and Drop is not supported)
You need to implement the code flow strategy for Project2 in Azure DevOps.
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.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Step 1: Create a repository
A Git repository, or repo, is a folder that you've told Git to help you track file changes in. You can have any number of repos on your computer, each stored in their own folder.
Step 2: Create a fork
Step 3: Add a build policy for the fork
Build policies help teams protect their important branches of development. Policies enforce your team's code quality and change management standards.
Scenario:
Implement a code flow strategy for Project2 that will:
-Enable Team2 to submit pull requests for Project2.
-Enable Team2 to work independently on changes to a copy of Project2.
-Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2.


Reference:

https://docs.microsoft.com/en-us/azure/devops/repos/git/manage-your-branches




Case Study
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.
To start the case study
To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs.
When you are ready to answer a question, click the Question button to return to the question.
Overview
Contoso, Ltd. is a manufacturing company that has a main office in Chicago.
Existing Environment
Contoso plans to improve its IT development and operations processes by implementing Azure DevOps principles. Contoso has an Azure subscription and creates an Azure DevOps organization.
The Azure DevOps organization includes:
-The Docker extension
-A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2019 The Azure subscription contains an Azure Automation account.
Requirements
Planned changes
Contoso plans to create projects in Azure DevOps as shown in the following table.

Technical requirements
Contoso identifies the following technical requirements:
-Implement build agents for Project1.
-Whenever possible, use Azure resources.
-Avoid using deprecated technologies.
-Implement a code flow strategy for Project2 that will:
- Enable Team2 to submit pull requests for Project2.
- Enable Team2 to work independently on changes to a copy of Project2.
- Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2.
-Whenever possible, implement automation and minimize administrative effort.
-Implement Project3, Project5, Project6, and Project7 based on the planned changes.
-Implement Project4 and configure the project to push Docker images to Azure Container Registry.
-

DRAG DROP (Drag and Drop is not supported)
You need to configure Azure Automation for the computers in Pool7.
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.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Step 1: Create a Desired State Configuration (DSC) configuration file that has an extension of .ps1.
Step 2: Run the Import-AzureRmAutomationDscConfiguration Azure Powershell cmdlet
The Import-AzureRmAutomationDscConfiguration cmdlet imports an APS Desired State Configuration (DSC) configuration into Azure Automation. Specify the path of an APS script that contains a single DSC configuration.
Example:
PS C:\>Import-AzureRmAutomationDscConfiguration -AutomationAccountName "Contoso17"-ResourceGroupName "ResourceGroup01" -SourcePath "C:\DSC\client.ps1" -Force
This command imports the DSC configuration in the file named client.ps1 into the Automation account named Contoso17. The command specifies the Force parameter. If there is an existing DSC configuration, this command replaces it.
Step 3: Run the Start-AzureRmAutomationDscCompilationJob Azure Powershell cmdlet
The Start-AzureRmAutomationDscCompilationJob cmdlet compiles an APS Desired State Configuration (DSC) configuration in Azure Automation.


Reference:

https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/import-azurermautomationdscconfigu ration https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/start-azurermautomationdsccompilati onjob



DRAG DROP (Drag and Drop is not supported)
You have an Azure subscription that uses Azure Monitor and contains a Log Analytics workspace.
You have an encryption key.
You need to configure Azure Monitor to use the key to encrypt log data.
Which five 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.
Note: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Customer-Managed key provisioning steps:
Step 1: Create an Azure Key vault and store the key.
Creating Azure Key Vault and storing key. Create or use an existing Azure Key Vault in the region that the cluster is planed, and generate or import a key to be used for logs encryption.
Step 2: Create an Azure Monitor Logs dedicate cluster that has a system-assigned managed identity Clusters uses managed identity for data encryption with your Key Vault. Configure identity type property to SystemAssigned when creating your cluster to allow access to your Key Vault for "wrap" and "unwrap" operations.
Step 3: Grant the system-assigned managed Identity Key permissions for the key vault.
Grant Key Vault permissions.
Create Access Policy in Key Vault to grants permissions to your cluster. These permissions are used by the underlay cluster storage. Open your Key Vault in Azure portal and click Access Policies then + Add Access Policy to create a policy with these settings:
Key permissions—select Get, Wrap Key and Unwrap Key.
Etc.

1. Creating cluster
2. Granting permissions to your Key Vault
3. Updating cluster with key identifier details
4. Linking workspaces
Step 4: Configure the key vault properties for the cluster.
Update cluster with key identifier details.
Step 5: Link the Log Analytics workspace to the cluster
Link workspace to cluster.
This step should be performed only after the cluster provisioning. If you link workspaces and ingest data prior to the provisioning, ingested data will be dropped and won't be recoverable.


Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/logs/customer-managed-keys



You have an X.509 certificate named cert1 that is managed by an external partner named Partner1.
You build a web app named Web1 that will be deployed by using Azure Pipelines. Web1 will be bound to cert1.
You need to ensure that cert1 is available to Azure Pipelines. The solution must ensure that cert1 can only be updated by Partner1.
Where should you store cert1?

  1. the Secure files library in Azure DevOps
  2. a secure enclave
  3. a variable group
  4. an Azure key vault

Answer(s): D

Explanation:

To ensure the X.509 certificate is securely accessible to your Azure Pipeline while restricting update rights strictly to your external partner, you should use Azure Key Vault with Azure Role-Based Access Control (RBAC).
The Azure Key Vault allows you to separate the control (updating) and consumption (reading) of certificates at a granular level.
Step 1: Set Up Azure Key Vault
Step 2: Grant Update Access to the External Partner.
Instead of sharing your account, give the partner a scoped identity.
Step 3: Grant Read Access to Azure Pipelines
Your pipeline needs to retrieve the certificate during deployment without having permission to change it.
Step 4: Link Certificate to Web App via Pipeline
In your Azure Pipeline YAML, use the AzureKeyVault@2 task or link the vault to a Variable Group.


Reference:

https://learn.microsoft.com/en-us/azure/devops/pipelines/release/azure-key-vault



You plan to use a NuGet package in a project in Azure DevOps. The NuGet package is in a feed that requires authentication.
You need to ensure that the project can restore the NuGet package automatically.
What should the project use to automate the authentication?

  1. an Azure Automation account
  2. an Azure Artifacts Credential Provider
  3. an account that has multi-factor authentication (MFA) enabled in Microsoft Entra ID
  4. a service principal in Microsoft Entra ID

Answer(s): B

Explanation:

The Azure Artifacts Credential Provider automates the acquisition of credentials needed to restore NuGet packages as part of your .NET development workflow. It integrates with MSBuild, dotnet, and NuGet(.exe) and works on Windows, Mac, and Linux. Any time you want to use packages from an Azure Artifacts feed, the Credential Provider will automatically acquire and securely store a token on behalf of the NuGet client you're using.


Reference:

https://github.com/Microsoft/artifacts-credprovider



You plan to use Azure DevOps to build and deploy an app that will be hosted in a Kubernetes cluster.
You need to scan the app image for vulnerabilities before the image is deployed to the cluster.
What should you include in the solution?

  1. Microsoft Defender for Containers
  2. Microsoft Defender for App Service
  3. Microsoft Defender for DevOps
  4. Microsoft Defender for Storage

Answer(s): A

Explanation:

Overview of Microsoft Defender for Containers
Microsoft Defender for Containers is the cloud-native solution to improve, monitor, and maintain the security of your clusters, containers, and their applications.
Defender for Containers assists you with four core aspects of container security:
* Environment hardening - Defender for Containers protects your Kubernetes clusters whether they're running on Azure Kubernetes Service, Kubernetes on-premises/IaaS, or Amazon EKS. Defender for Containers continuously assesses clusters to provide visibility into misconfigurations and guidelines to help mitigate identified threats.
* Vulnerability assessment - Vulnerability assessment and management tools for images stored in Azure Container Registry and Elastic Container Registry
* Etc.
Vulnerability assessment
Defender for Containers scans the container images in Azure Container Registry (ACR) and Amazon AWS Elastic Container Registry (ECR) to provide vulnerability reports for your container images, providing details for each vulnerability detected, remediation guidance, real-world exploit insights, and more.


Reference:

https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-containers-introduction



HOTSPOT (Drag and Drop is not supported)
You have a GitHub organization.
You configure the personal access token (PAT) policy shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: can
Classic PATs ______ access the public resources of the organization.
Setting a personal access token policy for your organization
Organization owners can control whether to allow fine-grained personal access tokens and personal access tokens (classic), and can require approval for fine-grained personal access tokens.
*-> Restricting access by personal access tokens (classic)
Organization owners can prevent personal access tokens (classic) from accessing resources owned by the organization. Personal access tokens (classic) will still be able to read public resources within the organization. This setting only controls access by personal access tokens (classic), not fine-grained personal access tokens.
Box 2: can
SSH keys created by using classic PATs ________ access the resources of the organization.
Under Personal access token (classic), select the option that meets your needs:
* Allow access via personal access tokens (classic): Personal access tokens (classic) can access resources owned by the organization.
*-> Restrict access via personal access tokens (classic): Personal access tokens (classic) cannot access resources owned by the organization. SSH keys created by personal access tokens (classic) will continue to work.


Reference:

https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-perso nal-access-token-policy-for-your-organization



HOTSPOT (Drag and Drop is not supported)
You have an Azure subscription.
You plan to use Azure Pipelines to deploy an infrastructure solution that will include an app named App1.
You need to store the secrets that will be used during the deployment. The solution must meet the following requirements:
-The database connection string must be accessible to the deployment pipeline and to App1.
-Signing certificates must only be available for use in the deployment pipeline.
-The solution must minimize development effort.
What should you use to store each type of secret? To answer, select the appropriate options in the answer area.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Secure files
Signing certificates
To store signing certificates for use only in your 2026 deployment pipelines with minimal development effort, Azure Pipelines Secure Files is the superior choice for simple binary assets like certificates.
Secure Files provides the most streamlined experience for infrastructure and app deployment because it handles the binary file format natively without requiring additional code to "reconstruct" the certificate from a vault secret.

Box 2: Azure Key Vault
The database connection string
The industry-standard "best" practice for storing and accessing a database connection string in Azure Pipelines and an app is to use Azure Key Vault combined with Managed Identities.
This approach ensures the secret is never hardcoded, is encrypted at rest, and remains invisible in logs.
1. Store the Secret in Azure Key Vault
Create a Secret: Store your database connection string in an Azure Key Vault as a "Secret".
Security: This centralizes sensitive data, removing it from source control and configuration files.
2. Access the Secret in Azure Pipelines
3. Provide the Secret to the App
For the application to access the connection string without code changes:
Key Vault References: In the Azure App Service configuration, set the connection string value to a Key Vault Reference. The syntax is @Microsoft.KeyVault(SecretUri=...).
Managed Identity: Enable a System-assigned Managed Identity for your App


Reference:

https://learn.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops https://stackoverflow.com/questions/61496963/seperating-connectionstring-from-source-control-and-be-able-to -perform-integrati



Share your comments for Microsoft AZ-400 exam with other users:

A
Anonymous User
4/13/2026 1:00:51 PM

Question 2:

  • Answer: D. Azure Advisor

  • Why: To view security-related recommendations for resources in the Compute and Apps area (including App Service Web Apps and Functions), you use Azure Advisor. Advisor surfaces personalized best-practice recommendations across resources, including security, and shows which resources are affected and the severity.

  • Why not the others:
- Azure Log Analytics is for ad-hoc querying of telemetry, not for viewing security recommendations. - Azure Event Hubs is for streaming telemetry data, not for security recommendations.
  • Quick tip: In the portal, navigate to Azure Advisor and check the Security recommendations for App Services to see actionable items and affe

R
Rian
3/19/2026 9:12:10 AM

This is very good and accurate. Explanation is very helpful even thou some are not 100% right but good enough to pass.

AI Tutor 👋 I’m here to help!