Microsoft AZ-400 Practice Test 97
Question 960
Before changing the pipeline or service, engineers find: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. Which evidence should the engineer inspect FIRST?
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
- Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts.
- Inspect repository layout, dependency graph, clone filters and build requirements.
- Review tracked paths, Git case settings, import statements and CI filesystem behavior.
Explanation
Correct Answer
C:Inspect repository layout, dependency graph, clone filters and build requirements. This directly checks the uncertain behavior or control before changing production. Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. The resulting targeted action is: Configure supported sparse checkout or Scalar/partial clone for constrained workflows.
Incorrect Answers
A:Inspect project access groups, repository ACLs, token grants and vendor responsibilities. This would address a different situation, such as: A QA vendor needs read-only test access but has been granted repository administration rights. In the present case, the most directly relevant evidence is: Inspect repository layout, dependency graph, clone filters and build requirements. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
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 repository layout, dependency graph, clone filters and build requirements. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
D: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 repository layout, dependency graph, clone filters and build requirements. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
Question 961
An Azure DevOps engineering team evaluates this condition: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. Which DevOps principle BEST explains the underlying weakness?
- Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
- Job-level token permissions should match each workflow task's minimum needs.
- Cross-stage values must be explicitly published and referenced through supported output syntax.
- Concurrent deployments require serialization or controlled exclusive access to shared environments.
Explanation
Correct Answer
B:Job-level token permissions should match each workflow task's minimum needs. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect workflow permission scopes, reusable call contracts and job operations. An appropriate controlled response is: Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.
Incorrect Answers
A:Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant principle is: Job-level token permissions should match each workflow task's minimum needs. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.
C:Cross-stage values must be explicitly published and referenced through supported output syntax. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant principle is: Job-level token permissions should match each workflow task's minimum needs. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.
D:Concurrent deployments require serialization or controlled exclusive access to shared environments. This would address a different situation, such as: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. In the present case, the most directly relevant principle is: Job-level token permissions should match each workflow task's minimum needs. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.
Question 962
After implementing the change, the team verifies: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. Which result would BEST demonstrate that the issue is corrected?
- A representative debug run completes without exposing a valid credential.
- A production run uses exactly the tested artifact regardless of newer branch builds.
- A new deployment succeeds after retiring the old secret while preserving permissions.
- A clean replacement hosted image reproduces the expected build.
Explanation
Correct Answer
B:A production run uses exactly the tested artifact regardless of newer branch builds. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Pin or govern the consumed artifact to the approved pipeline run and branch. Pipeline resource references should bind to intended verified source and build run.
Incorrect Answers
A:A representative debug run completes without exposing a valid credential. This would address a different situation, such as: Verbose diagnostic logging starts printing deployment tokens after a new task version update. In the present case, the most directly relevant verification is: A production run uses exactly the tested artifact regardless of newer branch builds. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
C:A new deployment succeeds after retiring the old secret while preserving permissions. This would address a different situation, such as: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. In the present case, the most directly relevant verification is: A production run uses exactly the tested artifact regardless of newer branch builds. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
D:A clean replacement hosted image reproduces the expected build. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant verification is: A production run uses exactly the tested artifact regardless of newer branch builds. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
Question 963
A Microsoft DevOps team is addressing: AKS pods restart frequently but the team captures only the last running pod's console output. Which TWO complementary actions should be taken? Select TWO answers.
- Configure supported VM Insights or guest-memory collection and meaningful alerts.
- Enable supported AKS container telemetry with resource labels and actionable alerts.
- Inspect GitHub Actions run history, job timing, failure causes and usage trends.
- Associate the approved data collection rule and validate required log flow to the workspace.
- Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.
Explanation
Correct Answers
B:Enable supported AKS container telemetry with resource labels and actionable alerts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. Together they address: Container observability should preserve workload logs and restart context centrally.
E:Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Enable supported AKS container telemetry with resource labels and actionable alerts. Together they address: Container observability should preserve workload logs and restart context centrally.
Incorrect Answers
A:Configure supported VM Insights or guest-memory collection and meaningful alerts. This concerns a different DevOps situation: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. This case instead requires both a targeted investigation (Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.) and a controlled change (Enable supported AKS container telemetry with resource labels and actionable alerts.).
C:Inspect GitHub Actions run history, job timing, failure causes and usage trends. This concerns a different DevOps situation: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. This case instead requires both a targeted investigation (Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.) and a controlled change (Enable supported AKS container telemetry with resource labels and actionable alerts.).
D:Associate the approved data collection rule and validate required log flow to the workspace. This concerns a different DevOps situation: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. This case instead requires both a targeted investigation (Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.) and a controlled change (Enable supported AKS container telemetry with resource labels and actionable alerts.).
Question 964
Before changing the pipeline or service, engineers find: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. Which evidence should the engineer inspect FIRST?
- Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles.
- Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
- Review workflow job ordering, environment references, OIDC identity claims and Azure role scope.
- Inspect YAML variables, task output, Key Vault references and secret access scope.
Explanation
Correct Answer
A:Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. This directly checks the uncertain behavior or control before changing production. OIDC federation trust should restrict audience, issuer and repository/environment subject. The resulting targeted action is: Limit trust to an approved protected repository environment and least-privilege scope.
Incorrect Answers
B:Review certificate exposure, pipeline YAML, secure-file permissions and task usage. This would address a different situation, such as: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. In the present case, the most directly relevant evidence is: Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
C:Review workflow job ordering, environment references, OIDC identity claims and Azure role scope. 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 evidence is: Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
D: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: Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
Question 965
The DevOps team must resolve this situation: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. Which engineering action is MOST appropriate?
- Update related GitHub Issues from protected workflow events with release status and error context.
- Relate production bugs to failing or missing tests and preventive backlog work.
- Configure meaningful status checks, reviewer ownership and notification routing.
- Generate reviewed release notes from the changes between immutable release references.
Explanation
Correct Answer
B:Relate production bugs to failing or missing tests and preventive backlog work. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A sampled escaped defect traces to an added regression test and successful validation. Defect traceability should connect incidents to code, test coverage and prevention work.
Incorrect Answers
A:Update related GitHub Issues from protected workflow events with release status and error context. 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 engineering action is: Relate production bugs to failing or missing tests and preventive backlog work. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.
C:Configure meaningful status checks, reviewer ownership and notification routing. This would address a different situation, such as: A team cannot tell when a pull request is waiting for security approval versus failed tests. In the present case, the most directly relevant engineering action is: Relate production bugs to failing or missing tests and preventive backlog work. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.
D:Generate reviewed release notes from the changes between immutable release references. 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 engineering action is: Relate production bugs to failing or missing tests and preventive backlog work. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.
Question 966
The DevOps team must resolve this situation: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. Which engineering action is MOST appropriate?
- Integrate image vulnerability scanning and a reviewed enforcement gate before production.
- Enable Dependabot alerts and governed security updates with CI checks.
- Enable supported secret, dependency and code scanning for target Azure Repos repositories.
- Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.
Explanation
Correct Answer
C:Enable supported secret, dependency and code scanning for target Azure Repos repositories. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An intentionally unsafe test pattern produces an actionable authorized alert. Security capability licensing does not prove scans run or findings are reviewed.
Incorrect Answers
A: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 supported secret, dependency and code scanning for target Azure Repos repositories. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.
B:Enable Dependabot alerts and governed security updates with CI checks. This would address a different situation, such as: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. In the present case, the most directly relevant engineering action is: Enable supported secret, dependency and code scanning for target Azure Repos repositories. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.
D:Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios. 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 engineering action is: Enable supported secret, dependency and code scanning for target Azure Repos repositories. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.
Question 967
An Azure DevOps engineering team evaluates this condition: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. Which DevOps principle BEST explains the underlying weakness?
- Source control workflows must verify path case and platform consistency.
- Cross-repository reuse needs an explicit versioned dependency strategy.
- Git reflog can help recover recent local reference movements before garbage collection.
- Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
Explanation
Correct Answer
D:Repository lifecycle controls should remove stale rights and enforce appropriate archival state. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect archive settings, organization memberships, permissions and recent pushes. An appropriate controlled response is: Archive the repository or lock write access with audited exception handling.
Incorrect Answers
A:Source control workflows must verify path case and platform consistency. 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 principle is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state. The crucial distinction is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
B:Cross-repository reuse needs an explicit versioned dependency strategy. This would address a different situation, such as: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. In the present case, the most directly relevant principle is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state. The crucial distinction is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
C:Git reflog can help recover recent local reference movements before garbage collection. This would address a different situation, such as: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. In the present case, the most directly relevant principle is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state. The crucial distinction is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
Question 968
An Azure DevOps engineering team evaluates this condition: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. Which DevOps principle BEST explains the underlying weakness?
- Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
- Shared delivery dependencies must be visible across team backlogs with responsible ownership.
- Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
- Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
Explanation
Correct Answer
B:Shared delivery dependencies must be visible across team backlogs with responsible ownership. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review parent features, dependency links, delivery plans and blocked work items. An appropriate controlled response is: Link dependent work items across teams and use delivery plans to visualize blockers.
Incorrect Answers
A:Feedback must enter an owned trackable workflow with prioritization and resolution evidence. 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 principle is: Shared delivery dependencies must be visible across team backlogs with responsible ownership. The crucial distinction is: Shared delivery dependencies must be visible across team backlogs with responsible ownership.
C:Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable. This would address a different situation, such as: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. In the present case, the most directly relevant principle is: Shared delivery dependencies must be visible across team backlogs with responsible ownership. The crucial distinction is: Shared delivery dependencies must be visible across team backlogs with responsible ownership.
D:Delivery flow status must distinguish actionable approval, test and dependency bottlenecks. This would address a different situation, such as: A team cannot tell when a pull request is waiting for security approval versus failed tests. In the present case, the most directly relevant principle is: Shared delivery dependencies must be visible across team backlogs with responsible ownership. The crucial distinction is: Shared delivery dependencies must be visible across team backlogs with responsible ownership.
Question 969
A Microsoft DevOps team is addressing: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior.
- Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.
- Compare application failures, deployment annotations, version IDs and request telemetry.
- Inspect customDimensions, timestamp, role name and exception records.
- Remediate the verified disk bottleneck and validate end-to-end service performance.
Explanation
Correct Answers
B:Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Remediate the verified disk bottleneck and validate end-to-end service performance. Together they address: Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network.
E:Remediate the verified disk bottleneck and validate end-to-end service performance. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. Together they address: Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network.
Incorrect Answers
A:Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. This concerns a different DevOps situation: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. This case instead requires both a targeted investigation (Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.) and a controlled change (Remediate the verified disk bottleneck and validate end-to-end service performance.).
C: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 disk queue/latency, CPU utilization, memory pressure and workload profile.) and a controlled change (Remediate the verified disk bottleneck and validate end-to-end service performance.).
D:Inspect customDimensions, timestamp, role name and exception records. This concerns a different DevOps situation: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. This case instead requires both a targeted investigation (Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.) and a controlled change (Remediate the verified disk bottleneck and validate end-to-end service performance.).
Question 970
Before changing the pipeline or service, engineers find: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. Which evidence should the engineer inspect FIRST?
- Compare classic stage approvals with YAML environment checks and service-connection authorization.
- Inspect agent image announcement, demands, SDK versions and task compatibility.
- Review cache key configuration, lockfile hash, package restore logs and unexpected results.
- Inspect run timelines, environment approval events and task durations.
Explanation
Correct Answer
D:Inspect run timelines, environment approval events and task durations. This directly checks the uncertain behavior or control before changing production. Duration analysis should distinguish human wait stages and task execution bottlenecks. The resulting targeted action is: Report approval wait separately and optimize only the relevant bottleneck.
Incorrect Answers
A: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: Inspect run timelines, environment approval events and task durations. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
B:Inspect agent image announcement, demands, SDK versions and task compatibility. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant evidence is: Inspect run timelines, environment approval events and task durations. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
C:Review cache key configuration, lockfile hash, package restore logs and unexpected results. This would address a different situation, such as: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. In the present case, the most directly relevant evidence is: Inspect run timelines, environment approval events and task durations. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.