Microsoft AZ-400 Practice Test 10
Question 90
An Azure DevOps engineering team evaluates this condition: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. Which DevOps principle BEST explains the underlying weakness?
- Telemetry sampling strategy must preserve adequate signal for critical failures.
- Missing data must not be interpreted as proof of a healthy resource.
- KQL grouping by revision and time can separate release regressions from background failures.
- Operational telemetry should correlate errors with release markers and change events.
Explanation
Correct Answer
A:Telemetry sampling strategy must preserve adequate signal for critical failures. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes. An appropriate controlled response is: Adjust sampling and critical-event retention within approved performance and cost limits.
Incorrect Answers
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: Telemetry sampling strategy must preserve adequate signal for critical failures. The crucial distinction is: Telemetry sampling strategy must preserve adequate signal for critical failures.
C:KQL grouping by revision and time can separate release regressions from background failures. This would address a different situation, such as: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. In the present case, the most directly relevant principle is: Telemetry sampling strategy must preserve adequate signal for critical failures. The crucial distinction is: Telemetry sampling strategy must preserve adequate signal for critical failures.
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: Telemetry sampling strategy must preserve adequate signal for critical failures. The crucial distinction is: Telemetry sampling strategy must preserve adequate signal for critical failures.
Question 91
After implementing the change, the team verifies: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. Which result would BEST demonstrate that the issue is corrected?
- A retag attempt is denied or detected without changing the previously approved release.
- The old credential is invalid and authorized scans find no active secret exposure.
- Two builds of the same main commit use the exact approved submodule revision.
- New commits exclude build outputs and repository history action is communicated safely.
Explanation
Correct Answer
D:New commits exclude build outputs and repository history action is communicated safely. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
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: New commits exclude build outputs and repository history action is communicated safely. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
B: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: New commits exclude build outputs and repository history action is communicated safely. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
C:Two builds of the same main commit use the exact approved submodule revision. This would address a different situation, such as: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. In the present case, the most directly relevant verification is: New commits exclude build outputs and repository history action is communicated safely. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
Question 92
An Azure DevOps engineering team evaluates this condition: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. Which DevOps principle BEST explains the underlying weakness?
- Compliance scanning should identify licensing constraints before external software distribution.
- Different scanning methods cover different classes of weakness and require complementary controls.
- Security capability licensing does not prove scans run or findings are reviewed.
- Container security assessment should map findings to immutable images and release risk.
Explanation
Correct Answer
D:Container security assessment should map findings to immutable images and release risk. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect image digests, scan results, base packages and policy thresholds. An appropriate controlled response is: Integrate image vulnerability scanning and a reviewed enforcement gate before production.
Incorrect Answers
A:Compliance scanning should identify licensing constraints before external software distribution. This would address a different situation, such as: A binary distribution uses open-source dependencies but its release process does not check license obligations. In the present case, the most directly relevant principle is: Container security assessment should map findings to immutable images and release risk. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.
B:Different scanning methods cover different classes of weakness and require complementary controls. This would address a different situation, such as: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. In the present case, the most directly relevant principle is: Container security assessment should map findings to immutable images and release risk. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.
C:Security capability licensing does not prove scans run or findings are reviewed. 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 principle is: Container security assessment should map findings to immutable images and release risk. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.
Question 93
An engineering design review identifies: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. Which shortcut should the team MOST specifically avoid for this case?
- Increase the capacity alarm threshold to hide request failures.
- SSH to a newly replaced node and expect deleted container logs to remain locally.
- Treat every completed workflow as a successful build.
- Collect only aggregate server CPU and assume it identifies every slow request.
Explanation
Correct Answer
D:Collect only aggregate server CPU and assume it identifies every slow request. This shortcut directly undermines the stated control or workflow. A safer action is: Instrument supported Application Insights distributed tracing with context propagation. Explanation: Distributed telemetry should correlate requests and dependencies across application boundaries.
Incorrect Answers
A:Increase the capacity alarm threshold to hide request failures. This would address a different situation, such as: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. In the present case, the most directly relevant unsafe shortcut is: Collect only aggregate server CPU and assume it identifies every slow request. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.
B:SSH to a newly replaced node and expect deleted container logs to remain locally. This would address a different situation, such as: AKS pods restart frequently but the team captures only the last running pod's console output. In the present case, the most directly relevant unsafe shortcut is: Collect only aggregate server CPU and assume it identifies every slow request. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.
C:Treat every completed workflow as a successful build. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant unsafe shortcut is: Collect only aggregate server CPU and assume it identifies every slow request. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.
Question 94
The DevOps team must resolve this situation: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. Which engineering action is MOST appropriate?
- Configure the authorized Azure Boards-GitHub integration and linking conventions.
- Generate draft release notes from structured commits and require review of breaking changes.
- Generate and publish versioned API documentation as a release-gated artifact.
- Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.
Explanation
Correct Answer
D:Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A pipeline stage change triggers corresponding diagram review and accurate dependency display. Diagrams should reflect executable workflow dependencies and be maintainable with source.
Incorrect Answers
A:Configure the authorized Azure Boards-GitHub integration and linking conventions. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant engineering action is: Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.
B:Generate draft release notes from structured commits and require review of breaking changes. 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 engineering action is: Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.
C:Generate and publish versioned API documentation as a release-gated artifact. 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 engineering action is: Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.
Question 95
A Microsoft DevOps team is addressing: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. Which TWO complementary actions should be taken? Select TWO answers.
- Build KQL queries with identity dimensions and appropriate anomaly thresholds.
- Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes.
- Inspect sign-in records, principal IDs, resource IDs, times and failure causes.
- Compare application failures, deployment annotations, version IDs and request telemetry.
- Inspect request duration distribution, service cohorts, and p95/p99 KQL queries.
Explanation
Correct Answers
A:Build KQL queries with identity dimensions and appropriate anomaly thresholds. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect sign-in records, principal IDs, resource IDs, times and failure causes. Together they address: Security observability requires principal-specific queries and context.
C:Inspect sign-in records, principal IDs, resource IDs, times and failure causes. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Build KQL queries with identity dimensions and appropriate anomaly thresholds. Together they address: Security observability requires principal-specific queries and context.
Incorrect Answers
B:Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes. This concerns a different DevOps situation: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. This case instead requires both a targeted investigation (Inspect sign-in records, principal IDs, resource IDs, times and failure causes.) and a controlled change (Build KQL queries with identity dimensions and appropriate anomaly thresholds.).
D:Compare application failures, deployment annotations, version IDs and request telemetry. This concerns a different DevOps situation: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. This case instead requires both a targeted investigation (Inspect sign-in records, principal IDs, resource IDs, times and failure causes.) and a controlled change (Build KQL queries with identity dimensions and appropriate anomaly thresholds.).
E:Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. This concerns a different DevOps situation: An API dashboard shows acceptable average response time even though the slowest 5% of requests exceed the customer SLA. This case instead requires both a targeted investigation (Inspect sign-in records, principal IDs, resource IDs, times and failure causes.) and a controlled change (Build KQL queries with identity dimensions and appropriate anomaly thresholds.).
Question 96
The DevOps team must resolve this situation: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. Which engineering action is MOST appropriate?
- Enable Dependabot alerts and governed security updates with CI checks.
- Use risk-based triage with owners, remediation SLAs and documented waivers.
- Configure approved CodeQL analysis and risk-based remediation gates.
- Integrate image vulnerability scanning and a reviewed enforcement gate before production.
Explanation
Correct Answer
A:Enable Dependabot alerts and governed security updates with CI checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A simulated vulnerable dependency is flagged and its patched upgrade passes validation. Dependency monitoring should detect vulnerable package versions with actionable updates.
Incorrect Answers
B:Use risk-based triage with owners, remediation SLAs and documented waivers. This would address a different situation, such as: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. In the present case, the most directly relevant engineering action is: Enable Dependabot alerts and governed security updates with CI checks. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
C:Configure approved CodeQL analysis and risk-based remediation gates. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant engineering action is: Enable Dependabot alerts and governed security updates with CI checks. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
D:Integrate image vulnerability scanning and a reviewed enforcement gate before production. 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 engineering action is: Enable Dependabot alerts and governed security updates with CI checks. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
Question 97
A Microsoft DevOps team is addressing: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect feed/project scope, pipeline identity, role assignment and error logs.
- Pin approved package ranges with lockfiles and deterministic restore settings.
- Review feed upstream configuration, package authorization and cached dependency versions.
- Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
- Commit a reviewed lockfile and run reproducible installation with dependency scanning.
Explanation
Correct Answers
C:Review feed upstream configuration, package authorization and cached dependency versions. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure an approved upstream source and appropriate package permissions in Azure Artifacts. Together they address: Upstream sources can cache approved public dependencies through controlled feeds.
D:Configure an approved upstream source and appropriate package permissions in Azure Artifacts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review feed upstream configuration, package authorization and cached dependency versions. Together they address: Upstream sources can cache approved public dependencies through controlled feeds.
Incorrect Answers
A:Inspect feed/project scope, pipeline identity, role assignment and error logs. This concerns a different DevOps situation: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. This case instead requires both a targeted investigation (Review feed upstream configuration, package authorization and cached dependency versions.) and a controlled change (Configure an approved upstream source and appropriate package permissions in Azure Artifacts.).
B:Pin approved package ranges with lockfiles and deterministic restore settings. This concerns a different DevOps situation: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. This case instead requires both a targeted investigation (Review feed upstream configuration, package authorization and cached dependency versions.) and a controlled change (Configure an approved upstream source and appropriate package permissions in Azure Artifacts.).
E:Commit a reviewed lockfile and run reproducible installation with dependency scanning. This concerns a different DevOps situation: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. This case instead requires both a targeted investigation (Review feed upstream configuration, package authorization and cached dependency versions.) and a controlled change (Configure an approved upstream source and appropriate package permissions in Azure Artifacts.).
Question 98
Before changing the pipeline or service, engineers find: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. Which evidence should the engineer inspect FIRST?
- Compare release branch commits, mainline history and subsequent deployment tags.
- Inspect merge conflicts, feature activation requirements and current flag controls.
- Inspect merge cadence, branch age, conflict history and required checks.
- Review supported version policy, branch retention, release tags and backport evidence.
Explanation
Correct Answer
C:Inspect merge cadence, branch age, conflict history and required checks. This directly checks the uncertain behavior or control before changing production. Frequent integration into a protected trunk reduces accumulated merge risk. The resulting targeted action is: Adopt short-lived feature branches with required tests and frequent mainline integration.
Incorrect Answers
A:Compare release branch commits, mainline history and subsequent deployment tags. 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 evidence is: Inspect merge cadence, branch age, conflict history and required checks. The crucial distinction is: Frequent integration into a protected trunk reduces accumulated merge risk.
B:Inspect merge conflicts, feature activation requirements and current flag controls. This would address a different situation, such as: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. In the present case, the most directly relevant evidence is: Inspect merge cadence, branch age, conflict history and required checks. The crucial distinction is: Frequent integration into a protected trunk reduces accumulated merge risk.
D:Review supported version policy, branch retention, release tags and backport evidence. This would address a different situation, such as: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. In the present case, the most directly relevant evidence is: Inspect merge cadence, branch age, conflict history and required checks. The crucial distinction is: Frequent integration into a protected trunk reduces accumulated merge risk.
Question 99
The DevOps team must resolve this situation: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. Which engineering action is MOST appropriate?
- Adopt supported workload identity federation with least-privilege Azure scope.
- Use a GitHub App with minimal repository permissions for the workflow.
- Separate pipeline authors from release-approval administrators and audit exceptions.
- Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.
Explanation
Correct Answer
B:Use a GitHub App with minimal repository permissions for the workflow. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The app posts required status comments but cannot access unauthorized repositories. App-based automation can use narrow installation permissions and accountable identity.
Incorrect Answers
A:Adopt supported workload identity federation with least-privilege Azure scope. This would address a different situation, such as: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. In the present case, the most directly relevant engineering action is: Use a GitHub App with minimal repository permissions for the workflow. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
C:Separate pipeline authors from release-approval administrators and audit exceptions. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant engineering action is: Use a GitHub App with minimal repository permissions for the workflow. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
D:Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant engineering action is: Use a GitHub App with minimal repository permissions for the workflow. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
Question 100
An Azure DevOps engineering team evaluates this condition: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. Which DevOps principle BEST explains the underlying weakness?
- Secret rotation must coordinate client update, version retention and recovery.
- OIDC federation trust should restrict audience, issuer and repository/environment subject.
- Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
- Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.
Explanation
Correct Answer
B:OIDC federation trust should restrict audience, issuer and repository/environment subject. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. An appropriate controlled response is: Limit trust to an approved protected repository environment and least-privilege scope.
Incorrect Answers
A:Secret rotation must coordinate client update, version retention and recovery. 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 principle is: OIDC federation trust should restrict audience, issuer and repository/environment subject. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
C:Sensitive deployment files should use authenticated encrypted storage and tightly scoped access. 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 principle is: OIDC federation trust should restrict audience, issuer and repository/environment subject. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
D:Pipeline secrets should be retrieved from controlled stores and kept out of source and 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 principle is: OIDC federation trust should restrict audience, issuer and repository/environment subject. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.