Microsoft AZ-400 Practice Test 98
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.
Question 971
Before changing the pipeline or service, engineers find: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. Which evidence should the engineer inspect FIRST?
- Inspect artifact store versioning, write policy, source SHA and release logs.
- Inspect delivery channels, artifact checksums, user installs and release approvals.
- Inspect package-lock metadata, dependency tree, registry provenance and update policy.
- Inspect feed role assignments, delete permissions, package history and retention.
Explanation
Correct Answer
A:Inspect artifact store versioning, write policy, source SHA and release logs. This directly checks the uncertain behavior or control before changing production. Artifact integrity requires immutable identity and reliable build-to-release linkage. The resulting targeted action is: Use unique versioned paths and verify digest before deployment.
Incorrect Answers
B:Inspect delivery channels, artifact checksums, user installs and release approvals. This would address a different situation, such as: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. In the present case, the most directly relevant evidence is: Inspect artifact store versioning, write policy, source SHA and release logs. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
C:Inspect package-lock metadata, dependency tree, registry provenance and update policy. This would address a different situation, such as: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. In the present case, the most directly relevant evidence is: Inspect artifact store versioning, write policy, source SHA and release logs. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
D:Inspect feed role assignments, delete permissions, package history and retention. This would address a different situation, such as: Every developer can delete the versions of a private production library that other teams depend on. In the present case, the most directly relevant evidence is: Inspect artifact store versioning, write policy, source SHA and release logs. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
Question 972
An engineering design review identifies: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. Which shortcut should the team MOST specifically avoid for this case?
- Rename an attachment to final-v3-new and treat that as immutable release control.
- Use only a mutable latest image tag as the release audit record.
- Delete the lockfile to ensure builds always use the latest patch versions.
- Always increment major for compatible internal improvements.
Explanation
Correct Answer
C:Delete the lockfile to ensure builds always use the latest patch versions. This shortcut directly undermines the stated control or workflow. A safer action is: Commit a reviewed lockfile and run reproducible installation with dependency scanning. Explanation: Transitive dependency resolution must be reproducible and security-reviewed.
Incorrect Answers
A:Rename an attachment to final-v3-new and treat that as immutable release control. This would address a different situation, such as: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. In the present case, the most directly relevant unsafe shortcut is: Delete the lockfile to ensure builds always use the latest patch versions. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.
B:Use only a mutable latest image tag as the release audit record. This would address a different situation, such as: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. In the present case, the most directly relevant unsafe shortcut is: Delete the lockfile to ensure builds always use the latest patch versions. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.
D:Always increment major for compatible internal improvements. This would address a different situation, such as: A compatible optional SDK feature is added, but release automation increments the major version for every change. In the present case, the most directly relevant unsafe shortcut is: Delete the lockfile to ensure builds always use the latest patch versions. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.
Question 973
Before changing the pipeline or service, engineers find: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. Which evidence should the engineer inspect FIRST?
- Inspect commit timestamps, deployment records, service ownership and calculation filters.
- Inspect survey population, response rates, roles and unanswered groups.
- Review service classifications, deployment events, reliability targets and cohort selection.
- Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.
Explanation
Correct Answer
A:Inspect commit timestamps, deployment records, service ownership and calculation filters. This directly checks the uncertain behavior or control before changing production. DevOps metrics require precise event definitions and consistent populations. The resulting targeted action is: Calculate lead time for eligible service changes from commit to actual production deployment.
Incorrect Answers
B:Inspect survey population, response rates, roles and unanswered groups. This would address a different situation, such as: A team reports excellent developer experience based only on responses from its three most active maintainers. In the present case, the most directly relevant evidence is: Inspect commit timestamps, deployment records, service ownership and calculation filters. The crucial distinction is: DevOps metrics require precise event definitions and consistent populations.
C:Review service classifications, deployment events, reliability targets and cohort selection. This would address a different situation, such as: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. In the present case, the most directly relevant evidence is: Inspect commit timestamps, deployment records, service ownership and calculation filters. The crucial distinction is: DevOps metrics require precise event definitions and consistent populations.
D:Review pipeline test publications, excluded suites, flaky test logs and quality thresholds. 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 evidence is: Inspect commit timestamps, deployment records, service ownership and calculation filters. The crucial distinction is: DevOps metrics require precise event definitions and consistent populations.
Question 974
After implementing the change, the team verifies: Every developer can delete the versions of a private production library that other teams depend on. Which result would BEST demonstrate that the issue is corrected?
- A historic production release resolves to its original image content.
- Existing consumers continue to work and new clients opt into the feature.
- A client installs the documented release and verifies its content digest.
- An ordinary consumer can restore packages but cannot remove published releases.
Explanation
Correct Answer
D:An ordinary consumer can restore packages but cannot remove published releases. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Grant read, publish and administration only to the appropriate separate identities. Package feed roles should separate consumer, publisher and administrative permissions.
Incorrect Answers
A:A historic production release resolves to its original image content. This would address a different situation, such as: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. In the present case, the most directly relevant verification is: An ordinary consumer can restore packages but cannot remove published releases. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
B:Existing consumers continue to work and new clients opt into the feature. This would address a different situation, such as: A compatible optional SDK feature is added, but release automation increments the major version for every change. In the present case, the most directly relevant verification is: An ordinary consumer can restore packages but cannot remove published releases. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
C:A client installs the documented release and verifies its content digest. This would address a different situation, such as: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. In the present case, the most directly relevant verification is: An ordinary consumer can restore packages but cannot remove published releases. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
Question 975
The DevOps team must resolve this situation: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. Which engineering action is MOST appropriate?
- Deploy the appropriately authorized certificate material through supported bindings and managed access.
- Use restricted secure file or private storage access with controlled cleanup.
- Move cloud credential issuance into the guarded deployment job with scoped federation.
- Limit trust to an approved protected repository environment and least-privilege scope.
Explanation
Correct Answer
D:Limit trust to an approved protected repository environment and least-privilege scope. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Untrusted branch tokens cannot acquire production credentials. OIDC federation trust should restrict audience, issuer and repository/environment subject.
Incorrect Answers
A:Deploy the appropriately authorized certificate material through supported bindings and managed access. 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 engineering action is: Limit trust to an approved protected repository environment and least-privilege scope. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
B:Use restricted secure file or private storage access with controlled cleanup. 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 engineering action is: Limit trust to an approved protected repository environment and least-privilege scope. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
C:Move cloud credential issuance into the guarded deployment job with scoped federation. 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 engineering action is: Limit trust to an approved protected repository environment and least-privilege scope. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.
Question 976
After implementing the change, the team verifies: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. Which result would BEST demonstrate that the issue is corrected?
- Existing consumers remain on supported prior versions unless they explicitly upgrade.
- The production artifact SHA matches the artifact that completed staging verification.
- Production restores an approved stable version while prerelease candidates stay isolated.
- A client installs the documented release and verifies its content digest.
Explanation
Correct Answer
C:Production restores an approved stable version while prerelease candidates stay isolated. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use reviewed package promotion into stable feed views before production consumption. Package views can separate promoted stable packages from unapproved candidates.
Incorrect Answers
A:Existing consumers remain on supported prior versions unless they explicitly upgrade. This would address a different situation, such as: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. In the present case, the most directly relevant verification is: Production restores an approved stable version while prerelease candidates stay isolated. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.
B:The production artifact SHA matches the artifact that completed staging verification. 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 verification is: Production restores an approved stable version while prerelease candidates stay isolated. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.
D:A client installs the documented release and verifies its content digest. This would address a different situation, such as: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. In the present case, the most directly relevant verification is: Production restores an approved stable version while prerelease candidates stay isolated. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.
Question 977
A Microsoft DevOps team is addressing: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. Which TWO complementary actions should be taken? Select TWO answers.
- Attach an approved user-assigned managed identity to the participating compute resources.
- Enable system-assigned managed identity and grant narrow storage data-plane roles.
- Use suitable Stakeholder access and restrict code/pipeline administration.
- Inspect existing identity attachments, role assignments and resource replacement behavior.
- Invite an outside collaborator with restricted access to the reviewed repository.
Explanation
Correct Answers
A:Attach an approved user-assigned managed identity to the participating compute resources. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect existing identity attachments, role assignments and resource replacement behavior. Together they address: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
D:Inspect existing identity attachments, role assignments and resource replacement behavior. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Attach an approved user-assigned managed identity to the participating compute resources. Together they address: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
Incorrect Answers
B:Enable system-assigned managed identity and grant narrow storage data-plane roles. This concerns a different DevOps situation: An App Service accesses Azure Storage using a connection string containing an account key in source control. This case instead requires both a targeted investigation (Inspect existing identity attachments, role assignments and resource replacement behavior.) and a controlled change (Attach an approved user-assigned managed identity to the participating compute resources.).
C:Use suitable Stakeholder access and restrict code/pipeline administration. This concerns a different DevOps situation: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. This case instead requires both a targeted investigation (Inspect existing identity attachments, role assignments and resource replacement behavior.) and a controlled change (Attach an approved user-assigned managed identity to the participating compute resources.).
E:Invite an outside collaborator with restricted access to the reviewed repository. This concerns a different DevOps situation: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. This case instead requires both a targeted investigation (Inspect existing identity attachments, role assignments and resource replacement behavior.) and a controlled change (Attach an approved user-assigned managed identity to the participating compute resources.).
Question 978
An Azure DevOps engineering team evaluates this condition: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. Which DevOps principle BEST explains the underlying weakness?
- Infrastructure deployment should preview and approve material changes before applying.
- Deployment slots support staged verification and controlled production swaps where supported.
- Rolling replacement should account for connection draining and readiness transitions.
- Blue-green rollout must preserve shared database compatibility during transition.
Explanation
Correct Answer
D:Blue-green rollout must preserve shared database compatibility during transition. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review schema changes, client versions, deployment order and rollback requirements. An appropriate controlled response is: Use expand-and-contract database changes before traffic migration.
Incorrect Answers
A:Infrastructure deployment should preview and approve material changes before applying. This would address a different situation, such as: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. In the present case, the most directly relevant principle is: Blue-green rollout must preserve shared database compatibility during transition. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.
B:Deployment slots support staged verification and controlled production swaps where supported. This would address a different situation, such as: A web application must deploy without interruption, but direct production updates restart every active instance. In the present case, the most directly relevant principle is: Blue-green rollout must preserve shared database compatibility during transition. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.
C:Rolling replacement should account for connection draining and readiness transitions. This would address a different situation, such as: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. In the present case, the most directly relevant principle is: Blue-green rollout must preserve shared database compatibility during transition. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.
Question 979
An Azure DevOps engineering team evaluates this condition: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. Which DevOps principle BEST explains the underlying weakness?
- Artifact integrity requires immutable identity and reliable build-to-release linkage.
- Private package access requires scoped workflow identity and authorized repository permissions.
- Upstream sources can cache approved public dependencies through controlled feeds.
- Date-based versions need an unambiguous unique revision component and provenance.
Explanation
Correct Answer
C:Upstream sources can cache approved public dependencies through controlled feeds. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review feed upstream configuration, package authorization and cached dependency versions. An appropriate controlled response is: Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
Incorrect Answers
A:Artifact integrity requires immutable identity and reliable build-to-release linkage. 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 principle is: Upstream sources can cache approved public dependencies through controlled feeds. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.
B:Private package access requires scoped workflow identity and authorized repository permissions. This would address a different situation, such as: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. In the present case, the most directly relevant principle is: Upstream sources can cache approved public dependencies through controlled feeds. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.
D:Date-based versions need an unambiguous unique revision component and provenance. This would address a different situation, such as: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. In the present case, the most directly relevant principle is: Upstream sources can cache approved public dependencies through controlled feeds. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.
Question 980
The DevOps team must resolve this situation: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. Which engineering action is MOST appropriate?
- Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
- Govern large-file retention, selective downloads and authorized capacity increases.
- Archive the repository or lock write access with audited exception handling.
- Publish common code as a reviewed versioned package or managed shared component.
Explanation
Correct Answer
A:Stop tracking generated outputs and plan reviewed history cleanup with team coordination. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: New commits exclude build outputs and repository history action is communicated safely. Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
Incorrect Answers
B:Govern large-file retention, selective downloads and authorized capacity increases. 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 engineering action is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
C:Archive the repository or lock write access with audited exception handling. This would address a different situation, such as: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. In the present case, the most directly relevant engineering action is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
D:Publish common code as a reviewed versioned package or managed shared component. 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 engineering action is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.