Microsoft AZ-400 Practice Test 41
Question 400
The DevOps team must resolve this situation: A container image with a known critical vulnerability passes all unit tests and is promoted to production. Which engineering action is MOST appropriate?
- Implement repeatable baseline comparison gates for resource consumption and latency.
- Add a risk-based container vulnerability scan gate before deployment approval.
- Improve boundary-value assertions and use mutation or targeted fault tests as appropriate.
- Run supported code scanning on pull requests with risk-appropriate merge gates.
Explanation
Correct Answer
B:Add a risk-based container vulnerability scan gate before deployment approval. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An intentionally vulnerable test image is blocked and an approved fixed image proceeds. Security policy gates should prevent release of unapproved critical vulnerabilities.
Incorrect Answers
A:Implement repeatable baseline comparison gates for resource consumption and latency. This would address a different situation, such as: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. In the present case, the most directly relevant engineering action is: Add a risk-based container vulnerability scan gate before deployment approval. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
C:Improve boundary-value assertions and use mutation or targeted fault tests as appropriate. This would address a different situation, such as: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. In the present case, the most directly relevant engineering action is: Add a risk-based container vulnerability scan gate before deployment approval. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
D:Run supported code scanning on pull requests with risk-appropriate merge gates. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant engineering action is: Add a risk-based container vulnerability scan gate before deployment approval. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
Question 401
A Microsoft DevOps team is addressing: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. Which TWO complementary actions should be taken? Select TWO answers.
- Configure approved CodeQL analysis and risk-based remediation gates.
- Inspect lockfile changes, package registry source, published checksums and CI scan reports.
- Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts.
- Require reviewed package source, SBOM and policy gates before accepting dependency updates.
- Review SBOM, open-source license records, distribution type and exception approvals.
Explanation
Correct Answers
B:Inspect lockfile changes, package registry source, published checksums and CI scan reports. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Require reviewed package source, SBOM and policy gates before accepting dependency updates. Together they address: Automated security/compliance scanning should retain dependency provenance and approved package sources.
D:Require reviewed package source, SBOM and policy gates before accepting dependency updates. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect lockfile changes, package registry source, published checksums and CI scan reports. Together they address: Automated security/compliance scanning should retain dependency provenance and approved package sources.
Incorrect Answers
A:Configure approved CodeQL analysis and risk-based remediation gates. This concerns a different DevOps situation: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. This case instead requires both a targeted investigation (Inspect lockfile changes, package registry source, published checksums and CI scan reports.) and a controlled change (Require reviewed package source, SBOM and policy gates before accepting dependency updates.).
C:Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts. This concerns a different DevOps situation: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. This case instead requires both a targeted investigation (Inspect lockfile changes, package registry source, published checksums and CI scan reports.) and a controlled change (Require reviewed package source, SBOM and policy gates before accepting dependency updates.).
E:Review SBOM, open-source license records, distribution type and exception approvals. This concerns a different DevOps situation: A binary distribution uses open-source dependencies but its release process does not check license obligations. This case instead requires both a targeted investigation (Inspect lockfile changes, package registry source, published checksums and CI scan reports.) and a controlled change (Require reviewed package source, SBOM and policy gates before accepting dependency updates.).
Question 402
An Azure DevOps engineering team evaluates this condition: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. Which DevOps principle BEST explains the underlying weakness?
- Policy effects differ between reporting and preventive enforcement.
- Guest desired-state policy should be measurable and enforceable across managed VMs.
- IaC modules should centralize approved reusable infrastructure patterns.
- Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
Explanation
Correct Answer
D:Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect template inputs, source history, Key Vault access and deployment output. An appropriate controlled response is: Reference protected secrets via governed Key Vault/identity patterns without logging values.
Incorrect Answers
A:Policy effects differ between reporting and preventive enforcement. This would address a different situation, such as: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. In the present case, the most directly relevant principle is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
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: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
C:IaC modules should centralize approved reusable infrastructure patterns. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant principle is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
Question 403
Before changing the pipeline or service, engineers find: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. Which evidence should the engineer inspect FIRST?
- Inspect dependency resolution reports, advisory scope, wheel metadata and test outcomes.
- Inspect artifact store versioning, write policy, source SHA and release logs.
- Inspect build timestamps, package versions, artifact digests and update metadata.
- Inspect source run IDs, artifact digests, release manifests and download task inputs.
Explanation
Correct Answer
C:Inspect build timestamps, package versions, artifact digests and update metadata. This directly checks the uncertain behavior or control before changing production. Date-based versions need an unambiguous unique revision component and provenance. The resulting targeted action is: Add a consistent unique build identifier to the approved CalVer scheme.
Incorrect Answers
A:Inspect dependency resolution reports, advisory scope, wheel metadata and test outcomes. This would address a different situation, such as: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. In the present case, the most directly relevant evidence is: Inspect build timestamps, package versions, artifact digests and update metadata. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.
B:Inspect artifact store versioning, write policy, source SHA and release logs. 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 evidence is: Inspect build timestamps, package versions, artifact digests and update metadata. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.
D:Inspect source run IDs, artifact digests, release manifests and download task inputs. 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 evidence is: Inspect build timestamps, package versions, artifact digests and update metadata. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.
Question 404
The DevOps team must resolve this situation: A deployment receives approval even when a required penetration-test issue remains unresolved and unaccepted. Which engineering action is MOST appropriate?
- Use a dedicated test subscription or resource group with restricted identity permissions.
- Run isolated integration tests against approved representative Azure SQL dependencies.
- Require accountable acceptance or closure of critical security blockers before promotion.
- Add guarded end-to-end UI tests for checkout and payment confirmation.
Explanation
Correct Answer
C:Require accountable acceptance or closure of critical security blockers before promotion. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A deliberately unresolved critical issue prevents production promotion until authorized disposition. Release gates must evaluate approved risk exceptions and mandatory security criteria.
Incorrect Answers
A:Use a dedicated test subscription or resource group with restricted identity permissions. This would address a different situation, such as: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. In the present case, the most directly relevant engineering action is: Require accountable acceptance or closure of critical security blockers before promotion. The crucial distinction is: Release gates must evaluate approved risk exceptions and mandatory security criteria.
B:Run isolated integration tests against approved representative Azure SQL dependencies. This would address a different situation, such as: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. In the present case, the most directly relevant engineering action is: Require accountable acceptance or closure of critical security blockers before promotion. The crucial distinction is: Release gates must evaluate approved risk exceptions and mandatory security criteria.
D:Add guarded end-to-end UI tests for checkout and payment confirmation. This would address a different situation, such as: A payment workflow completes an HTTP health check but fails after users submit the checkout form. In the present case, the most directly relevant engineering action is: Require accountable acceptance or closure of critical security blockers before promotion. The crucial distinction is: Release gates must evaluate approved risk exceptions and mandatory security criteria.
Question 405
The DevOps team must resolve this situation: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. Which engineering action is MOST appropriate?
- Build aging and SLA queries for critical findings with owner and disposition fields.
- Define recovery completion using service-level restoration and compute the metric accordingly.
- Publish excluded and flaky test counts with test trends and actionable owner assignments.
- Build service-segmented queries and complementary stability metrics.
Explanation
Correct Answer
D:Build service-segmented queries and complementary stability metrics. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Payment release performance can be evaluated without being distorted by sandbox builds. Operational metrics must be interpreted by service context and business risk.
Incorrect Answers
A:Build aging and SLA queries for critical findings with owner and disposition fields. This would address a different situation, such as: A security scorecard shows the total number of alerts but cannot identify overdue critical fixes. In the present case, the most directly relevant engineering action is: Build service-segmented queries and complementary stability metrics. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
B:Define recovery completion using service-level restoration and compute the metric accordingly. This would address a different situation, such as: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. In the present case, the most directly relevant engineering action is: Build service-segmented queries and complementary stability metrics. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
C:Publish excluded and flaky test counts with test trends and actionable owner assignments. This would address a different situation, such as: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. In the present case, the most directly relevant engineering action is: Build service-segmented queries and complementary stability metrics. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
Question 406
After implementing the change, the team verifies: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. Which result would BEST demonstrate that the issue is corrected?
- A regression affecting tail latency breaches its gate despite unchanged mean.
- The controlled rare failure produces a discoverable correlated trace.
- A sampled customer request maps to its exact slow dependency operation.
- An injected failing release creates a visible change-linked error cluster.
Explanation
Correct Answer
B:The controlled rare failure produces a discoverable correlated trace. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Adjust sampling and critical-event retention within approved performance and cost limits. Telemetry sampling strategy must preserve adequate signal for critical failures.
Incorrect Answers
A:A regression affecting tail latency breaches its gate despite unchanged mean. This would address a different situation, such as: An API dashboard shows acceptable average response time even though the slowest 5% of requests exceed the customer SLA. In the present case, the most directly relevant verification is: The controlled rare failure produces a discoverable correlated trace. The crucial distinction is: Telemetry sampling strategy must preserve adequate signal for critical failures.
C:A sampled customer request maps to its exact slow dependency operation. This would address a different situation, such as: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. In the present case, the most directly relevant verification is: The controlled rare failure produces a discoverable correlated trace. The crucial distinction is: Telemetry sampling strategy must preserve adequate signal for critical failures.
D:An injected failing release creates a visible change-linked error cluster. 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 verification is: The controlled rare failure produces a discoverable correlated trace. The crucial distinction is: Telemetry sampling strategy must preserve adequate signal for critical failures.
Question 407
After implementing the change, the team verifies: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. Which result would BEST demonstrate that the issue is corrected?
- The deployment succeeds while secret values never appear in repository or logs.
- An unauthorized caller cannot download the deployment configuration and temp files are removed.
- Untrusted branch tokens cannot acquire production credentials.
- A rejected environment approval prevents the run from obtaining production credentials.
Explanation
Correct Answer
C:Untrusted branch tokens cannot acquire production credentials. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Limit trust to an approved protected repository environment and least-privilege scope. OIDC federation trust should restrict audience, issuer and repository/environment subject.
Incorrect Answers
A:The deployment succeeds while secret values never appear in repository or logs. 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 verification is: Untrusted branch tokens cannot acquire production credentials. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
B:An unauthorized caller cannot download the deployment configuration and temp files are removed. This would address a different situation, such as: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. In the present case, the most directly relevant verification is: Untrusted branch tokens cannot acquire production credentials. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
D:A rejected environment approval prevents the run from obtaining production credentials. This would address a different situation, such as: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. In the present case, the most directly relevant verification is: Untrusted branch tokens cannot acquire production credentials. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
Question 408
An Azure DevOps engineering team evaluates this condition: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. Which DevOps principle BEST explains the underlying weakness?
- Traceability requires explicit relationships among work items, source revisions, builds and deployments.
- Closed-loop delivery needs automated status updates connected to the requesting work.
- Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
- Release summaries should be derived from verified source and work-item changes.
Explanation
Correct Answer
C:Feedback must enter an owned trackable workflow with prioritization and resolution evidence. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Compare support messages, GitHub Issues labels, assignees and issue closure history. An appropriate controlled response is: Use a structured GitHub Issues intake process with ownership, labels and linked fixes.
Incorrect Answers
A:Traceability requires explicit relationships among work items, source revisions, builds and deployments. This would address a different situation, such as: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. In the present case, the most directly relevant principle is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
B:Closed-loop delivery needs automated status updates connected to the requesting work. This would address a different situation, such as: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. In the present case, the most directly relevant principle is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
D:Release summaries should be derived from verified source and work-item changes. This would address a different situation, such as: Release notes are composed from memory and routinely omit merged security improvements. In the present case, the most directly relevant principle is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
Question 409
After implementing the change, the team verifies: A large build spends most of its time serially running three independent test suites. Which result would BEST demonstrate that the issue is corrected?
- A trial optimization improves completion time at acceptable agent cost.
- The same full test suite finishes faster without skipped checks.
- A historical release can be reconstructed within the mandated retention period.
- An unapproved production run is blocked while an authorized approval completes.
Explanation
Correct Answer
B:The same full test suite finishes faster without skipped checks. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Run independent tests in parallel within the approved concurrency and resource budget. Pipeline job dependencies should parallelize independent work when capacity permits.
Incorrect Answers
A:A trial optimization improves completion time at acceptable agent cost. 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 verification is: The same full test suite finishes faster without skipped checks. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
C:A historical release can be reconstructed within the mandated retention period. This would address a different situation, such as: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. In the present case, the most directly relevant verification is: The same full test suite finishes faster without skipped checks. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
D:An unapproved production run is blocked while an authorized approval completes. 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 verification is: The same full test suite finishes faster without skipped checks. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
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.