AZ-400: Designing and Implementing Microsoft DevOps Solutions Exam-style mock test
AZ-400: Designing and Implementing Microsoft DevOps Solutions|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Design and Implement Processes and Communications
A global investment bank hosts its source code in GitHub repositories while tracking all work in Azure Boards. Compliance auditors require that every merged pull request be traceable back to an approved work item, and developers must not be forced to switch tools during daily work. What should you implement?
・Create a service hook subscription that posts GitHub pull request events into a Microsoft Teams channel for review
Incorrect. A service hook only broadcasts events to Teams; it does not create a persistent, queryable link between the pull request and the Azure Boards work item.
✓Install the Azure Boards app for GitHub and reference work items with AB#ID syntax in pull requests
Correct. The Azure Boards app for GitHub creates bidirectional links when developers mention AB#ID in commits or pull requests, giving auditors traceability without leaving either tool.
・Migrate all work items into GitHub Projects and link issues to pull requests by using closing keywords
Incorrect. Migrating to GitHub Projects would achieve linking but violates the constraint that work tracking remains in Azure Boards.
・Enable the GitHub Advanced Security integration between the Azure DevOps organization and the GitHub repositories
Incorrect. GitHub Advanced Security covers code scanning, secret scanning, and dependency review; it provides no work item traceability.
Explanation
The Azure Boards app for GitHub is the supported integration for cross-tool traceability: AB#ID mentions in commits and pull requests automatically create links on the work item. Service hooks only notify, Advanced Security addresses code security, and migrating to GitHub Projects abandons the required Azure Boards backlog.
Example2 · Design and Implement a Source Control Strategy
Meridian Payments, a global financial services firm, is moving its card-authorization service to continuous delivery with several production deployments per day. The DevOps lead wants minimal merge overhead, branches that live for hours rather than weeks, and incomplete work hidden behind feature flags instead of isolation branches. Which branching strategy should the team adopt?
・GitFlow, with permanent develop and release branches isolating all in-progress work
Incorrect. GitFlow's permanent develop and release branches add merge ceremony and long-lived divergence, which conflicts with deploying several times per day; it suits scheduled, versioned releases rather than continuous delivery.
・A long-running branch per developer, periodically synchronized back into main
Incorrect. Per-developer long-running branches maximize divergence and merge conflicts, the opposite of the low merge-overhead requirement, and they delay integration feedback.
✓Trunk-based development, with short-lived branches merged into main daily
Correct. Trunk-based development keeps branches short-lived, merges to main at least daily, and relies on feature flags to hide unfinished work, which is exactly the low-overhead model continuous delivery needs.
・Release branching per sprint, with each sprint branch hardened for two weeks before merging
Incorrect. Hardening a sprint branch for two weeks batches changes into infrequent releases and contradicts the requirement for branches measured in hours and multiple daily deployments.
Explanation
Continuous delivery with multiple daily deployments is best served by trunk-based development: developers integrate small changes into main through short-lived topic branches and use feature flags to decouple deployment from release. GitFlow, per-developer branches, and sprint hardening branches all introduce long-lived divergence and merge overhead that slow the delivery cadence.
Example3 · Design and Implement Build and Release Pipelines
Meridian Capital Group, a global financial services firm, keeps its payments platform in an Azure Repos monorepo that must remain a single repository. The payments CI pipeline must start on pushes to main only when files under /services/payments change; commits that touch only /docs must not queue a run at all. What should you add to the pipeline YAML?
・A stage-level condition that parses Build.SourceVersionMessage to detect whether the commit mentions payment-related paths before steps run
Incorrect. A condition is evaluated only after the run has already been queued and started, so documentation commits still consume a run, and commit messages do not reliably describe which paths changed.
・A batch setting of true on the CI trigger so documentation commits fold into the next build
Incorrect. The batch setting only consolidates runs while an agent is busy; a documentation-only push still queues a build because no path filtering is applied.
・A scheduled cron definition for main so builds start at fixed intervals instead of each push
Incorrect. A schedule replaces push-based CI semantics entirely; the pipeline would no longer react promptly to payments changes and would still build when only docs changed.
✓A trigger block for main that uses a paths filter including services/payments and excluding the docs folder from CI
Correct. Path filters on the CI trigger (paths include/exclude) prevent the pipeline from being queued when a push touches only excluded folders such as docs.
Explanation
Azure Pipelines CI triggers support paths include and exclude filters that are evaluated before a run is queued, which is the only listed mechanism that stops documentation-only commits from starting the pipeline. Conditions and batching act after queuing, and schedules change when builds run rather than which paths cause them.
Example4 · Develop a Security and Compliance Plan
MediLab Diagnostics, a clinical testing company, deploys its lab-results portal with Azure Pipelines. The database connection string must be rotated centrally by the security team, must never be stored inside Azure DevOps, and pipelines must pick up rotated values without any YAML or variable edits. What should you do?
✓Link a variable group to an Azure Key Vault and reference the vault-mapped secrets directly inside the deployment pipeline at run time.
Correct. A variable group linked to Azure Key Vault reads secrets at run time through a service connection, so a rotation performed in the vault flows to pipelines automatically and nothing is persisted in Azure DevOps.
・Store the connection string as a secret pipeline variable and update it manually after each rotation event.
Incorrect. A secret pipeline variable stores the value inside Azure DevOps and requires a manual edit after every rotation, violating both requirements.
・Define the connection string as a runtime parameter that operators paste in when they queue each pipeline run.
Incorrect. Runtime parameters are entered in plain text by whoever queues the run and must be supplied manually every time, so nothing is rotated centrally and the value is exposed.
・Save the value in a Library variable group with the lock icon enabled so it is masked in logs.
Incorrect. The lock icon only masks the value in logs and the UI; the secret still resides in Azure DevOps and someone must edit it after each rotation.
Explanation
Linking a variable group to Azure Key Vault keeps the vault as the single source of truth for secrets. Pipelines fetch the current value at queue time through the service connection, so central rotation needs no pipeline or variable changes and no secret material is stored in Azure DevOps.
Example5 · Implement an Instrumentation Strategy
A life-sciences company runs a genomics results platform: a clinician-facing API on Azure App Service, processing workers on AKS, and notification logic in Azure Functions. Clinicians report intermittent failures, but the team cannot tell which tier drops a request. Engineers need a single view that follows each failed request across all three tiers. What should you implement?
・Enable Azure Monitor VM insights on the AKS nodes and on the App Service plan so dependency calls between the tiers are captured per request.
Incorrect. VM insights reports host and container performance such as CPU, memory, and processes; it does not correlate individual application requests as they flow between services.
・Stream each service's console output into a shared storage account and reconcile the request timestamps across tiers with a scheduled Automation runbook.
Incorrect. Timestamp reconciliation across independent log stores is fragile under clock skew and concurrency, and it provides no per-operation correlation identifier linking the tiers.
✓Instrument all three services with Application Insights using W3C trace-context propagation into one resource, then use the end-to-end transaction view.
Correct. Application Insights distributed tracing propagates W3C trace-context headers so all telemetry for one operation shares a trace, and the end-to-end transaction view shows exactly which tier failed.
・Create an Azure Activity Log alert that correlates failures across the three services by matching their subscription-level correlation identifiers.
Incorrect. The Activity Log records control-plane management operations on Azure resources, not application-level request telemetry, so it cannot trace a clinician's request across tiers.
Explanation
Distributed tracing in Application Insights relies on W3C trace-context propagation so that every span emitted by the App Service API, AKS workers, and Functions shares one operation identifier. The end-to-end transaction details view then renders the full call chain and pinpoints the failing tier. Infrastructure monitoring, Activity Log data, and manual timestamp matching cannot correlate individual requests.
Example6 · Design and Implement Processes and Communications
A life-sciences company builds its clinical-data platform with Azure Repos and Azure Pipelines. External auditors require that every production release can be traced back to the approved Azure Boards work items it contains, without manual record keeping. What should you configure?
・Create a shared work item query scoped to the current sprint and pin the resulting chart to the team dashboard
Incorrect. A sprint-scoped query shows what was completed in an iteration, not which work items were actually deployed in a specific production release.
・Require release managers to approve every pull request by adding a required reviewers branch policy that blocks all merges into the main branch
Incorrect. A required reviewers policy enforces human approval, but an approval record does not create any link between work items, commits, and the releases that shipped them.
✓Turn on automatic work item linking in the pipeline settings and apply the linked work items branch policy on main
Correct. Pipeline settings can automatically link work items included in a run to builds and releases, and the 'Check for linked work items' branch policy guarantees each pull request references a work item, producing end-to-end traceability.
・Tag every commit with the release version number and record the mapping on a dedicated project wiki page
Incorrect. Commit tags with wiki documentation are manual artifacts; they are not queryable links and reintroduce exactly the record keeping the auditors want removed.
Explanation
Enabling automatic work item linking in Azure Pipelines settings associates work items with each build and release, while the 'Check for linked work items' branch policy ensures every pull request carries a work item reference. Together these create automatic, queryable traceability from requirement to production release. Approvals, sprint queries, and wiki pages do not establish release-to-work-item links.
Example7 · Design and Implement Processes and Communications
Fabrikam Robotics builds firmware for factory-floor IoT controllers. Source code lives in a GitHub repository, but the delivery team must keep tracking work in Azure Boards. Auditors require that every production change can be traced from an Azure Boards work item to the exact commits and pull requests that implemented it. What should you do?
・Create a GitHub service connection in Azure Pipelines and tag commit messages with the work item title
Incorrect. A service connection authorizes Azure Pipelines to fetch source and run builds; it does not create links between Azure Boards work items and GitHub commits or pull requests, and free-text titles are not queryable links.
・Configure a service hook that posts Azure Boards work item updates to a GitHub issue
Incorrect. Service hooks push event payloads outward to external services; they do not establish traceability links on the work item itself, so auditors could not navigate from a work item to its commits.
・Migrate the backlog to GitHub Issues so pull requests can close items with keywords
Incorrect. Moving the backlog to GitHub Issues violates the stated requirement to keep tracking work in Azure Boards.
✓Connect Azure Boards to the GitHub repository and reference work items using AB# mentions in commit messages and pull request descriptions
Correct. The Azure Boards app for GitHub links the repository to the project; AB#<id> mentions in commit messages and pull request descriptions create bidirectional links on the work item, giving auditable traceability.
Explanation
The Azure Boards app for GitHub is the supported integration for cross-platform traceability. Once the repository is connected, AB#<id> syntax in commit messages and pull requests attaches GitHub artifacts to the work item's Development/links section, which satisfies audit traceability without migrating the backlog.
Example8 · Design and Implement Processes and Communications
Contoso Logistics adopted DORA metrics for its parcel-routing microservices. After two warehouse rollouts caused outages, leadership wants a metric that reports the proportion of production deployments that degrade service and require a rollback or hotfix. Which DORA metric should you report?
・Deployment frequency to production
Incorrect. Deployment frequency counts how often the team deploys to production; it says nothing about how many of those deployments failed.
・Lead time for changes
Incorrect. Lead time for changes measures elapsed time from commit to running in production, not the outcome quality of each deployment.
・Mean time to restore service
Incorrect. Mean time to restore service measures how quickly service recovers after a failure occurs, not what share of deployments caused failures.
✓Change failure rate
Correct. Change failure rate is the percentage of production deployments that cause a degradation requiring remediation such as a rollback, hotfix, or patch, which is exactly what leadership asked for.
Explanation
Change failure rate is the DORA stability metric defined as the share of deployments to production that result in degraded service needing remediation. Deployment frequency and lead time for changes are throughput metrics, and MTTR measures recovery speed rather than failure proportion.
Example9 · Design and Implement Processes and Communications
Tailwind Freight manages warehouse-scanner firmware work in a GitHub Projects board that pulls issues from three repositories. The team wants items to move to the Done status automatically when their linked pull requests merge, and they do not want any custom automation to maintain. What should you configure?
✓Enable the project's built-in workflows to set linked items to Done on merge
Correct. GitHub Projects includes built-in workflows (for example, 'Pull request merged' and 'Item closed') that automatically set an item's Status to a chosen value with no code to maintain.
・Add a repository ruleset that closes linked issues on merge
Incorrect. Repository rulesets enforce branch and tag rules such as required reviews and status checks; they cannot change the status field of items on a GitHub Projects board.
・Write a GitHub Actions workflow that calls the GraphQL API to update each item's status after merge
Incorrect. A custom Actions workflow against the GraphQL API can update project items, but it is custom automation the team would have to maintain, which the scenario explicitly excludes.
・Assign every issue to a sprint milestone and close the milestone at the end of each iteration
Incorrect. Closing a milestone groups and archives issues for reporting; it does not change each item's Status field on the project board as pull requests merge.
Explanation
GitHub Projects ships with built-in workflows that react to events such as a linked pull request merging or an issue closing and set the item's Status automatically. This meets the no-custom-automation constraint, whereas Actions scripts require maintenance and rulesets or milestones do not drive board status.
Example10 · Design and Implement Processes and Communications
A B2B SaaS vendor plans sprints in Azure Boards while all source code lives in GitHub repositories. The engineering lead requires that when developers push commits or open pull requests, the related Azure Boards work items show those GitHub artifacts as links, with no manual linking by developers. What should you implement?
・Create a service hook subscription that forwards GitHub push events to an Azure Boards webhook endpoint.
Incorrect. Service hooks send outbound notifications from Azure DevOps to external services; they do not ingest GitHub events or create links on work items.
・Connect the repositories to Azure Boards and have developers reference work items with #ID in commit messages.
Incorrect. The #ID syntax references GitHub issues within GitHub; the Azure Boards GitHub integration requires the AB#ID mention syntax to create work item links.
・Migrate the repositories to Azure Repos so commit mentions are linked to work items automatically by the built-in integration in project settings.
Incorrect. Moving the code to Azure Repos would enable native linking, but the requirement is to keep the source in GitHub repositories.
✓Install the Azure Boards app for GitHub and use AB#ID mentions in commits and pull requests.
Correct. The Azure Boards app for GitHub connects the repositories, and AB#ID mentions in commits and pull requests automatically add those GitHub artifacts as links on the related work items.
Explanation
The Azure Boards app for GitHub establishes the connection between a GitHub repository and an Azure Boards project. Once connected, developers include AB#ID in commit messages and pull request titles or descriptions, and the work items automatically receive GitHub commit and pull request links, preserving traceability without manual effort.
Example11 · Design and Implement Processes and Communications
An online gaming studio ships updates to its matchmaking service several times a week. After a series of patches triggered live incidents that forced rollbacks, leadership asks the platform team to report the percentage of production deployments that degrade the service. Which DORA metric should the team report?
・Mean time to restore service, derived from incident timestamps
Incorrect. Mean time to restore service measures how quickly service is recovered after a failure, not what share of deployments caused failures.
✓Change failure rate, derived from deployments that caused degraded service in production
Correct. Change failure rate measures the proportion of deployments to production that result in degraded service, such as incidents requiring a rollback or hotfix.
・Deployment frequency, derived from the number of production releases in each week
Incorrect. Deployment frequency measures how often the team releases to production and says nothing about the quality or failure of those releases.
・Lead time for changes, derived from the first commit through to the release reaching production
Incorrect. Lead time for changes measures how long a commit takes to reach production, not the rate at which deployments cause incidents.
Explanation
Of the four DORA metrics, change failure rate is the one expressed as a percentage of production deployments that lead to degraded service requiring remediation such as rollback or hotfix. Deployment frequency and lead time for changes measure throughput, while mean time to restore measures recovery speed.
Example12 · Design and Implement Processes and Communications
A regional transit authority tracks grid-modernization work in Azure Boards and builds its code in Azure Repos. Auditors require that every production deployment be traceable back to the specific User Story that authorized it, with the link visible on the work item itself. Developers already reference work item IDs in commit messages, but the stories show no release association. What should you configure to satisfy the auditors with the least ongoing manual effort?
・Enable the mention of work item IDs in pull request titles so that reviewers copy those identifiers into the release description manually before each deployment
Incorrect. Mentioning IDs in PR titles does not create a release-to-work-item link and relies on reviewers manually editing the release notes each time.
・Add a build-number comment to each User Story when a classic release stage finishes deploying it to production
Incorrect. Manually adding build-number comments is error-prone, does not create a navigable release link, and defeats the least-effort requirement.
・Create a dashboard query grouping commits by author, then export the full results to a spreadsheet each sprint
Incorrect. A grouped-by-author query produces no release traceability and the spreadsheet export is a manual step disconnected from the work item.
✓Enable the classic release pipeline option that automatically links each consumed build artifact's associated work items to the release so every story shows it
Correct. Enabling the classic release option to report deployment status and link work items associates the work items from the consumed build artifact with the release, surfacing the release on each story automatically.
Explanation
Azure Pipelines classic releases can automatically link the work items built into an artifact to the release that deploys them, so the authorizing User Story shows the release. Commit mentions alone only link commits, and manual comments or exports neither create navigable links nor scale.
Example13 · Design and Implement Processes and Communications
An education-ministry platform team wants to report the DORA metric 'lead time for changes' using only data already in Azure DevOps. Leadership defines it as the elapsed time from the first commit on a feature branch until that change is running in the production environment. Which combination of Azure DevOps signals most directly produces this measurement?
・The work item created date compared against the date on which the parent Epic is finally closed on the delivery board by the team
Incorrect. Epic close dates reflect planning milestones, not code movement, and ignore when the change actually reached production.
✓The first commit author timestamp in Azure Repos compared against the production stage completion time in the pipeline
Correct. The first commit timestamp marks when the change originated and the production-stage completion time marks when it was running live, which is exactly lead time for changes.
・The pull request creation date compared against the approvals recorded on that pull request by reviewers
Incorrect. PR creation and approval counts measure review activity, not the span from initial commit to production deployment.
・The sprint start date compared against the committed story point capacity value that the team entered for the current iteration during planning
Incorrect. Sprint dates and committed capacity describe velocity and planning, which is unrelated to how long an individual change takes to reach production.
Explanation
Lead time for changes spans from code commit to successful production deployment, so the commit timestamp and production-stage completion time are the correct anchors. Board, review, and capacity signals measure planning or velocity instead.
Example14 · Design and Implement Processes and Communications
Meridian Underwriters runs claims software in Azure DevOps. Auditors require that every production change be traceable: from the user story through the exact commits that implemented it, and through to the release that shipped it. Developers already link commits to work items. Which additional configuration ensures the release that deployed a given work item is visible directly from that work item?
・Add a branch policy that requires a linked work item on every single pull request that targets the main branch
Incorrect. Requiring linked work items on PRs improves commit-to-story traceability but never surfaces the downstream release stage on the work item form.
✓Enable the "Report deployment status to Boards" option on the classic release or YAML pipeline stages
Correct. Enabling deployment reporting to Boards makes each pipeline stage report its status so the work item's Development/Deployment section shows which release deployed it.
・Create an Azure Boards query grouped by iteration path and pin it to the team dashboard as a chart
Incorrect. An iteration-grouped query chart reports progress against sprints and exposes no linkage to the specific release that shipped the item.
・Turn on the "Automatically link new work in this build" option on the build pipeline
Incorrect. Auto-linking associates completed work with the build only, so it stops at the build and leaves the deploying release invisible on the item.
Explanation
Azure Pipelines can report deployment status back to Azure Boards, which populates the Deployment section of linked work items with the stages and releases that shipped them. Branch policies, queries, and auto-linking each address a different concern and do not create the release-to-work-item link.
Example15 · Design and Implement Processes and Communications
Wanderlust Travel develops its booking engine on GitHub with GitHub Projects. The product team wants a Kanban board where cards move automatically from "In Progress" to "Done" the moment the pull request that resolves an issue is merged, without anyone dragging cards. What should they configure?
・A branch protection rule requiring each pull request to link an issue before merging into main
Incorrect. Requiring an issue link before merging enforces traceability but never changes the card's status column after the merge completes.
・A repository label automation that applies a "done" label to issues after every successful Actions deployment run
Incorrect. A label automation keyed to deployment runs fires after deploy, not on merge, and manipulates labels rather than the project status field.
・A scheduled GitHub Actions workflow that queries closed pull requests each night and edits the project board
Incorrect. A nightly scheduled workflow would move cards only once per day in a batch, failing the requirement that cards update the moment the PR merges.
✓A GitHub Projects built-in workflow that automatically sets the item's status field to Done the moment its linked pull request is merged
Correct. GitHub Projects provides built-in workflows, including one that automatically sets an item's status field to Done the moment its linked pull request is merged, giving hands-off card movement.
Explanation
GitHub Projects includes built-in workflows that react to events such as a linked pull request being merged and set the item's Status field automatically. Branch protection, label automations, and scheduled jobs either do not touch status or do not react at merge time. (This is a multiple-choice item; a fifth option is not present.)
▶ Try 10 free questions (graded)