Free AZ-400 Exam Braindumps
Designing and Implementing Microsoft DevOps Solutions Questions 48–52 (page: 23)

Updated On: 16-Nov-2026

You have a project in Azure DevOps that contains a pipeline named Pipeline1 and two teams named Team1 and Team2.
You need to ensure that only the members of Team1 can update the passwords used in Pipeline1.
The solution must meet the following requirements:
-Prevent the members of Team2 from viewing the passwords.
-Minimize administrative effort.
What should you use to store the passwords?

  1. Azure App Configuration secrets
  2. Azure Key Vault
  3. secure files
  4. secret variables

Answer(s): B

Explanation:

To meet the requirements for low administration, secret security, and team-based access control, the best solution is to store the passwords in an Azure DevOps Variable Group linked to an Azure Key Vault.
Why this is "Low Administration"
No Manual Updates: When a password changes in Key Vault, the pipeline automatically picks up the latest version.
Inheritance: You can set permissions at the Library level rather than for every single variable group. Audit Trail: Azure Key Vault provides detailed logs of who accessed or changed a secret.
The Solution: Azure Key Vault + Variable Groups
This approach ensures passwords are never stored in plain text and leverages existing Azure permissions to minimize manual management.
1. Store Passwords in Azure Key Vault
Create an Azure Key Vault in your Azure subscription.
Add your passwords as Secrets.
Administration Win: Centralized management outside of DevOps; secrets can be rotated without touching pipeline code.
2. Link to Azure DevOps Variable Group
In Azure DevOps, go to Pipelines > Library.Create a new Variable Group.
Toggle the switch "Link secrets from an Azure key vault as variables".
Select your vault and choose the secrets to map.
3. Configure Team Permissions


Reference:

https://learn.microsoft.com/en-us/azure/devops/pipelines/library/link-variable-groups-to-key-vaults



Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You plan to update the Azure DevOps strategy of your company.
You need to identify the following issues as they occur during the company’s development process:
-Licensing violations
-Prohibited libraries
Solution: You implement continuous integration.
Does this meet the goal?

  1. Yes
  2. No

Answer(s): B

Explanation:

Correct:
* You implement automated security testing.
Incorrect:
* You implement continuous deployment.
* You implement continuous integration
* You implement pre-deployment gates.
Note:
You can use Mend Bolt with Azure DevOps to automatically detect alerts on vulnerable open source components, outdated libraries, and license compliance issues in your code.
Azure DevOps integration with Mend Bolt will enable you to:
Detect and remedy vulnerable open source components.
* Generate comprehensive open source inventory reports per project or build.
*-> Enforce open source license compliance, including dependencies’ licenses.
* Identify outdated open source libraries with recommendations to update.
Note 2: WhiteSource is the leader in continuous open source software security and compliance management.
WhiteSource integrates into your build process, irrespective of your programming languages, build tools, or development environments. It works *automatically*, continuously, and silently in the background, checking the security, licensing, and quality of your open source components against WhiteSource constantly-updated definitive database of open source repositories.


Reference:

https://azuredevopslabs.com/labs/vstsextend/whitesource/



DRAG DROP (Drag and Drop is not supported)
You have an Azure Repos repository named Repo1 that is used for source control.
You need to configure code scanning for Repo1.
Which three tasks should the pipeline perform in sequence? To answer, move the appropriate tasks from the list of tasks 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: Advance Security Initialize CodeQL
Working with GitHub Advanced Security for Azure DevOps
Setup Code Scanning
Code scanning in GitHub Advanced Security for Azure DevOps lets you analyze the code in an Azure DevOps repository to find security vulnerabilities and coding errors. Any problems identified by the analysis are raised as an alert. Code scanning uses CodeQL to identify vulnerabilities.
Example:
1. Select and Edit the pipeline you want to add scanning to
2. Locate the section where the build steps are defined
3. Add the task Initialize CodeQL(ms.advancedsecurity-tasks.codeql.init.AdvancedSecurity-Codeql-Init@1) directly to your YAML pipeline file. This task will be added before the Dotnet build. [Step 1]
4. task: ms.advancedsecurity-tasks.codeql.init.AdvancedSecurity-Codeql-Init@1
- task: ms.advancedsecurity-tasks.codeql.analyze.AdvancedSecurity-Codeql-Analyze@1. [Step 3] Add this task after dependency scanning. [Step 2]
5. Click Save to save the pipeline configuration file.
Step 2: Advance Security Dependency scanning
Step 3: Advance Security Perform CodeQL Analysis


Reference:

https://azuredevopslabs.com/labs/azuredevops/advancedsecurity/



DRAG DROP (Drag and Drop is not supported)
You have an Azure subscription that contains a project in Azure DevOps named Project1. In Microsoft Entra ID, you have three users that require access to Project1 as shown in the following table.

You need to ensure that the users have the appropriate permissions. The solution must use the principle of least privilege.
To which permission group in Azure DevOps should you add each user? To answer, drag the appropriate permission groups to the correct users. Each permission group 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.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Readers
Default repository permissions
By default, members of the project Contributors group have permissions to contribute to a repository. This includes the ability to create branches, create tags, and manage notes.


Reference:

https://docs.microsoft.com/en-us/azure/devops/repos/git/set-git-repository-permissions?view=azure-devops



HOTSPOT (Drag and Drop is not supported)
You have an Azure subscription that contains an Azure key vault named KV1.
You plan to create an Azure Pipelines pipeline named Pipeline1 that will be used to deploy the following resources:
-20 virtual machines
-An Azure SQL database named DB1
The virtual machines will authenticate to DB1 by using secrets retrieved from KV1.
You need to recommend which type of identity and authorization method the virtual machines should use to retrieve the secrets from KV1. The solution must minimize administrative effort.
What should you recommend? 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: User-assigned managed identity
Identity:
User-assigned identities can be used by multiple resources [20 VMs], and their life cycles are decoupled from the resources’ life cycles with which they’re associated.
Box 2: Access policy
You can store credentials for data stores and computes in an Azure Key Vault. Azure Data Factory retrieves the credentials when executing an activity that uses the data store/compute.
To reference a credential stored in Azure Key Vault, you need to:
1. Retrieve data factory managed identity by copying the value of "Managed Identity Object ID" generated along with your factory. If you use ADF authoring UI, the managed identity object ID will be shown on the Azure Key Vault linked service creation window; you can also retrieve it from Azure portal.
2. Grant the managed identity access to your Azure Key Vault. In your key vault -> Access policies -> Add Access Policy, search this managed identity to grant Get and List permissions in the Secret permissions dropdown. It allows this designated factory to access secret in key vault.
3. Create a linked service pointing to your Azure Key Vault.
4. Create data store linked service, inside which reference the corresponding secret stored in key vault.


Reference:

https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/managed-identity-best-pra ctice-recommendations https://learn.microsoft.com/en-us/azure/data-factory/store-credentials-in-key-vault



Viewing page 23 of 81
Viewing questions 111 - 115 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!