Free AZ-400 Exam Braindumps
Designing and Implementing Microsoft DevOps Solutions Questions 13–17 (page: 16)

Updated On: 16-Nov-2026

HOTSPOT (Drag and Drop is not supported)
You have an Azure subscription.
You have a project in Azure DevOps.
You have an Azure Repos repository named repo1 that contains Bicep modules.
You need to develop an infrastructure as code IaC solution that will be deployed by using the Bicep modules. The solution must meet the following requirements:
-Automatically deploy resources to the subscription.
-Ensure that the deployed resources comply with organization standards.
What should you use for each requirement? To answer, select the appropriate options in the answer area.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Azure Pipelines
To develop an Infrastructure as Code (IaC) solution that fulfills the requirements, you must implement Azure Pipelines to automate the deployments and integrate Azure Policy paired with the Bicep Linter to guarantee organizational standard compliance.
Automate Resource Deployment
To automatically deploy your resources to the Azure subscription, use Azure Pipelines integrated with your Azure DevOps project and repo1 repository:
Create a Service Connection: Navigate to Project Settings > Service Connections in Azure DevOps. Create an Azure Resource Manager service connection targeting your subscription using Workload Identity Federation for a secure, passwordless authentication model.
Configure a CI/CD Pipeline: Define a multi-stage YAML pipeline file (azure-pipelines.yml) inside repo1. Configure the pipeline to trigger automatically whenever updates or pull requests are made to your main production branch.
Utilize Azure CLI / Azure PowerShell Tasks: Add a task within your continuous deployment (CD) phase that targets the subscription scope (e.g., AzureCLI@2) to execute the deployment command.
Box 2: Azure Policy
Ensure Compliance with Organizational Standards
To ensure that your Bicep files align with organizational patterns and security standards before and after execution, apply a shift-left validation approach:
*-> Leverage Azure Policy: Ensure your Azure subscription is governed by Azure Policy.
When the pipeline initializes a deployment, the underlying Azure Resource Manager (ARM) evaluation engine automatically cross-references your Bicep templates against organizational initiatives or definitions. If any module tries to break compliance (e.g., deploying unauthorized SKUs or unencrypted resources), Azure Policy will deny the deployment instantly.
Enforce Pre-Deployment Linting: Ensure your pipeline runs a validation step using the built-in Bicep Linter and the az bicep build command. This automatically parses your modules against structural constraints, naming requirements, and security best practices.
Implement "What-If" Proactive Checks: Add a pre-flight validation phase inside your build pipeline that uses the Azure Deployment What-If operation (az deployment sub what-if). This previews exactly what configuration changes will take place in the cloud, comparing them against the target environment.


Reference:

https://www.reddit.com/r/AZURE/comments/1gjhfnu/how_do_you_do_iac_with_azure_devops/



You have an existing project in Azure DevOps.
You plan to integrate GitHub as the repository for the project.
You need to ensure that Azure Pipelines runs under the Azure Pipelines identity.
Which authentication mechanism should you use?

  1. Microsoft Entra ID
  2. Personal Access Token (PAT)
  3. GitHub App
  4. OAuth

Answer(s): C

Explanation:

Azure Pipelines must be granted access to your repositories to trigger their builds, and fetch their code during builds.
There are three authentication types for granting Azure Pipelines access to your GitHub repositories while creating a pipeline.

GitHub app authentication
The Azure Pipelines GitHub App is the recommended authentication type for continuous integration pipelines. After you install the GitHub App in your GitHub account or organization, your pipeline will run without using your personal GitHub identity. Builds and GitHub status updates will be performed using the Azure Pipelines identity. The app works with GitHub Checks to display build, test, and code coverage results in GitHub.


Reference:

https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/github



DRAG DROP (Drag and Drop is not supported)
You have a project in Azure DevOps named Project1 that contains two Azure DevOps pipelines named Pipeline1 and Pipeline2.
You need to ensure that Pipeline1 can deploy code successfully to an Azure web app named webapp1. The solution must ensure that Pipeline2 does not have permission to webapp1.
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 service principal in Microsoft Entra ID
We need it in step 3.
Step 2: In Project1, create a service connection
You can create a connection from Azure Pipelines to external and remote services for executing tasks in a job. Once you establish a connection, you can view, edit, and add security to the service connection
Step 3: In Project, configure permissions.
To authorize a service connection for a specific pipeline, open the pipeline by selecting Edit and queue a build manually. You see a resource authorization error and an "Authorize resources" action on the error. Choose this action to explicitly add the pipeline as an authorized user of the service connection.
Azure Resource Manager service connection
Use the following parameters to define and secure a connection to a Microsoft Azure subscription using Service Principal Authentication (SPA) or an Azure managed Service Identity. The dialog offers two main modes:
* Automated subscription detection. In this mode, Azure Pipelines queries Azure for all of the subscriptions and instances to which you have access. They use the credentials you're currently signed in with in Azure Pipelines (including Microsoft accounts and School or Work accounts).
If you don't see the subscription you want to use, sign out of Azure Pipelines and sign in again using the appropriate account credentials.
*-> Manual subscription pipeline. In this mode, you must specify the service principal you want to use to connect to Azure. The service principal specifies the resources and the access levels that are available over the connection.
Use this approach when you need to connect to an Azure account using different credentials from the credentials you're currently signed in with in Azure Pipelines. It's useful way to maximize security and limit access. Service principals are valid for two years.


Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/library/connect-to-azure https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints



HOTSPOT (Drag and Drop is not supported)
You have a project in Azure DevOps that has three teams as shown in the Teams exhibit. (Click the Teams tab.)

You create a new dashboard named Dash1.
You configure the dashboard permissions for the Contoso project as shown in the Permissions exhibit (Click the Permissions tab.)

All other permissions have the default values set.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: No
Box 2: Yes
Contoso Teams is the default project team.
Box 3: Yes


Reference:

https://docs.microsoft.com/en-us/azure/devops/report/dashboards/charts-dashboard-permissions-access



You have a private project in Azure DevOps.
You need to ensure that a project manager can create and save custom work item queries to report on the project's progress. The solution must use the principle of least privilege.
To which security group should you add the project manager?

  1. Reader
  2. Project Collection Administrators
  3. Contributor
  4. Project Administrators

Answer(s): C

Explanation:

Contributors have permissions to contribute fully to the project code base and work item tracking. The main permissions they don't have or those that manage or administer resources.


Reference:

https://docs.microsoft.com/en-us/azure/devops/organizations/security/permissions



Viewing page 16 of 81
Viewing questions 76 - 80 out of 398 questions


Post your Comments and Discuss Microsoft AZ-400 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!