Microsoft AZ-400 Practice Test 55
Question 540
Before changing the pipeline or service, engineers find: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. Which evidence should the engineer inspect FIRST?
- Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules.
- Review pipeline notification subscriptions, Teams integration, owners and incident escalation.
- Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
- Inspect document edit rights, source history, code review ownership and decision status.
Explanation
Correct Answer
D:Inspect document edit rights, source history, code review ownership and decision status. This directly checks the uncertain behavior or control before changing production. Architectural knowledge needs attributable change history and accountable reviewer approval. The resulting targeted action is: Store decisions in a protected repository with named reviewers and link them to implementation work.
Incorrect Answers
A:Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant evidence is: Inspect document edit rights, source history, code review ownership and decision status. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.
B:Review pipeline notification subscriptions, Teams integration, owners and incident escalation. This would address a different situation, such as: Critical production deployment failures send only email to an unattended shared mailbox. In the present case, the most directly relevant evidence is: Inspect document edit rights, source history, code review ownership and decision status. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.
C:Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant evidence is: Inspect document edit rights, source history, code review ownership and decision status. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.
Question 541
Before changing the pipeline or service, engineers find: Critical production deployment failures send only email to an unattended shared mailbox. Which evidence should the engineer inspect FIRST?
- Review OpenAPI specification, release artifact version and documentation publication stage.
- Compare wiki revisions, pipeline definitions, links and onboarding incident history.
- Review pipeline notification subscriptions, Teams integration, owners and incident escalation.
- Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules.
Explanation
Correct Answer
C:Review pipeline notification subscriptions, Teams integration, owners and incident escalation. This directly checks the uncertain behavior or control before changing production. Notifications should reach accountable responders through monitored channels with useful context. The resulting targeted action is: Route deployment and failure events to the approved Microsoft Teams operations channel.
Incorrect Answers
A:Review OpenAPI specification, release artifact version and documentation publication stage. This would address a different situation, such as: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. In the present case, the most directly relevant evidence is: Review pipeline notification subscriptions, Teams integration, owners and incident escalation. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
B:Compare wiki revisions, pipeline definitions, links and onboarding incident history. This would address a different situation, such as: A repository wiki describes a build script that was removed six months ago and breaks onboarding. In the present case, the most directly relevant evidence is: Review pipeline notification subscriptions, Teams integration, owners and incident escalation. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
D:Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant evidence is: Review pipeline notification subscriptions, Teams integration, owners and incident escalation. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
Question 542
The DevOps team must resolve this situation: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. Which engineering action is MOST appropriate?
- Use unique versioned paths and verify digest before deployment.
- Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
- Publish an appropriate major version with migration guidance and compatibility gates.
- Pin approved package ranges with lockfiles and deterministic restore settings.
Explanation
Correct Answer
C:Publish an appropriate major version with migration guidance and compatibility gates. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Existing consumers remain on supported prior versions unless they explicitly upgrade. SemVer major versions communicate incompatible public API changes.
Incorrect Answers
A:Use unique versioned paths and verify digest before deployment. This would address a different situation, such as: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. In the present case, the most directly relevant engineering action is: Publish an appropriate major version with migration guidance and compatibility gates. The crucial distinction is: SemVer major versions communicate incompatible public API changes.
B:Configure an approved upstream source and appropriate package permissions in Azure Artifacts. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant engineering action is: Publish an appropriate major version with migration guidance and compatibility gates. The crucial distinction is: SemVer major versions communicate incompatible public API changes.
D:Pin approved package ranges with lockfiles and deterministic restore settings. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant engineering action is: Publish an appropriate major version with migration guidance and compatibility gates. The crucial distinction is: SemVer major versions communicate incompatible public API changes.
Question 543
A Microsoft DevOps team is addressing: A container image with a known critical vulnerability passes all unit tests and is promoted to production. Which TWO complementary actions should be taken? Select TWO answers.
- Add a risk-based container vulnerability scan gate before deployment approval.
- Improve boundary-value assertions and use mutation or targeted fault tests as appropriate.
- Review image scan findings, severity exceptions, release checks and provenance.
- Inspect task arguments, secret masking, logs, scope and token issuance.
- Review PR check policies, test job dependencies and build result timing.
Explanation
Correct Answers
A:Add a risk-based container vulnerability scan gate before deployment approval. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review image scan findings, severity exceptions, release checks and provenance. Together they address: Security policy gates should prevent release of unapproved critical vulnerabilities.
C:Review image scan findings, severity exceptions, release checks and provenance. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Add a risk-based container vulnerability scan gate before deployment approval. Together they address: Security policy gates should prevent release of unapproved critical vulnerabilities.
Incorrect Answers
B:Improve boundary-value assertions and use mutation or targeted fault tests as appropriate. This concerns a different DevOps situation: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. This case instead requires both a targeted investigation (Review image scan findings, severity exceptions, release checks and provenance.) and a controlled change (Add a risk-based container vulnerability scan gate before deployment approval.).
D:Inspect task arguments, secret masking, logs, scope and token issuance. This concerns a different DevOps situation: A test task writes its service principal secret into verbose logs on every failing run. This case instead requires both a targeted investigation (Review image scan findings, severity exceptions, release checks and provenance.) and a controlled change (Add a risk-based container vulnerability scan gate before deployment approval.).
E:Review PR check policies, test job dependencies and build result timing. This concerns a different DevOps situation: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. This case instead requires both a targeted investigation (Review image scan findings, severity exceptions, release checks and provenance.) and a controlled change (Add a risk-based container vulnerability scan gate before deployment approval.).
Question 544
The DevOps team must resolve this situation: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. Which engineering action is MOST appropriate?
- Remove serial bottlenecks or right-size jobs before purchasing concurrency.
- Run independent tests in parallel within the approved concurrency and resource budget.
- Migrate to workload identity federation or controlled rotation with alerting.
- Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
Explanation
Correct Answer
D:Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A representative flaky test appears as a reliability issue despite eventual job success. Pipeline health should surface flaky failures and retry overhead separately from success.
Incorrect Answers
A:Remove serial bottlenecks or right-size jobs before purchasing concurrency. This would address a different situation, such as: A pipeline team wants 50 more hosted agent slots even though bottlenecks are serial manual approvals and limited integration environments. In the present case, the most directly relevant engineering action is: Track flaky test metrics and assign root-cause fixes rather than unconditional retries. The crucial distinction is: Pipeline health should surface flaky failures and retry overhead separately from success.
B:Run independent tests in parallel within the approved concurrency and resource budget. This would address a different situation, such as: A large build spends most of its time serially running three independent test suites. In the present case, the most directly relevant engineering action is: Track flaky test metrics and assign root-cause fixes rather than unconditional retries. The crucial distinction is: Pipeline health should surface flaky failures and retry overhead separately from success.
C:Migrate to workload identity federation or controlled rotation with alerting. This would address a different situation, such as: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. In the present case, the most directly relevant engineering action is: Track flaky test metrics and assign root-cause fixes rather than unconditional retries. The crucial distinction is: Pipeline health should surface flaky failures and retry overhead separately from success.
Question 545
A Microsoft DevOps team is addressing: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. Which TWO complementary actions should be taken? Select TWO answers.
- Review service connection mode, secret expiration, Azure RBAC and trust configuration.
- Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
- Configure differentiated retention for required pipelines and audit artifacts.
- Inspect retention defaults, legal requirements, approval records and storage cost.
- Use dependency-aware cache keys and safe restore fallback behavior.
Explanation
Correct Answers
C:Configure differentiated retention for required pipelines and audit artifacts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect retention defaults, legal requirements, approval records and storage cost. Together they address: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
D:Inspect retention defaults, legal requirements, approval records and storage cost. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure differentiated retention for required pipelines and audit artifacts. Together they address: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
Incorrect Answers
A:Review service connection mode, secret expiration, Azure RBAC and trust configuration. This concerns a different DevOps situation: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. This case instead requires both a targeted investigation (Inspect retention defaults, legal requirements, approval records and storage cost.) and a controlled change (Configure differentiated retention for required pipelines and audit artifacts.).
B:Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This concerns a different DevOps situation: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. This case instead requires both a targeted investigation (Inspect retention defaults, legal requirements, approval records and storage cost.) and a controlled change (Configure differentiated retention for required pipelines and audit artifacts.).
E:Use dependency-aware cache keys and safe restore fallback behavior. This concerns a different DevOps situation: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. This case instead requires both a targeted investigation (Inspect retention defaults, legal requirements, approval records and storage cost.) and a controlled change (Configure differentiated retention for required pipelines and audit artifacts.).
Question 546
An engineering design review identifies: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. Which shortcut should the team MOST specifically avoid for this case?
- Treat successful compilation as proof that source code cannot contain injection flaws.
- Remove the offending commit only and leave the leaked token active.
- Ignore image findings because containers are immutable.
- Report the feature as fully implemented merely because its license was purchased.
Explanation
Correct Answer
A:Treat successful compilation as proof that source code cannot contain injection flaws. This shortcut directly undermines the stated control or workflow. A safer action is: Configure approved CodeQL analysis and risk-based remediation gates. Explanation: Code scanning should detect relevant source vulnerabilities before release.
Incorrect Answers
B:Remove the offending commit only and leave the leaked token active. This would address a different situation, such as: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. In the present case, the most directly relevant unsafe shortcut is: Treat successful compilation as proof that source code cannot contain injection flaws. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.
C:Ignore image findings because containers are immutable. This would address a different situation, such as: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. In the present case, the most directly relevant unsafe shortcut is: Treat successful compilation as proof that source code cannot contain injection flaws. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.
D:Report the feature as fully implemented merely because its license was purchased. This would address a different situation, such as: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. In the present case, the most directly relevant unsafe shortcut is: Treat successful compilation as proof that source code cannot contain injection flaws. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.
Question 547
After implementing the change, the team verifies: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. Which result would BEST demonstrate that the issue is corrected?
- A representative task runs without emitting sensitive values in logs.
- A shared security fix is adopted through a reviewed template update in each consumer.
- An unauthorized run cannot access the production deployment until approval completes.
- A failed package stage prevents promotion and no missing-artifact deployment begins.
Explanation
Correct Answer
D:A failed package stage prevents promotion and no missing-artifact deployment begins. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Define explicit stage dependencies and artifact handoffs in the YAML pipeline. YAML stage dependencies should express the actual required job order.
Incorrect Answers
A:A representative task runs without emitting sensitive values in logs. This would address a different situation, such as: An Azure Pipelines task group exposes a deployment secret as a plain variable and prints it during release. In the present case, the most directly relevant verification is: A failed package stage prevents promotion and no missing-artifact deployment begins. The crucial distinction is: YAML stage dependencies should express the actual required job order.
B:A shared security fix is adopted through a reviewed template update in each consumer. This would address a different situation, such as: Teams each copy a deployment YAML template and security fixes reach only some repositories. In the present case, the most directly relevant verification is: A failed package stage prevents promotion and no missing-artifact deployment begins. The crucial distinction is: YAML stage dependencies should express the actual required job order.
C:An unauthorized run cannot access the production deployment until approval completes. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant verification is: A failed package stage prevents promotion and no missing-artifact deployment begins. The crucial distinction is: YAML stage dependencies should express the actual required job order.
Question 548
An Azure DevOps engineering team evaluates this condition: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. Which DevOps principle BEST explains the underlying weakness?
- Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
- Submodules should resolve to reviewed immutable commits for reproducible builds.
- Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
- Git reflog can help recover recent local reference movements before garbage collection.
Explanation
Correct Answer
B:Submodules should resolve to reviewed immutable commits for reproducible builds. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect superproject gitlinks, submodule branch settings and build input records. An appropriate controlled response is: Pin the submodule to an approved commit and update it through reviewed changes.
Incorrect Answers
A:Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. This would address a different situation, such as: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. In the present case, the most directly relevant principle is: Submodules should resolve to reviewed immutable commits for reproducible builds. The crucial distinction is: Submodules should resolve to reviewed immutable commits for reproducible builds.
C:Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. This would address a different situation, such as: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. In the present case, the most directly relevant principle is: Submodules should resolve to reviewed immutable commits for reproducible builds. The crucial distinction is: Submodules should resolve to reviewed immutable commits for reproducible builds.
D:Git reflog can help recover recent local reference movements before garbage collection. This would address a different situation, such as: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. In the present case, the most directly relevant principle is: Submodules should resolve to reviewed immutable commits for reproducible builds. The crucial distinction is: Submodules should resolve to reviewed immutable commits for reproducible builds.
Question 549
An Azure DevOps engineering team evaluates this condition: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. Which DevOps principle BEST explains the underlying weakness?
- Desired state must be reconciled with real infrastructure before applying further changes.
- Guest desired-state policy should be measurable and enforceable across managed VMs.
- Infrastructure templates should codify consistent application platform controls.
- IaC builds need controlled provider requirements and lockfile provenance.
Explanation
Correct Answer
A:Desired state must be reconciled with real infrastructure before applying further changes. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect provider refresh results, plan drift and authorized manual changes. An appropriate controlled response is: Run governed drift detection and reconcile approved changes through IaC.
Incorrect Answers
B:Guest desired-state policy should be measurable and enforceable across managed VMs. This would address a different situation, such as: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. In the present case, the most directly relevant principle is: Desired state must be reconciled with real infrastructure before applying further changes. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
C:Infrastructure templates should codify consistent application platform controls. This would address a different situation, such as: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. In the present case, the most directly relevant principle is: Desired state must be reconciled with real infrastructure before applying further changes. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
D:IaC builds need controlled provider requirements and lockfile provenance. This would address a different situation, such as: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. In the present case, the most directly relevant principle is: Desired state must be reconciled with real infrastructure before applying further changes. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
Question 550
The DevOps team must resolve this situation: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. Which engineering action is MOST appropriate?
- Use reviewed package promotion into stable feed views before production consumption.
- Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.
- Pin the release to the verified pipeline run and immutable artifact identifier.
- Use unique versioned paths and verify digest before deployment.
Explanation
Correct Answer
D:Use unique versioned paths and verify digest before deployment. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A replaced object fails the manifest digest check and cannot silently deploy. Artifact integrity requires immutable identity and reliable build-to-release linkage.
Incorrect Answers
A:Use reviewed package promotion into stable feed views before production consumption. This would address a different situation, such as: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. In the present case, the most directly relevant engineering action is: Use unique versioned paths and verify digest before deployment. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
B:Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access. This would address a different situation, such as: A.NET service pulls internal NuGet libraries from a developer laptop because no shared feed exists. In the present case, the most directly relevant engineering action is: Use unique versioned paths and verify digest before deployment. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
C:Pin the release to the verified pipeline run and immutable artifact identifier. This would address a different situation, such as: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. In the present case, the most directly relevant engineering action is: Use unique versioned paths and verify digest before deployment. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.