Microsoft AZ-400 Practice Test 42
Question 410
Before changing the pipeline or service, engineers find: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. Which evidence should the engineer inspect FIRST?
- Compare wiki revisions, pipeline definitions, links and onboarding incident history.
- Review OpenAPI specification, release artifact version and documentation publication stage.
- Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules.
- Review commit labels, semantic versions, pull request metadata and changelog history.
Explanation
Correct Answer
B:Review OpenAPI specification, release artifact version and documentation publication stage. This directly checks the uncertain behavior or control before changing production. API documentation must be published from the approved version and checked for compatibility. The resulting targeted action is: Generate and publish versioned API documentation as a release-gated artifact.
Incorrect Answers
A: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 OpenAPI specification, release artifact version and documentation publication stage. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
C: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 OpenAPI specification, release artifact version and documentation publication stage. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
D:Review commit labels, semantic versions, pull request metadata and changelog history. This would address a different situation, such as: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. In the present case, the most directly relevant evidence is: Review OpenAPI specification, release artifact version and documentation publication stage. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
Question 411
Before changing the pipeline or service, engineers find: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. Which evidence should the engineer inspect FIRST?
- Review load profile, Azure Load Testing results, request percentiles and capacity metrics.
- Inspect task arguments, secret masking, logs, scope and token issuance.
- Inspect producer schemas, consumer tests, artifact versions and failure logs.
- Inspect schema migration scripts, live app versions, default values and rollback plans.
Explanation
Correct Answer
A:Review load profile, Azure Load Testing results, request percentiles and capacity metrics. This directly checks the uncertain behavior or control before changing production. Load tests should measure realistic concurrency against explicit performance thresholds. The resulting targeted action is: Add an Azure Load Testing stage with approved throughput and latency pass criteria.
Incorrect Answers
B:Inspect task arguments, secret masking, logs, scope and token issuance. This would address a different situation, such as: A test task writes its service principal secret into verbose logs on every failing run. In the present case, the most directly relevant evidence is: Review load profile, Azure Load Testing results, request percentiles and capacity metrics. The crucial distinction is: Load tests should measure realistic concurrency against explicit performance thresholds.
C:Inspect producer schemas, consumer tests, artifact versions and failure logs. This would address a different situation, such as: A microservice changes a JSON field name while a downstream consumer still relies on the old name. In the present case, the most directly relevant evidence is: Review load profile, Azure Load Testing results, request percentiles and capacity metrics. The crucial distinction is: Load tests should measure realistic concurrency against explicit performance thresholds.
D:Inspect schema migration scripts, live app versions, default values and rollback plans. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant evidence is: Review load profile, Azure Load Testing results, request percentiles and capacity metrics. The crucial distinction is: Load tests should measure realistic concurrency against explicit performance thresholds.
Question 412
An Azure DevOps engineering team evaluates this condition: An Azure Pipelines task group exposes a deployment secret as a plain variable and prints it during release. Which DevOps principle BEST explains the underlying weakness?
- Reusable pipeline elements must preserve secret scoping and masking.
- Variable groups must have environment-specific authorization and secret access controls.
- Shared templates should be centrally governed and versioned for compatible consumers.
- Self-hosted runners require trust boundaries and workload-specific isolation.
Explanation
Correct Answer
A:Reusable pipeline elements must preserve secret scoping and masking. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect task group inputs, variable classifications, log output and service permissions. An appropriate controlled response is: Use protected secret variables or Key Vault integration and suppress credential output.
Incorrect Answers
B:Variable groups must have environment-specific authorization and secret access controls. This would address a different situation, such as: A shared variable group contains production connection strings, and every development pipeline can read them. In the present case, the most directly relevant principle is: Reusable pipeline elements must preserve secret scoping and masking. The crucial distinction is: Reusable pipeline elements must preserve secret scoping and masking.
C:Shared templates should be centrally governed and versioned for compatible consumers. 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 principle is: Reusable pipeline elements must preserve secret scoping and masking. The crucial distinction is: Reusable pipeline elements must preserve secret scoping and masking.
D:Self-hosted runners require trust boundaries and workload-specific isolation. This would address a different situation, such as: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. In the present case, the most directly relevant principle is: Reusable pipeline elements must preserve secret scoping and masking. The crucial distinction is: Reusable pipeline elements must preserve secret scoping and masking.
Question 413
Before changing the pipeline or service, engineers find: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. Which evidence should the engineer inspect FIRST?
- Inspect superproject gitlinks, submodule branch settings and build input records.
- Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts.
- Review tracked paths, Git case settings, import statements and CI filesystem behavior.
- Inspect tag protection rules, release digests and commit-signature requirements.
Explanation
Correct Answer
A:Inspect superproject gitlinks, submodule branch settings and build input records. This directly checks the uncertain behavior or control before changing production. Submodules should resolve to reviewed immutable commits for reproducible builds. The resulting targeted action is: Pin the submodule to an approved commit and update it through reviewed changes.
Incorrect Answers
B:Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. This would address a different situation, such as: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. In the present case, the most directly relevant evidence is: Inspect superproject gitlinks, submodule branch settings and build input records. The crucial distinction is: Submodules should resolve to reviewed immutable commits for reproducible builds.
C:Review tracked paths, Git case settings, import statements and CI filesystem behavior. This would address a different situation, such as: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. In the present case, the most directly relevant evidence is: Inspect superproject gitlinks, submodule branch settings and build input records. The crucial distinction is: Submodules should resolve to reviewed immutable commits for reproducible builds.
D:Inspect tag protection rules, release digests and commit-signature requirements. This would address a different situation, such as: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. In the present case, the most directly relevant evidence is: Inspect superproject gitlinks, submodule branch settings and build input records. The crucial distinction is: Submodules should resolve to reviewed immutable commits for reproducible builds.
Question 414
A Microsoft DevOps team is addressing: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. Which TWO complementary actions should be taken? Select TWO answers.
- Record the final mainline commit and linked PR/work item in deployment provenance.
- Adopt short-lived feature branches with required tests and frequent mainline integration.
- Inspect merge cadence, branch age, conflict history and required checks.
- Inspect branch rules, bypass lists, review events and commit protections.
- Enforce code owner approval for sensitive path changes in protected branches.
Explanation
Correct Answers
B:Adopt short-lived feature branches with required tests and frequent mainline integration. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect merge cadence, branch age, conflict history and required checks. Together they address: Frequent integration into a protected trunk reduces accumulated merge risk.
C:Inspect merge cadence, branch age, conflict history and required checks. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Adopt short-lived feature branches with required tests and frequent mainline integration. Together they address: Frequent integration into a protected trunk reduces accumulated merge risk.
Incorrect Answers
A:Record the final mainline commit and linked PR/work item in deployment provenance. This concerns a different DevOps situation: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. This case instead requires both a targeted investigation (Inspect merge cadence, branch age, conflict history and required checks.) and a controlled change (Adopt short-lived feature branches with required tests and frequent mainline integration.).
D:Inspect branch rules, bypass lists, review events and commit protections. This concerns a different DevOps situation: A repository's default branch allows authors to approve their own high-risk changes without independent review. This case instead requires both a targeted investigation (Inspect merge cadence, branch age, conflict history and required checks.) and a controlled change (Adopt short-lived feature branches with required tests and frequent mainline integration.).
E:Enforce code owner approval for sensitive path changes in protected branches. This concerns a different DevOps situation: Payment processing files require security review, but code owner review is only advisory. This case instead requires both a targeted investigation (Inspect merge cadence, branch age, conflict history and required checks.) and a controlled change (Adopt short-lived feature branches with required tests and frequent mainline integration.).
Question 415
The DevOps team must resolve this situation: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. Which engineering action is MOST appropriate?
- Relate production bugs to failing or missing tests and preventive backlog work.
- Link dependent work items across teams and use delivery plans to visualize blockers.
- Adopt protected mainline GitHub Flow with small reviewed changes and linked work items.
- Use a structured GitHub Issues intake process with ownership, labels and linked fixes.
Explanation
Correct Answer
C:Adopt protected mainline GitHub Flow with small reviewed changes and linked work items. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A hotfix reaches the protected mainline through review with all intended prior changes intact. Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
Incorrect Answers
A:Relate production bugs to failing or missing tests and preventive backlog work. This would address a different situation, such as: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. In the present case, the most directly relevant engineering action is: Adopt protected mainline GitHub Flow with small reviewed changes and linked work items. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
B:Link dependent work items across teams and use delivery plans to visualize blockers. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant engineering action is: Adopt protected mainline GitHub Flow with small reviewed changes and linked work items. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
D:Use a structured GitHub Issues intake process with ownership, labels and linked fixes. This would address a different situation, such as: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. In the present case, the most directly relevant engineering action is: Adopt protected mainline GitHub Flow with small reviewed changes and linked work items. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
Question 416
The DevOps team must resolve this situation: A half-finished payment feature accidentally activates immediately when its code merges into main. Which engineering action is MOST appropriate?
- Define a limited hotfix workflow with priority testing, accountable approval and later backport.
- Use a controlled migration framework with version tracking and idempotent safeguards.
- Configure graceful shutdown and appropriate draining before removing active targets.
- Deploy behind a disabled flag and enable for an approved targeted cohort after validation.
Explanation
Correct Answer
D:Deploy behind a disabled flag and enable for an approved targeted cohort after validation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The feature remains off for ordinary users until a governed activation occurs. Feature flag control separates deployment from governed feature activation.
Incorrect Answers
A:Define a limited hotfix workflow with priority testing, accountable approval and later backport. This would address a different situation, such as: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. In the present case, the most directly relevant engineering action is: Deploy behind a disabled flag and enable for an approved targeted cohort after validation. The crucial distinction is: Feature flag control separates deployment from governed feature activation.
B:Use a controlled migration framework with version tracking and idempotent safeguards. This would address a different situation, such as: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. In the present case, the most directly relevant engineering action is: Deploy behind a disabled flag and enable for an approved targeted cohort after validation. The crucial distinction is: Feature flag control separates deployment from governed feature activation.
C:Configure graceful shutdown and appropriate draining before removing active targets. This would address a different situation, such as: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. In the present case, the most directly relevant engineering action is: Deploy behind a disabled flag and enable for an approved targeted cohort after validation. The crucial distinction is: Feature flag control separates deployment from governed feature activation.
Question 417
A Microsoft DevOps team is addressing: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. Which TWO complementary actions should be taken? Select TWO answers.
- Route deployment and failure events to the approved Microsoft Teams operations channel.
- Inspect document edit rights, source history, code review ownership and decision status.
- Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
- Store decisions in a protected repository with named reviewers and link them to implementation work.
- Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules.
Explanation
Correct Answers
B:Inspect document edit rights, source history, code review ownership and decision status. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Store decisions in a protected repository with named reviewers and link them to implementation work. Together they address: Architectural knowledge needs attributable change history and accountable reviewer approval.
D:Store decisions in a protected repository with named reviewers and link them to implementation work. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect document edit rights, source history, code review ownership and decision status. Together they address: Architectural knowledge needs attributable change history and accountable reviewer approval.
Incorrect Answers
A:Route deployment and failure events to the approved Microsoft Teams operations channel. This concerns a different DevOps situation: Critical production deployment failures send only email to an unattended shared mailbox. This case instead requires both a targeted investigation (Inspect document edit rights, source history, code review ownership and decision status.) and a controlled change (Store decisions in a protected repository with named reviewers and link them to implementation work.).
C:Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This concerns a different DevOps situation: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. This case instead requires both a targeted investigation (Inspect document edit rights, source history, code review ownership and decision status.) and a controlled change (Store decisions in a protected repository with named reviewers and link them to implementation work.).
E:Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. This concerns a different DevOps situation: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. This case instead requires both a targeted investigation (Inspect document edit rights, source history, code review ownership and decision status.) and a controlled change (Store decisions in a protected repository with named reviewers and link them to implementation work.).
Question 418
The DevOps team must resolve this situation: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. Which engineering action is MOST appropriate?
- Maintain controlled support branches with signed or protected release tags and planned retirement.
- Require reviewed back-merges or cherry-picks of hotfixes into active branches.
- Define clear branch purposes and deploy from approved immutable tagged or hashed revisions.
- Enforce code owner approval for sensitive path changes in protected branches.
Explanation
Correct Answer
A:Maintain controlled support branches with signed or protected release tags and planned retirement. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A past supported version can be rebuilt and patched without mixing incompatible mainline changes. Maintenance branching should match support windows and preserve immutable release history.
Incorrect Answers
B:Require reviewed back-merges or cherry-picks of hotfixes into active branches. This would address a different situation, such as: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. In the present case, the most directly relevant engineering action is: Maintain controlled support branches with signed or protected release tags and planned retirement. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.
C:Define clear branch purposes and deploy from approved immutable tagged or hashed revisions. This would address a different situation, such as: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. In the present case, the most directly relevant engineering action is: Maintain controlled support branches with signed or protected release tags and planned retirement. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.
D:Enforce code owner approval for sensitive path changes in protected branches. This would address a different situation, such as: Payment processing files require security review, but code owner review is only advisory. In the present case, the most directly relevant engineering action is: Maintain controlled support branches with signed or protected release tags and planned retirement. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.
Question 419
A Microsoft DevOps team is addressing: A repository's default branch allows authors to approve their own high-risk changes without independent review. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect merge conflicts, feature activation requirements and current flag controls.
- Inspect merge cadence, branch age, conflict history and required checks.
- Inspect branch rules, bypass lists, review events and commit protections.
- Restrict force pushes on shared branches and use approved non-destructive integration.
- Require independent pull request reviews and passing automated checks on main.
Explanation
Correct Answers
C:Inspect branch rules, bypass lists, review events and commit protections. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Require independent pull request reviews and passing automated checks on main. Together they address: Branch policies should enforce an independent review and required checks for protected code.
E:Require independent pull request reviews and passing automated checks on main. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect branch rules, bypass lists, review events and commit protections. Together they address: Branch policies should enforce an independent review and required checks for protected code.
Incorrect Answers
A:Inspect merge conflicts, feature activation requirements and current flag controls. This concerns a different DevOps situation: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. This case instead requires both a targeted investigation (Inspect branch rules, bypass lists, review events and commit protections.) and a controlled change (Require independent pull request reviews and passing automated checks on main.).
B:Inspect merge cadence, branch age, conflict history and required checks. This concerns a different DevOps situation: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. This case instead requires both a targeted investigation (Inspect branch rules, bypass lists, review events and commit protections.) and a controlled change (Require independent pull request reviews and passing automated checks on main.).
D:Restrict force pushes on shared branches and use approved non-destructive integration. This concerns a different DevOps situation: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. This case instead requires both a targeted investigation (Inspect branch rules, bypass lists, review events and commit protections.) and a controlled change (Require independent pull request reviews and passing automated checks on main.).
Question 420
An Azure DevOps engineering team evaluates this condition: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. Which DevOps principle BEST explains the underlying weakness?
- Desired state governance needs verified registration, pull frequency and compliance feedback.
- Policy exemptions need justified owner approval, scope and expiration.
- IaC builds need controlled provider requirements and lockfile provenance.
- Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
Explanation
Correct Answer
B:Policy exemptions need justified owner approval, scope and expiration. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect policy assignment, exemption resource metadata, business rationale and expiry. An appropriate controlled response is: Create a governed scoped exemption with an owner and expiry or redesign for compliance.
Incorrect Answers
A:Desired state governance needs verified registration, pull frequency and compliance feedback. This would address a different situation, such as: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. In the present case, the most directly relevant principle is: Policy exemptions need justified owner approval, scope and expiration. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.
C: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: Policy exemptions need justified owner approval, scope and expiration. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.
D:Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant principle is: Policy exemptions need justified owner approval, scope and expiration. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.