Microsoft AZ-400 Practice Test 15
Question 140
Before changing the pipeline or service, engineers find: A shared variable group contains production connection strings, and every development pipeline can read them. Which evidence should the engineer inspect FIRST?
- Inspect dependsOn, output artifacts, stage conditions and run timelines.
- Review stage condition expressions, dependency status and test results.
- Inspect library permissions, pipeline authorization, variable source and consumer identities.
- Inspect YAML trigger filters, branch protections and deployment conditions.
Explanation
Correct Answer
C:Inspect library permissions, pipeline authorization, variable source and consumer identities. This directly checks the uncertain behavior or control before changing production. Variable groups must have environment-specific authorization and secret access controls. The resulting targeted action is: Separate production variables and restrict group use to approved production pipelines.
Incorrect Answers
A:Inspect dependsOn, output artifacts, stage conditions and run timelines. This would address a different situation, such as: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. In the present case, the most directly relevant evidence is: Inspect library permissions, pipeline authorization, variable source and consumer identities. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.
B:Review stage condition expressions, dependency status and test results. This would address a different situation, such as: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. In the present case, the most directly relevant evidence is: Inspect library permissions, pipeline authorization, variable source and consumer identities. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.
D:Inspect YAML trigger filters, branch protections and deployment conditions. This would address a different situation, such as: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. In the present case, the most directly relevant evidence is: Inspect library permissions, pipeline authorization, variable source and consumer identities. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.
Question 141
Before changing the pipeline or service, engineers find: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. Which evidence should the engineer inspect FIRST?
- Inspect lockfile changes, package registry source, published checksums and CI scan reports.
- Inspect image digests, scan results, base packages and policy thresholds.
- Inspect Defender for Cloud DevOps connector, authorization and repository inventory.
- Inspect alert severity, exploitability, exposure, service criticality and exceptions.
Explanation
Correct Answer
D:Inspect alert severity, exploitability, exposure, service criticality and exceptions. This directly checks the uncertain behavior or control before changing production. Security scanning should prioritize relevant risk and accountable remediation. The resulting targeted action is: Use risk-based triage with owners, remediation SLAs and documented waivers.
Incorrect Answers
A:Inspect lockfile changes, package registry source, published checksums and CI scan reports. This would address a different situation, such as: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. In the present case, the most directly relevant evidence is: Inspect alert severity, exploitability, exposure, service criticality and exceptions. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
B:Inspect image digests, scan results, base packages and policy thresholds. 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 evidence is: Inspect alert severity, exploitability, exposure, service criticality and exceptions. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
C:Inspect Defender for Cloud DevOps connector, authorization and repository inventory. This would address a different situation, such as: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. In the present case, the most directly relevant evidence is: Inspect alert severity, exploitability, exposure, service criticality and exceptions. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
Question 142
Before changing the pipeline or service, engineers find: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. Which evidence should the engineer inspect FIRST?
- Inspect Key Vault version stages, runtime cache, rotation timeline and access policy.
- Inspect YAML variables, task output, Key Vault references and secret access scope.
- Inspect Key Vault certificate/secret objects, identity rights and App Service bindings.
- Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
Explanation
Correct Answer
D:Review certificate exposure, pipeline YAML, secure-file permissions and task usage. This directly checks the uncertain behavior or control before changing production. Sensitive binary signing files need protected storage and controlled access. The resulting targeted action is: Store approved signing material as an Azure Pipelines secure file with restricted authorization.
Incorrect Answers
A:Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. This would address a different situation, such as: An application release references a database secret version that was deleted during automatic rotation, causing downtime. In the present case, the most directly relevant evidence is: Review certificate exposure, pipeline YAML, secure-file permissions and task usage. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.
B:Inspect YAML variables, task output, Key Vault references and secret access scope. This would address a different situation, such as: A pipeline prints a database password stored in a plain YAML variable during environment deployment. In the present case, the most directly relevant evidence is: Review certificate exposure, pipeline YAML, secure-file permissions and task usage. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.
C:Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. This would address a different situation, such as: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. In the present case, the most directly relevant evidence is: Review certificate exposure, pipeline YAML, secure-file permissions and task usage. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.
Question 143
After implementing the change, the team verifies: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. Which result would BEST demonstrate that the issue is corrected?
- A controlled unexpected identity event is distinguishable from authorized automation.
- The controlled rare failure produces a discoverable correlated trace.
- A disconnected test agent generates an actionable monitoring-gap alert.
- A sampled customer request maps to its exact slow dependency operation.
Explanation
Correct Answer
D:A sampled customer request maps to its exact slow dependency operation. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Join relevant telemetry tables by operation identifiers to isolate failed dependency calls. Correlated tracing requires joining telemetry using compatible operation identifiers.
Incorrect Answers
A:A controlled unexpected identity event is distinguishable from authorized automation. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant verification is: A sampled customer request maps to its exact slow dependency operation. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
B:The controlled rare failure produces a discoverable correlated trace. This would address a different situation, such as: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. In the present case, the most directly relevant verification is: A sampled customer request maps to its exact slow dependency operation. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
C:A disconnected test agent generates an actionable monitoring-gap alert. This would address a different situation, such as: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. In the present case, the most directly relevant verification is: A sampled customer request maps to its exact slow dependency operation. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
Question 144
After implementing the change, the team verifies: A repository wiki describes a build script that was removed six months ago and breaks onboarding. Which result would BEST demonstrate that the issue is corrected?
- A pipeline stage change triggers corresponding diagram review and accurate dependency display.
- Repeated delivery of the same event results in one linked change ticket.
- A proposed architecture revision requires review and preserves earlier decision history.
- A fresh contributor follows the current documented build without obsolete steps.
Explanation
Correct Answer
D:A fresh contributor follows the current documented build without obsolete steps. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Keep technical runbooks alongside source changes with reviewed documentation checks. Documentation should be versioned with the workflow it explains and validated during change.
Incorrect Answers
A:A pipeline stage change triggers corresponding diagram review and accurate dependency display. 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 verification is: A fresh contributor follows the current documented build without obsolete steps. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
B:Repeated delivery of the same event results in one linked change ticket. 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 verification is: A fresh contributor follows the current documented build without obsolete steps. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
C:A proposed architecture revision requires review and preserves earlier decision history. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant verification is: A fresh contributor follows the current documented build without obsolete steps. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
Question 145
Before changing the pipeline or service, engineers find: A legacy classic Azure Release pipeline hides deployment steps in the UI and new teams cannot peer-review changes. Which evidence should the engineer inspect FIRST?
- Inspect timeline, agent saturation, external dependencies and budget.
- Compare classic stage approvals with YAML environment checks and service-connection authorization.
- Inventory classic tasks, approvals, variables, environments and artifact inputs.
- Inspect package restore sources, build manifests, feed versions and migration schedule.
Explanation
Correct Answer
C:Inventory classic tasks, approvals, variables, environments and artifact inputs. This directly checks the uncertain behavior or control before changing production. Moving deployment logic to versioned YAML can improve consistency and review. The resulting targeted action is: Migrate release steps to reviewed YAML with protected environment checks and verified parity.
Incorrect Answers
A:Inspect timeline, agent saturation, external dependencies and budget. 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 evidence is: Inventory classic tasks, approvals, variables, environments and artifact inputs. The crucial distinction is: Moving deployment logic to versioned YAML can improve consistency and review.
B:Compare classic stage approvals with YAML environment checks and service-connection authorization. This would address a different situation, such as: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. In the present case, the most directly relevant evidence is: Inventory classic tasks, approvals, variables, environments and artifact inputs. The crucial distinction is: Moving deployment logic to versioned YAML can improve consistency and review.
D:Inspect package restore sources, build manifests, feed versions and migration schedule. This would address a different situation, such as: A package registry is scheduled for migration, but retired feeds still contain dependencies used by maintained builds. In the present case, the most directly relevant evidence is: Inventory classic tasks, approvals, variables, environments and artifact inputs. The crucial distinction is: Moving deployment logic to versioned YAML can improve consistency and review.
Question 146
A Microsoft DevOps team is addressing: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. Which TWO complementary actions should be taken? Select TWO answers.
- Review code duplication, package provenance, semver constraints and release history.
- Recover the intended commit using the recorded reflog SHA and a safe new branch.
- Inspect reflog entries, commit IDs, branch history and garbage collection status.
- Inspect historical blobs, generated folders, .gitignore rules and clone sizes.
- Govern large-file retention, selective downloads and authorized capacity increases.
Explanation
Correct Answers
B:Recover the intended commit using the recorded reflog SHA and a safe new branch. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect reflog entries, commit IDs, branch history and garbage collection status. Together they address: Git reflog can help recover recent local reference movements before garbage collection.
C:Inspect reflog entries, commit IDs, branch history and garbage collection status. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Recover the intended commit using the recorded reflog SHA and a safe new branch. Together they address: Git reflog can help recover recent local reference movements before garbage collection.
Incorrect Answers
A:Review code duplication, package provenance, semver constraints and release history. This concerns a different DevOps situation: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. This case instead requires both a targeted investigation (Inspect reflog entries, commit IDs, branch history and garbage collection status.) and a controlled change (Recover the intended commit using the recorded reflog SHA and a safe new branch.).
D:Inspect historical blobs, generated folders,.gitignore rules and clone sizes. This concerns a different DevOps situation: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. This case instead requires both a targeted investigation (Inspect reflog entries, commit IDs, branch history and garbage collection status.) and a controlled change (Recover the intended commit using the recorded reflog SHA and a safe new branch.).
E:Govern large-file retention, selective downloads and authorized capacity increases. This concerns a different DevOps situation: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. This case instead requires both a targeted investigation (Inspect reflog entries, commit IDs, branch history and garbage collection status.) and a controlled change (Recover the intended commit using the recorded reflog SHA and a safe new branch.).
Question 147
An Azure DevOps engineering team evaluates this condition: A repository's default branch allows authors to approve their own high-risk changes without independent review. Which DevOps principle BEST explains the underlying weakness?
- Branch conventions and immutable release references should uniquely identify deployable versions.
- Branch policies should enforce an independent review and required checks for protected code.
- Required checks must apply to the head commit actually being merged.
- Every deployable branch needs controls proportionate to production impact.
Explanation
Correct Answer
B:Branch policies should enforce an independent review and required checks for protected code. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect branch rules, bypass lists, review events and commit protections. An appropriate controlled response is: Require independent pull request reviews and passing automated checks on main.
Incorrect Answers
A:Branch conventions and immutable release references should uniquely identify deployable versions. 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 principle is: Branch policies should enforce an independent review and required checks for protected code. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.
C:Required checks must apply to the head commit actually being merged. This would address a different situation, such as: A pull request passes security tests, then receives new commits but can merge without rerunning required checks. In the present case, the most directly relevant principle is: Branch policies should enforce an independent review and required checks for protected code. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.
D:Every deployable branch needs controls proportionate to production impact. This would address a different situation, such as: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. In the present case, the most directly relevant principle is: Branch policies should enforce an independent review and required checks for protected code. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.
Question 148
An Azure DevOps engineering team evaluates this condition: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. Which DevOps principle BEST explains the underlying weakness?
- Security observability requires principal-specific queries and context.
- Missing data must not be interpreted as proof of a healthy resource.
- Correlated tracing requires joining telemetry using compatible operation identifiers.
- Operational telemetry should correlate errors with release markers and change events.
Explanation
Correct Answer
C:Correlated tracing requires joining telemetry using compatible operation identifiers. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect requests, dependencies, operation_Id values and time range. An appropriate controlled response is: Join relevant telemetry tables by operation identifiers to isolate failed dependency calls.
Incorrect Answers
A:Security observability requires principal-specific queries and context. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant principle is: Correlated tracing requires joining telemetry using compatible operation identifiers. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
B:Missing data must not be interpreted as proof of a healthy resource. This would address a different situation, such as: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. In the present case, the most directly relevant principle is: Correlated tracing requires joining telemetry using compatible operation identifiers. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
D:Operational telemetry should correlate errors with release markers and change events. This would address a different situation, such as: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. In the present case, the most directly relevant principle is: Correlated tracing requires joining telemetry using compatible operation identifiers. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
Question 149
After implementing the change, the team verifies: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. Which result would BEST demonstrate that the issue is corrected?
- A deliberately failing unit test prevents the pull request from merging.
- An incompatible field removal fails pipeline validation before production use.
- An intentionally vulnerable test image is blocked and an approved fixed image proceeds.
- A policy-blocking insecure test change cannot merge before security review.
Explanation
Correct Answer
D:A policy-blocking insecure test change cannot merge before security review. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Run supported code scanning on pull requests with risk-appropriate merge gates. Code-scanning feedback should be available on proposed changes before merge.
Incorrect Answers
A:A deliberately failing unit test prevents the pull request from merging. This would address a different situation, such as: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. In the present case, the most directly relevant verification is: A policy-blocking insecure test change cannot merge before security review. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.
B:An incompatible field removal fails pipeline validation before production use. 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 verification is: A policy-blocking insecure test change cannot merge before security review. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.
C:An intentionally vulnerable test image is blocked and an approved fixed image proceeds. This would address a different situation, such as: A container image with a known critical vulnerability passes all unit tests and is promoted to production. In the present case, the most directly relevant verification is: A policy-blocking insecure test change cannot merge before security review. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.
Question 150
After implementing the change, the team verifies: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. Which result would BEST demonstrate that the issue is corrected?
- A retag attempt is denied or detected without changing the previously approved release.
- The restored changes match the lost commit without overwriting colleagues' work.
- A fresh clone downloads code quickly and selected large assets on demand.
- The old credential is invalid and authorized scans find no active secret exposure.
Explanation
Correct Answer
C:A fresh clone downloads code quickly and selected large assets on demand. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
Incorrect Answers
A:A retag attempt is denied or detected without changing the previously approved release. 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 verification is: A fresh clone downloads code quickly and selected large assets on demand. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
B:The restored changes match the lost commit without overwriting colleagues' work. 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 verification is: A fresh clone downloads code quickly and selected large assets on demand. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
D:The old credential is invalid and authorized scans find no active secret exposure. This would address a different situation, such as: A database credential is removed from the latest Git commit but remains visible in old revisions. In the present case, the most directly relevant verification is: A fresh clone downloads code quickly and selected large assets on demand. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.