Free AZ-400 Exam Braindumps
Designing and Implementing Microsoft DevOps Solutions Questions 38–42 (page: 21)

Updated On: 16-Nov-2026

You have an Azure DevOps organization.
You are designing an automated security and compliance solution that will use GitHub Advanced Security for Azure DevOps.
You need to ensure that security checks and compliance requirements are enforced automatically throughout the development lifecycle.
Which two features should you include in the solution? Each correct answer presents part of the solution.
Note: Each correct selection is worth one point.

  1. code linting
  2. dependency scanning
  3. pull request annotation scanning
  4. secret scanning push protection
  5. automated approvals

Answer(s): B,D

Explanation:

B: Dependency scanning
Dependency scanning in GitHub Advanced Security for Azure DevOps detects the open source components used in your source code and detects if there are any associated vulnerabilities. Any found vulnerabilities from open source components get flagged as an alert.
Dependency scanning generates an alert for any open-source component, direct or transitive, found to be vulnerable that your code depends upon. Direct vulnerabilities are the libraries your code directly uses. Transitive dependencies are the libraries or other software that direct dependencies use.
D: Secret scanning - Detect secrets, for example keys and tokens, that have been checked into private repositories. If push protection is enabled, GitHub also detects secrets when they are pushed to your repository. Secret scanning alerts for users and push protection are available and free of charge for all public repositories on GitHub.com.
Incorrect:
Not A: CodeQL CLI - Run CodeQL processes locally on software projects or to generate code scanning results for upload to GitHub.
You can use the CodeQL CLI to:
Run CodeQL analyses using queries provided by GitHub engineers and the open source community Generate code scanning alerts that you can upload to display in GitHub
Create CodeQL databases to use in the CodeQL for Visual Studio Code extension.
Develop and test custom CodeQL queries to use in your own analyses
Note: A GitHub Advanced Security license provides the following additional features for private repositories:
* Code scanning
* CodeQL CLI -
* Secret scanning
* Dependency review -
* Dependency review -


Reference:

https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security https://learn.microsoft.com/en-us/azure/devops/repos/security/github-advanced-security-dependency-scanning



You use release pipelines in Azure Pipelines to deploy an app. Secrets required by the pipeline are stored as pipeline variables.
Logging of commands is enabled for the Azure Pipelines agent.
You need to prevent the values of the secrets from being logged.
What should you do?

  1. Mark the pipeline variables as secret.
  2. Use variable groups.
  3. Pass secrets as pipeline variables.
  4. Store secrets in environment variables.

Answer(s): D

Explanation:

Azure Pipelines, Set secret variables
We make an effort to mask secrets from appearing in Azure Pipelines output, but you still need to take precautions. Never echo secrets as output. Some operating systems log command line arguments. Never pass secrets on the command line. Instead, we suggest that you map your secrets into environment variables.


Reference:

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-secret-variables



You plan to provision a self-hosted Linux agent.
Which authentication mechanism should you use to register the self-hosted agent?

  1. personal access token (PAT)
  2. SSH key
  3. Alternate credentials
  4. certificate

Answer(s): A

Explanation:

Correct:
To register a self-hosted Linux agent for Azure Pipelines, you have several authentication options.
* device code flow
You can use the device code flow (referred to as AAD in the configuration script) if you want to authenticate interactively without generating a long-lived token yourself.
* personal access token (PAT)
Use a personal access token (PAT) if your Azure DevOps Server or TFS instance and the agent machine are not in a trusted domain. PAT authentication is handled by your Azure DevOps Server or TFS instance instead of the domain controller.
Note: Authentication Methods for Registration
When you run the ./config.sh script on your Linux machine, it will prompt you for an authentication type. The primary options are:
Personal Access Token (PAT): The most common method. You generate a token in Azure DevOps with the Agent Pools (read, manage) scope and paste it when prompted.
Device Code Flow (AAD): Select this by entering AAD at the prompt. The script will provide a code and a URL (e.g., https://microsoft.com/devicelogin). You enter the code in a browser on any device to sign in with your Entra ID (Azure AD) credentials.
Service Principal (SP): Ideal for automated setup. You provide the Application (Client) ID, Tenant ID, and Client Secret.
Incorrect:
* Alternate credentials
* certificate
* SSH key


Reference:

https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agent-authentication-options



DRAG DROP (Drag and Drop is not supported)
You have an Azure Key Vault that contains an encryption key named key1.
You plan to create a Log Analytics workspace that will store logging data.
You need to encrypt the workspace by using key1.
Which four 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:




Customer-Managed key provisioning steps (assuming there already is an Azure Key Vault):
Step 1: Enable soft delete for the key vault.
The Azure Key Vault must be configured as recoverable, to protect your key and the access to your data in Azure Monitor. You can verify this configuration under properties in your Key Vault, both Soft delete and Purge protection should be enabled.
Step 2: Create a Log Analytics cluster.
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 permissions to 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: Link workspace
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 manage projects by using Azure Boards.
You have a current work item named itemA that is dependent on a work item named itemB.
You need to be able to trace the dependency for itemA.
What should you do in the web portal for Azure DevOps?

  1. From Backlogs, open the context menu, select Add link, and then select itemB. Set Link type to Related and add the ID of item
  2. From itemA, open the Links tab, and then select Add link. Set Link type to Predecessor and add the ID of item
  3. From itemA, open the Links tab, and then select Add link. Set Link type to Related and add the ID of itemB.
  4. Add a Parent link to the user story of itemA.

Answer(s): B

Explanation:

To trace and define a dependency for the itemA on a itemB in the Azure DevOps web portal, you should open itemA, go to the Links tab, select Add link -> Existing item, set the Link type to Predecessor, and enter the ID of itemB.
Predecessor means that itemB must finish before itemA can start.


Reference:

https://learn.microsoft.com/en-us/azure/devops/boards/backlogs/add-link



Viewing page 21 of 81
Viewing questions 101 - 105 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!