Designing and Implementing Microsoft DevOps Solutions
Exam Details
Exam Code
:AZ-400
Exam Name
:Designing and Implementing Microsoft DevOps Solutions
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:614 Q&As
Last Updated
:Apr 10, 2025
Microsoft Microsoft Certifications AZ-400 Questions & Answers
Question 201:
You manage a project by using Azure Board, and you manage the project code by using Azure Repos.
You have a bug work item that has an ID of 123.
You need to set the work item state to Resolved.
What should you add to the commit message?
A. #123 completes
B. Resolves #AB-123
C. Verifies #123
D. Fixes #123
Correct Answer: D
Resolve work items on commit
Close work items by mentioning keywords in commit messages. When you mention a work item in a commit that makes it to the default branch via one of the supported workflows, we will attempt to resolve that work item.
Keywords
The three supported keywords to trigger a resolution mention are fix, fixes, and fixed (case insensitive). Optionally, a colon can follow the keyword. Most forms of punctuation can precede or proceed the resolution mention, excluding another
You have a current work item name itemA that is dependant on a work item named itemB.
You need to define the dependency for itemA.
What should you do in the web portal for Azure DevOps?
A. Add a Parent link to the user story of itemA.
B. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to References and add the ID of itemB.
C. From itemA, open the Links tab, and then select Add link. Set Link type to References and add the ID of itemB.
D. From itemA, open the Links tab, and then select Add link. Set Link type to Successor and add the ID of itemB.
Correct Answer: D
Dependencies can be created from the Links Tab Dependencies can be created using the Predecessor and Successor links on the Links tab. A predecessor is the producer of the work item, or the item that must come first. A successor is the consumer of the work item, or the item that is dependent on the first item.
You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and an app named App1. Pipeline1 is used to automate the building of App1.
You have a Slack channel named App1chat that includes an incoming webhook.
You need to ensure that when a successful build of App1 is created, a notification is sent to App1chat by using the webhook.
What should you use?
A. a notification
B. an alert rule
C. a subscription
D. an action group
Correct Answer: C
Create a service hook for Azure DevOps with Slack Step 1: Create a custom app in Slack Step 2: Create a service hook subscription in your organization
1.
Go to your project Service Hooks page. https://{orgName}/{project_name}/_settings/serviceHooks
2.
Choose the types of events you want to appear in your Slack channel.
You can filter each of the triggers in specific ways. For example, filter the pull request created trigger on the repository in which the pull request occurs, the target branch it applies to, and the team members required or invited to review the request.
3.
Paste the Web Hook URL from the Slack integration that you created (in Step 1 above) and select Finish.
When the event occurs in your project, a notification appears in your team's Slack channel.
You have a current work item name itemA that is dependent on a work item named itemB.
You need to define the dependency for itemA.
What should you do in the web portal for Azure DevOps?
A. Add a Parent link to the user story of itemA.
B. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to Successor and add the ID of itemB.
C. From itemA, open the Links tab, and then select Add link. Set Link type to References and add the ID of itemB.
D. From Backlogs, open he context menu, select Add link, and then select itemA. Set Link type to References and add the ID of itemB.
Correct Answer: B
Creating a Dependency Dependencies can be created from the Links Tab Dependencies can be created using the Predecessor and Successor links on the Links tab. A predecessor is the producer of the work item, or the item that must come first. A successor is the consumer of the work item, or the item that is dependent on the first item.
You have a current work item name itemA that is dependant on a work item named itemB.
You need to define the dependency for itemA.
What should you do in the web portal for Azure DevOps?
A. From itemA, open the Links tab, and then select Add link. Set Link type to Related and add the ID of itemB.
B. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to Successor and add the ID of itemB.
C. From itemA, open the Links tab, and then select Add link. Set Link type to References and add the ID of itemB.
D. From Queries, open the context menu, select Add link, and then select Existing Item. Set Link type to Affected By and add the ID of itemB.
Correct Answer: B
Creating a Dependency Dependencies can be created from the Links Tab Dependencies can be created using the Predecessor and Successor links on the Links tab. A predecessor is the producer of the work item, or the item that must come first. A successor is the consumer of the work item, or the item that is dependent on the first item.
You have the services shown in the following table.
You manage a project by using Azure Boards.
You need to notify the services of build status changes.
Which services can be notified by using a webhook?
A. Service1 only
B. Service2 only
C. Service1 and Service2
Correct Answer: C
Webhooks provide a way to send a JSON representation of an event to any service. All that is required is a public endpoint (HTTP or HTTPS).
Q: Can I send webhooks to non HTTPS endpoints?
A: Yes. However, it's recommended that you only use HTTPS endpoints for your webhooks. Using HTTP means there is the potential for private data being sent unencrypted. This includes any authentication headers in your webhook.
You manage a project by using Azure Boards. You manage the project code by using GitHub.
You have three work items that have IDs of 456, 457, and 458.
You need to create a pull request that will be linked to all the work items. The solution must set the state of work item 456 to done.
What should you add to the commit message?
A. #AB456, #AB457, #AB458Completed #AB456
B. #456, #457, #458Completed #456
C. Done #AB456, #AB457, #AB458
D. #AB456, #AB457, #AB458Verifies #AB456
Correct Answer: A
Use the #AB{id} syntax for the work items.
Use Completed #AB456 to set the state of work item 456 to done.
Note: Use AB# mention to link from GitHub to Azure Boards work items
From a GitHub commit, pull request or issue, use the following syntax to create a link to your Azure Boards work item. Enter the AB#ID within the text of a commit message. Or, for a pull request or issue, enter the AB#ID within the title or
description (not a comment).
AB#{ID}
For example, AB#125 will link to work item ID 125.
You can also enter a commit or pull request message to transition the work item. The system will recognize fix, fixes, fixed and apply it to the #-mention item that follows.
Example:
Fixes AB#123, AB#124, and AB#126
Links to Azure Boards work items 123, 124, and 126. Transitions only the first item, 123 to the Resolved workflow state category or, if none is defined, then the Completed workflow state category.
You have an Azure subscription that contains an Azure container registry. The container registry contains an ACR Tasks task named Task1. Task1 is configured to run once every five days.
You need to trigger Task1 to run immediately.
Which command should you run?
A. az acr task run
B. az acr build
C. az acr taskrun
D. az acr run
Correct Answer: A
az acr task run
Manually trigger a task that might otherwise be waiting for git commits or base image update triggers.
Examples
Trigger a task run.
az acr task run -n MyTask -r MyRegistry Incorrect:
* az acr taskrun
Manage taskruns using Azure Container Registries.
Includes the commands:
az acr taskrun delete
Delete a taskrun from an Azure Container Registry.
az acr taskrun list
List the taskruns for an Azure Container Registry.
az acr taskrun logs
Show run logs for a particular taskrun.
az acr taskrun show
Get the properties of a named taskrun for an Azure Container Registry.
* az acr run
Queues a quick run providing streamed logs for an Azure Container Registry.
Examples
Queue a run to execute a container command.
az acr run -r MyRegistry --cmd '$Registry/myimage' /dev/null
Queue a run with the task definition from the standard input. Either 'Ctrl + Z'(Windows) or 'Ctrl + D'(Linux) terminates the input stream.
az acr run -r MyRegistry -f - /dev/null
Queue a run to execute the tasks passed through the pipe.
cat task.yaml | az acr run -r MyRegistry -f - /dev/null Reference: https://learn.microsoft.com/en-us/cli/azure/acr/task
Question 210:
You manage code by using GitHub.
You plan to ensure that all GitHub Actions are validated by a security team.
You create a branch protection rule requiring that code changes be reviewed by code owners.
You need to create the CODEOWNERS file.
Where should you create the file?
A. .github/actions/
B. .github/
C. .git/
D. .github/workflows/
Correct Answer: C
In the situation you want consume the results directly from a file you can read ./codeowner-information.json from the root of the repository.
Incorrect:
Not B: Custom path
If your CODEOWNERS file isn't in the root of your repository, but for instead in the .github directory, you can change the path by using the path parameter:
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your AZ-400 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.