Microsoft AZ-400 Practice Test 12
Question 110
Before changing the pipeline or service, engineers find: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. Which evidence should the engineer inspect FIRST?
- Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
- Inspect Azure Boards GitHub connection, repository authorization and linked work items.
- Compare wiki revisions, pipeline definitions, links and onboarding incident history.
- Inspect document edit rights, source history, code review ownership and decision status.
Explanation
Correct Answer
A:Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This directly checks the uncertain behavior or control before changing production. Diagrams should reflect executable workflow dependencies and be maintainable with source. The resulting targeted action is: Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.
Incorrect Answers
B:Inspect Azure Boards GitHub connection, repository authorization and linked work items. 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 evidence is: Inspect pipeline YAML dependencies, existing diagrams and documentation change records. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.
C: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: Inspect pipeline YAML dependencies, existing diagrams and documentation change records. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.
D:Inspect document edit rights, source history, code review ownership and decision status. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant evidence is: Inspect pipeline YAML dependencies, existing diagrams and documentation change records. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.
Question 111
After implementing the change, the team verifies: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. Which result would BEST demonstrate that the issue is corrected?
- A production run uses exactly the tested artifact regardless of newer branch builds.
- A clean replacement hosted image reproduces the expected build.
- A test run reduces queue time without sacrificing build isolation.
- A historical release can be reconstructed within the mandated retention period.
Explanation
Correct Answer
C:A test run reduces queue time without sacrificing build isolation. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Right-size authorized agent capacity and prioritize critical release jobs. Pipeline telemetry should distinguish agent scarcity from actual code execution cost.
Incorrect Answers
A:A production run uses exactly the tested artifact regardless of newer branch builds. This would address a different situation, such as: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. In the present case, the most directly relevant verification is: A test run reduces queue time without sacrificing build isolation. The crucial distinction is: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.
B: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 test run reduces queue time without sacrificing build isolation. The crucial distinction is: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.
D: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: A test run reduces queue time without sacrificing build isolation. The crucial distinction is: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.
Question 112
A Microsoft DevOps team is addressing: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect GitHub Actions run history, job timing, failure causes and usage trends.
- Configure storage request/error monitoring with service-specific thresholds.
- Review Azure Monitor Storage transaction metrics, response codes and client diagnostics.
- Configure monitored failure notifications and an actionable operations escalation path.
- Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.
Explanation
Correct Answers
B:Configure storage request/error monitoring with service-specific thresholds. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review Azure Monitor Storage transaction metrics, response codes and client diagnostics. Together they address: Operational monitoring must include service request errors, latency and availability, not just capacity.
C:Review Azure Monitor Storage transaction metrics, response codes and client diagnostics. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure storage request/error monitoring with service-specific thresholds. Together they address: Operational monitoring must include service request errors, latency and availability, not just capacity.
Incorrect Answers
A: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 (Review Azure Monitor Storage transaction metrics, response codes and client diagnostics.) and a controlled change (Configure storage request/error monitoring with service-specific thresholds.).
D:Configure monitored failure notifications and an actionable operations escalation path. This concerns a different DevOps situation: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. This case instead requires both a targeted investigation (Review Azure Monitor Storage transaction metrics, response codes and client diagnostics.) and a controlled change (Configure storage request/error monitoring with service-specific thresholds.).
E:Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. 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 (Review Azure Monitor Storage transaction metrics, response codes and client diagnostics.) and a controlled change (Configure storage request/error monitoring with service-specific thresholds.).
Question 113
After implementing the change, the team verifies: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. Which result would BEST demonstrate that the issue is corrected?
- A staged function validates safely without consuming production messages.
- Replaying a completed migration does not corrupt or duplicate the schema.
- A rehearsal keeps the user journey working throughout both component deployments.
- A sample rollout maintains required ready endpoints with no response interruption.
Explanation
Correct Answer
C:A rehearsal keeps the user journey working throughout both component deployments. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use backward-compatible API rollout and explicit dependent stage ordering. Cross-service deployment order must respect compatibility and dependency contracts.
Incorrect Answers
A:A staged function validates safely without consuming production messages. This would address a different situation, such as: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. In the present case, the most directly relevant verification is: A rehearsal keeps the user journey working throughout both component deployments. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
B:Replaying a completed migration does not corrupt or duplicate the schema. This would address a different situation, such as: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. In the present case, the most directly relevant verification is: A rehearsal keeps the user journey working throughout both component deployments. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
D:A sample rollout maintains required ready endpoints with no response interruption. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant verification is: A rehearsal keeps the user journey working throughout both component deployments. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
Question 114
An Azure DevOps engineering team evaluates this condition: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. Which DevOps principle BEST explains the underlying weakness?
- Release images should be identified by immutable digests or protected version tags.
- Upstream sources can cache approved public dependencies through controlled feeds.
- Package approval must consider legal and licensing obligations alongside technical vulnerabilities.
- Dependency governance needs timely security updates while preserving compatibility testing.
Explanation
Correct Answer
A:Release images should be identified by immutable digests or protected version tags. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect ACR manifests, tag mutation rights, deployment records and source mapping. An appropriate controlled response is: Promote and deploy verified image digests with approved version labels.
Incorrect Answers
B:Upstream sources can cache approved public dependencies through controlled feeds. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant principle is: Release images should be identified by immutable digests or protected version tags. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
C:Package approval must consider legal and licensing obligations alongside technical vulnerabilities. This would address a different situation, such as: A development team uses a package with licensing obligations incompatible with a proprietary distribution without checking the transitive tree. In the present case, the most directly relevant principle is: Release images should be identified by immutable digests or protected version tags. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
D:Dependency governance needs timely security updates while preserving compatibility testing. 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 principle is: Release images should be identified by immutable digests or protected version tags. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
Question 115
The DevOps team must resolve this situation: An Azure CLI task runs with set -x and echoes bearer tokens in the pipeline console log. Which engineering action is MOST appropriate?
- Move cloud credential issuance into the guarded deployment job with scoped federation.
- Remove token-printing diagnostics and use restricted command output and log scanning.
- Store approved signing material as an Azure Pipelines secure file with restricted authorization.
- Deploy the appropriately authorized certificate material through supported bindings and managed access.
Explanation
Correct Answer
B:Remove token-printing diagnostics and use restricted command output and log scanning. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A failure-path test emits useful diagnostics but no usable access tokens. Secretless authentication still requires careful handling of temporary token output.
Incorrect Answers
A: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: Remove token-printing diagnostics and use restricted command output and log scanning. The crucial distinction is: Secretless authentication still requires careful handling of temporary token output.
C:Store approved signing material as an Azure Pipelines secure file with restricted authorization. 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 engineering action is: Remove token-printing diagnostics and use restricted command output and log scanning. The crucial distinction is: Secretless authentication still requires careful handling of temporary token output.
D: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: Remove token-printing diagnostics and use restricted command output and log scanning. The crucial distinction is: Secretless authentication still requires careful handling of temporary token output.
Question 116
A Microsoft DevOps team is addressing: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
- Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
- Inspect historical blobs, generated folders, .gitignore rules and clone sizes.
- Configure supported sparse checkout or Scalar/partial clone for constrained workflows.
- Inspect archive settings, organization memberships, permissions and recent pushes.
Explanation
Correct Answers
B:Stop tracking generated outputs and plan reviewed history cleanup with team coordination. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect historical blobs, generated folders,.gitignore rules and clone sizes. Together they address: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
C:Inspect historical blobs, generated folders,.gitignore rules and clone sizes. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. Together they address: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
Incorrect Answers
A:Inspect project access groups, repository ACLs, token grants and vendor responsibilities. This concerns a different DevOps situation: A QA vendor needs read-only test access but has been granted repository administration rights. This case instead requires both a targeted investigation (Inspect historical blobs, generated folders,.gitignore rules and clone sizes.) and a controlled change (Stop tracking generated outputs and plan reviewed history cleanup with team coordination.).
D:Configure supported sparse checkout or Scalar/partial clone for constrained workflows. This concerns a different DevOps situation: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. This case instead requires both a targeted investigation (Inspect historical blobs, generated folders,.gitignore rules and clone sizes.) and a controlled change (Stop tracking generated outputs and plan reviewed history cleanup with team coordination.).
E:Inspect archive settings, organization memberships, permissions and recent pushes. This concerns a different DevOps situation: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. This case instead requires both a targeted investigation (Inspect historical blobs, generated folders,.gitignore rules and clone sizes.) and a controlled change (Stop tracking generated outputs and plan reviewed history cleanup with team coordination.).
Question 117
Before changing the pipeline or service, engineers find: A repository wiki describes a build script that was removed six months ago and breaks onboarding. Which evidence should the engineer inspect FIRST?
- Review OpenAPI specification, release artifact version and documentation publication stage.
- Compare wiki revisions, pipeline definitions, links and onboarding incident history.
- Inspect document edit rights, source history, code review ownership and decision status.
- Review pipeline notification subscriptions, Teams integration, owners and incident escalation.
Explanation
Correct Answer
B:Compare wiki revisions, pipeline definitions, links and onboarding incident history. This directly checks the uncertain behavior or control before changing production. Documentation should be versioned with the workflow it explains and validated during change. The resulting targeted action is: Keep technical runbooks alongside source changes with reviewed documentation checks.
Incorrect Answers
A:Review OpenAPI specification, release artifact version and documentation publication stage. 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 evidence is: Compare wiki revisions, pipeline definitions, links and onboarding incident history. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
C:Inspect document edit rights, source history, code review ownership and decision status. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant evidence is: Compare wiki revisions, pipeline definitions, links and onboarding incident history. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
D:Review pipeline notification subscriptions, Teams integration, owners and incident escalation. This would address a different situation, such as: Critical production deployment failures send only email to an unattended shared mailbox. In the present case, the most directly relevant evidence is: Compare wiki revisions, pipeline definitions, links and onboarding incident history. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
Question 118
After implementing the change, the team verifies: A pipeline prints a database password stored in a plain YAML variable during environment deployment. Which result would BEST demonstrate that the issue is corrected?
- An unauthorized caller cannot download the deployment configuration and temp files are removed.
- A failure-path test emits useful diagnostics but no usable access tokens.
- A rejected environment approval prevents the run from obtaining production credentials.
- The deployment succeeds while secret values never appear in repository or logs.
Explanation
Correct Answer
D:The deployment succeeds while secret values never appear in repository or logs. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use an authorized Azure Key Vault-backed secret reference with protected variable handling. Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.
Incorrect Answers
A: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: The deployment succeeds while secret values never appear in repository or logs. The crucial distinction is: Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.
B:A failure-path test emits useful diagnostics but no usable access tokens. This would address a different situation, such as: An Azure CLI task runs with set -x and echoes bearer tokens in the pipeline console log. In the present case, the most directly relevant verification is: The deployment succeeds while secret values never appear in repository or logs. The crucial distinction is: Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.
C: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: The deployment succeeds while secret values never appear in repository or logs. The crucial distinction is: Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.
Question 119
After implementing the change, the team verifies: A web application must deploy without interruption, but direct production updates restart every active instance. Which result would BEST demonstrate that the issue is corrected?
- The test cohort receives the new flow while excluded users retain the original flow.
- A simulated new release serves traffic without unplanned outage and rolls back safely.
- A rotation rehearsal preserves authorization and active service availability.
- A later tag overwrite cannot change the image selected for this release.
Explanation
Correct Answer
B:A simulated new release serves traffic without unplanned outage and rolls back safely. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Deploy the candidate to a staging slot, validate health, then perform a controlled swap. Deployment slots support staged verification and controlled production swaps where supported.
Incorrect Answers
A:The test cohort receives the new flow while excluded users retain the original flow. This would address a different situation, such as: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. In the present case, the most directly relevant verification is: A simulated new release serves traffic without unplanned outage and rolls back safely. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
C:A rotation rehearsal preserves authorization and active service availability. This would address a different situation, such as: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. In the present case, the most directly relevant verification is: A simulated new release serves traffic without unplanned outage and rolls back safely. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
D:A later tag overwrite cannot change the image selected for this release. This would address a different situation, such as: A release manifest references an ACR latest tag that was replaced after QA approval. In the present case, the most directly relevant verification is: A simulated new release serves traffic without unplanned outage and rolls back safely. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
Question 120
Before changing the pipeline or service, engineers find: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. Which evidence should the engineer inspect FIRST?
- Inventory classic tasks, approvals, variables, environments and artifact inputs.
- Compare classic stage approvals with YAML environment checks and service-connection authorization.
- Inspect output variables, task logs, masking controls and newly added debug flags.
- Inspect retention defaults, legal requirements, approval records and storage cost.
Explanation
Correct Answer
B:Compare classic stage approvals with YAML environment checks and service-connection authorization. This directly checks the uncertain behavior or control before changing production. Migration must preserve policy-enforced approvals through supported protected resources. The resulting targeted action is: Configure environment-level approvals and checks outside untrusted YAML modification paths.
Incorrect Answers
A:Inventory classic tasks, approvals, variables, environments and artifact inputs. This would address a different situation, such as: A legacy classic Azure Release pipeline hides deployment steps in the UI and new teams cannot peer-review changes. In the present case, the most directly relevant evidence is: Compare classic stage approvals with YAML environment checks and service-connection authorization. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
C:Inspect output variables, task logs, masking controls and newly added debug flags. 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 evidence is: Compare classic stage approvals with YAML environment checks and service-connection authorization. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
D:Inspect retention defaults, legal requirements, approval records and storage cost. 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 evidence is: Compare classic stage approvals with YAML environment checks and service-connection authorization. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.