Exam Information
Free practice questions with explanations
Microsoft AZ-400 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 11
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Design and implement a source control strategy
A retail company hosts a 40 GB monorepo in Azure Repos. Developers have started committing large product video assets directly into the repository, and clone times for new hires now exceed 90 minutes. The team wants to keep the existing history intact and make the large binaries stored outside the normal Git object store going forward, with minimal disruption to developers who use standard Git commands. Which action should the DevOps engineer take first?
Correct Answer: BExplanationGit LFS replaces tracked large files with small pointer files in the repository while storing the content on a separate LFS store, which directly reduces clone size for future commits when configured through .gitattributes. Scalar improves performance for very large repositories with partial clone and background maintenance, but it does not change how large binaries are stored, so it does not address the root cause. Tags only label commits and do not remove binaries from history. Azure Artifacts is a package management service, not a substitute for versioned source assets consumed by developers in the repository itself.
-
2 Question 2 Single choice Design and implement a source control strategy
A financial services team ships a mobile app through monthly release trains. They need a branching model where feature work is integrated continuously into the main line, while each monthly release is stabilised on a separate branch that receives only approved hotfixes. Developers must not be able to push directly to the release branches, and all changes must be reviewed by two approvers and pass the build validation pipeline. The team wants to minimise long-lived divergence. Which combination of design decisions best meets these requirements?
Correct Answer: BExplanationShort-lived feature branches merged frequently into trunk keep divergence low, while a per-month release branch isolates stabilisation. Branch policies on the release branches enforce two reviewers and build validation, and restricting direct pushes via branch permissions covers the protection requirement. Long-lived feature branches contradict the minimal-divergence goal and leave release branches unprotected. Per-developer release branches are unworkable and fail the reviewer requirement. Pipeline approval gates control deployment, not code merges, so they cannot enforce pull request review on source changes.
-
3 Question 3 Single choice Design and implement build and release pipelines
A team publishes an internal NuGet library consumed by three product teams. Consumers pin exact versions, and the library has introduced a breaking change in its public API. The maintainers want version numbers that tell consumers at a glance whether an upgrade is safe, and they also want pre-release builds from the main branch to be consumable by testers without being promoted to the stable feed. Which versioning approach best satisfies these requirements?
Correct Answer: AExplanationSemVer encodes breaking changes in the major component, so consumers can judge upgrade risk from the number alone, and pre-release suffixes mark non-stable builds that NuGet will not select as the latest stable version. Publishing those pre-release packages to a separate feed keeps them out of the stable channel. CalVer communicates release timing rather than compatibility, so it does not signal breaking changes. A build number carries no semantic meaning. A fixed package version prevents consumers from upgrading at all and does not reflect the assembly file version as a package identifier.
-
4 Question 4 Single choice Design and implement build and release pipelines
A payments team uses an Azure Pipelines YAML multi-stage pipeline. A deployment to the staging environment must be blocked unless the code coverage for the unit test run meets at least 80 percent and no critical vulnerabilities are reported by the dependency scan. The team wants the enforcement to occur automatically in the pipeline and to fail the run visibly, without relying on manual reviewers. Which implementation best meets the requirement?
Correct Answer: AExplanationA gate in the pipeline itself, implemented as a step that evaluates the coverage report and vulnerability results and exits non-zero on failure, stops the downstream stage automatically and marks the run as failed. Manual approval depends on human judgement and does not enforce thresholds. A branch policy governs merges, not the staging deployment stage, and a badge is not an enforced threshold. Continue-on-error with a notification explicitly allows the deployment to proceed, which violates the requirement.
-
5 Question 5 Single choice Design and implement processes and communications
A product group uses GitHub for source and GitHub Issues for defect intake, while planning is tracked in a GitHub Projects board. Leadership wants a dashboard showing lead time for changes and time to restore service for the last 90 days, computed from production deployments and incident issues. Engineers should not need to hand-enter status to keep the numbers accurate. Which approach is the most appropriate?
Correct Answer: AExplanationLead time and time to restore are derived from timestamps across commits, deployments and incident issues, so capturing deployment and issue events automatically from the workflow and querying them in Azure Monitor Logs gives accurate, automated metrics. Manual spreadsheets require hand-entry and are error-prone, which the requirement rules out. Board item counts show volume rather than elapsed time. A Done column counts throughput and does not measure restoration duration.
-
6 Question 6 Single choice Develop a security and compliance plan
A pipeline in Azure Pipelines deploys infrastructure into an Azure subscription using a service connection that currently authenticates with a service principal secret stored in the connection. Security requires that no long-lived credentials exist anywhere in the organisation, including in Azure DevOps, and that the deployment identity is scoped only to the resource group for this workload. The workload runs on Microsoft-hosted agents. Which change best meets these requirements?
Correct Answer: AExplanationWorkload identity federation uses OpenID Connect token exchange, so the service connection holds no secret or certificate and the trust is configured between the Entra app and the Azure DevOps issuer. Scoping the role assignment to the resource group satisfies least privilege. Certificates are still long-lived credentials and remain stored in the connection. Rotating a secret still leaves a long-lived credential in use, and storing it in Key Vault does not remove it. Owner at subscription scope violates the scoping requirement.
-
7 Question 7 Single choice Develop a security and compliance plan
A GitHub Actions workflow in a private repository needs to publish container images to Azure Container Registry and read secrets from Azure Key Vault. A developer proposed storing a personal access token with repository write scope as a repository secret so the workflow can authenticate. The security team rejects this because the token would outlive the developer's employment. The workflow runs on GitHub-hosted runners. Which authentication approach should the engineer implement?
Correct Answer: CExplanationOpenID Connect lets the workflow exchange a short-lived GitHub-issued token for an Entra access token against a federated credential, so there is no stored secret and access is limited to the specified repository and branch. The required roles can then be granted to that application. GITHUB_TOKEN is scoped to the repository and cannot authenticate to Azure Key Vault. A managed identity is only available to Azure-hosted compute, not GitHub-hosted runners. Installation tokens and stored client secrets are long-lived or still require storing credentials, which the security team rejected.
-
8 Question 8 Single choice Implement an instrumentation strategy
A web application in Azure App Service is instrumented with Application Insights. After a deployment, users report intermittent slow checkout requests. The operations team needs to find which downstream dependency call inside a slow request is responsible, and they need to see the timing of each span within the same end-to-end transaction. Which Application Insights capability should they use?
Correct Answer: CExplanationThe end-to-end transaction view correlates the request with its dependency calls and displays each span with its own duration, which is exactly the distributed tracing needed to locate the slow dependency. Live Metrics shows aggregate real-time counts but not per-transaction spans. Availability tests measure external reachability, not internal call timings. Smart Detection flags anomalies but does not show the trace breakdown needed to identify the responsible call.
-
9 Question 9 Single choice Implement an instrumentation strategy
An operations engineer must alert when Azure Pipelines deployment jobs fail more than three times in 30 minutes across the organisation. Deployment and pipeline activity is streamed into a Log Analytics workspace through the Azure DevOps diagnostic settings. The alert must run every 10 minutes and notify the on-call group, and it must not be triggered by successful jobs or by builds that are not deployment jobs. Which alert configuration is correct?
Correct Answer: DExplanationA log search alert evaluating a KQL query over a 30-minute lookback at a 10-minute frequency, filtered to failed deployment jobs and thresholded at more than three, matches every stated requirement. Duration metrics measure elapsed time, not failures. Availability tests check endpoint reachability rather than job outcomes. Counting all pipeline records ignores the result and job type filters, so successful and non-deployment builds would trigger the alert.
-
10 Question 10 Multiple choice Design and implement a source control strategy
A healthcare company stores infrastructure code in a GitHub repository. A developer accidentally committed a file containing a production database connection string three commits ago on a feature branch that has already been merged to main and pushed to the remote. The team must remove the credential from every branch and tag history, and they must not disrupt other developers' local clones unnecessarily. Which two actions should the engineer take? (Choose two.)
Correct Answer: A, DExplanationA history rewrite tool such as git filter-repo or BFG removes the file from every reference including tags, and force-pushing publishes the cleaned history. Because the secret has already been exposed in history, it must also be rotated, and contributors need to re-clone to avoid reintroducing the old commits. Reverting leaves the secret in history, so it does not remove it. Recreating the repository discards issues and history without guaranteeing other forks or cached objects are gone. A hard reset would drop legitimate commits made after the credential was added.
-
11 Question 11 Multiple choice Design and implement build and release pipelines
A company runs a multi-stage YAML pipeline that builds a Node.js service, runs unit and integration tests, and deploys to Azure App Service. The organisation requires that test results and code coverage be visible in the pipeline run, that a failing integration test stop promotion to production, and that the same built artifact be promoted through environments rather than rebuilt. Which two implementation choices meet these requirements? (Choose two.)
Correct Answer: B, EExplanationPublishing test and coverage results with the dedicated tasks surfaces them in the run, and because a failing test fails the job, the downstream stages depend on it and stop. Publishing the artifact once and consuming it in each stage promotes the identical binary rather than rebuilding, which preserves what was tested. Continue-on-error lets failing tests proceed, rebuilding per environment breaks artifact immutability, and scheduled separate pipelines do not gate the release.
These are 11 of the 661 questions in the full AZ-400 pack.
Get All 661 QuestionsGet all 661 questions & answers
Full access options for Microsoft AZ-400
Self-study
PDF Version
- 661 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 661 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 661 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the AZ-400 Exam (Designing and Implementing Microsoft DevOps Solutions) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.