Microsoft AZ-400 Practice Test 59
Question 580
Before changing the pipeline or service, engineers find: An App Service accesses Azure Storage using a connection string containing an account key in source control. Which evidence should the engineer inspect FIRST?
- Inspect App Service identity settings, storage RBAC and credential history.
- Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
- Inspect token scope, audit events, bot responsibilities and repository installation.
- Inspect workflow permissions, fork contexts, third-party actions and write operations.
Explanation
Correct Answer
A:Inspect App Service identity settings, storage RBAC and credential history. This directly checks the uncertain behavior or control before changing production. Managed identity can replace application-stored credentials when the target service supports Azure RBAC. The resulting targeted action is: Enable system-assigned managed identity and grant narrow storage data-plane roles.
Incorrect Answers
B:Inspect endpoint grant-to-all settings, environment checks and pipeline identities. This would address a different situation, such as: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. In the present case, the most directly relevant evidence is: Inspect App Service identity settings, storage RBAC and credential history. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
C:Inspect token scope, audit events, bot responsibilities and repository installation. This would address a different situation, such as: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. In the present case, the most directly relevant evidence is: Inspect App Service identity settings, storage RBAC and credential history. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
D:Inspect workflow permissions, fork contexts, third-party actions and write operations. 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 evidence is: Inspect App Service identity settings, storage RBAC and credential history. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
Question 581
After implementing the change, the team verifies: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. Which result would BEST demonstrate that the issue is corrected?
- Sample completed stories show realistic cycle times that match actual engineering work.
- The dashboard includes the interval when infrastructure was healthy but checkout failed.
- A test job delayed by runner scarcity shows queue time rather than slow compilation.
- The report exposes a deliberately excluded critical integration suite as a gap.
Explanation
Correct Answer
B:The dashboard includes the interval when infrastructure was healthy but checkout failed. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Define recovery completion using service-level restoration and compute the metric accordingly. Time to restore service should reflect verified business-service recovery.
Incorrect Answers
A:Sample completed stories show realistic cycle times that match actual engineering work. This would address a different situation, such as: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. In the present case, the most directly relevant verification is: The dashboard includes the interval when infrastructure was healthy but checkout failed. The crucial distinction is: Time to restore service should reflect verified business-service recovery.
C:A test job delayed by runner scarcity shows queue time rather than slow compilation. This would address a different situation, such as: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. In the present case, the most directly relevant verification is: The dashboard includes the interval when infrastructure was healthy but checkout failed. The crucial distinction is: Time to restore service should reflect verified business-service recovery.
D:The report exposes a deliberately excluded critical integration suite as a gap. 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 verification is: The dashboard includes the interval when infrastructure was healthy but checkout failed. The crucial distinction is: Time to restore service should reflect verified business-service recovery.
Question 582
After implementing the change, the team verifies: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. Which result would BEST demonstrate that the issue is corrected?
- A test urgent fix reaches production through review and is merged to maintained branches.
- Both old and new versions handle transactions until old traffic drains safely.
- A later tag overwrite cannot change the image selected for this release.
- A deliberately invalid chart cannot leave the cluster on an unapproved broken release.
Explanation
Correct Answer
D:A deliberately invalid chart cannot leave the cluster on an unapproved broken release. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision. Helm release operations need validated charts and controlled rollback behavior.
Incorrect Answers
A:A test urgent fix reaches production through review and is merged to maintained branches. This would address a different situation, such as: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. In the present case, the most directly relevant verification is: A deliberately invalid chart cannot leave the cluster on an unapproved broken release. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
B:Both old and new versions handle transactions until old traffic drains safely. This would address a different situation, such as: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. In the present case, the most directly relevant verification is: A deliberately invalid chart cannot leave the cluster on an unapproved broken release. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
C: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 deliberately invalid chart cannot leave the cluster on an unapproved broken release. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
Question 583
An Azure DevOps engineering team evaluates this condition: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. Which DevOps principle BEST explains the underlying weakness?
- Release references must be protected or cryptographically verified to preserve provenance.
- Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
- Repository access should be limited to the minimum collaborator operations.
- Source control workflows must verify path case and platform consistency.
Explanation
Correct Answer
A:Release references must be protected or cryptographically verified to preserve provenance. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect tag protection rules, release digests and commit-signature requirements. An appropriate controlled response is: Protect release tags and record immutable commit or artifact digests in release manifests.
Incorrect Answers
B:Repository lifecycle controls should remove stale rights and enforce appropriate archival state. 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 principle is: Release references must be protected or cryptographically verified to preserve provenance. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.
C:Repository access should be limited to the minimum collaborator operations. 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 principle is: Release references must be protected or cryptographically verified to preserve provenance. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.
D: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: Release references must be protected or cryptographically verified to preserve provenance. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.
Question 584
An Azure DevOps engineering team evaluates this condition: A team cannot tell when a pull request is waiting for security approval versus failed tests. Which DevOps principle BEST explains the underlying weakness?
- Defect traceability should connect incidents to code, test coverage and prevention work.
- Release summaries should be derived from verified source and work-item changes.
- Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
- Traceability requires explicit relationships among work items, source revisions, builds and deployments.
Explanation
Correct Answer
C:Delivery flow status must distinguish actionable approval, test and dependency bottlenecks. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect pull request check states, required reviewers, labels and notification settings. An appropriate controlled response is: Configure meaningful status checks, reviewer ownership and notification routing.
Incorrect Answers
A:Defect traceability should connect incidents to code, test coverage and prevention work. This would address a different situation, such as: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. In the present case, the most directly relevant principle is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks. The crucial distinction is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
B:Release summaries should be derived from verified source and work-item changes. This would address a different situation, such as: Release notes are composed from memory and routinely omit merged security improvements. In the present case, the most directly relevant principle is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks. The crucial distinction is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
D:Traceability requires explicit relationships among work items, source revisions, builds and deployments. This would address a different situation, such as: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. In the present case, the most directly relevant principle is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks. The crucial distinction is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
Question 585
After implementing the change, the team verifies: Engineers create temporary load-test environments manually but never remove costly public IP addresses. Which result would BEST demonstrate that the issue is corrected?
- A test environment creates approved resources and deprovisions under the policy.
- Production uses the approved digest recorded in the associated pipeline run.
- A test template omission cannot delete an unrelated protected storage resource.
- A completed test leaves no unauthorized residual billable resources.
Explanation
Correct Answer
D:A completed test leaves no unauthorized residual billable resources. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Provision short-lived sandbox environments through approved IaC with automatic expiration. Ephemeral environments need automated lifecycle, cost and access controls.
Incorrect Answers
A:A test environment creates approved resources and deprovisions under the policy. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant verification is: A completed test leaves no unauthorized residual billable resources. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.
B:Production uses the approved digest recorded in the associated pipeline run. This would address a different situation, such as: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. In the present case, the most directly relevant verification is: A completed test leaves no unauthorized residual billable resources. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.
C:A test template omission cannot delete an unrelated protected storage resource. This would address a different situation, such as: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. In the present case, the most directly relevant verification is: A completed test leaves no unauthorized residual billable resources. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.
Question 586
A Microsoft DevOps team is addressing: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. Which TWO complementary actions should be taken? Select TWO answers.
- Include explicit succeeded dependencies in the custom promotion condition.
- Compare duplicated YAML, referenced template versions, access rules and review practices.
- Limit production deployment to permitted protected refs and validated build artifacts.
- Inspect workflow permission scopes, reusable call contracts and job operations.
- Inspect YAML trigger filters, branch protections and deployment conditions.
Explanation
Correct Answers
C:Limit production deployment to permitted protected refs and validated build artifacts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect YAML trigger filters, branch protections and deployment conditions. Together they address: Pipeline triggers must enforce reviewed source ref eligibility.
E:Inspect YAML trigger filters, branch protections and deployment conditions. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Limit production deployment to permitted protected refs and validated build artifacts. Together they address: Pipeline triggers must enforce reviewed source ref eligibility.
Incorrect Answers
A:Include explicit succeeded dependencies in the custom promotion condition. This concerns a different DevOps situation: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. This case instead requires both a targeted investigation (Inspect YAML trigger filters, branch protections and deployment conditions.) and a controlled change (Limit production deployment to permitted protected refs and validated build artifacts.).
B:Compare duplicated YAML, referenced template versions, access rules and review practices. This concerns a different DevOps situation: Teams each copy a deployment YAML template and security fixes reach only some repositories. This case instead requires both a targeted investigation (Inspect YAML trigger filters, branch protections and deployment conditions.) and a controlled change (Limit production deployment to permitted protected refs and validated build artifacts.).
D:Inspect workflow permission scopes, reusable call contracts and job operations. This concerns a different DevOps situation: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. This case instead requires both a targeted investigation (Inspect YAML trigger filters, branch protections and deployment conditions.) and a controlled change (Limit production deployment to permitted protected refs and validated build artifacts.).
Question 587
A Microsoft DevOps team is addressing: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. Which TWO complementary actions should be taken? Select TWO answers.
- Review artifact retention, release manifest, service health signals and restoration test.
- Use a controlled migration framework with version tracking and idempotent safeguards.
- Inspect schema migration history, transaction boundaries, retry logs and object existence.
- Inspect Azure App Configuration flags, filters, defaults and access rights.
- Inspect slot settings, storage connection strings, function enablement and queue ownership.
Explanation
Correct Answers
B:Use a controlled migration framework with version tracking and idempotent safeguards. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect schema migration history, transaction boundaries, retry logs and object existence. Together they address: Database deployment scripts should be repeatable or safely versioned with migration state.
C:Inspect schema migration history, transaction boundaries, retry logs and object existence. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use a controlled migration framework with version tracking and idempotent safeguards. Together they address: Database deployment scripts should be repeatable or safely versioned with migration state.
Incorrect Answers
A:Review artifact retention, release manifest, service health signals and restoration test. This concerns a different DevOps situation: A release detects elevated errors but cannot roll back because the prior verified package was deleted. This case instead requires both a targeted investigation (Inspect schema migration history, transaction boundaries, retry logs and object existence.) and a controlled change (Use a controlled migration framework with version tracking and idempotent safeguards.).
D:Inspect Azure App Configuration flags, filters, defaults and access rights. This concerns a different DevOps situation: A half-finished payment feature accidentally activates immediately when its code merges into main. This case instead requires both a targeted investigation (Inspect schema migration history, transaction boundaries, retry logs and object existence.) and a controlled change (Use a controlled migration framework with version tracking and idempotent safeguards.).
E:Inspect slot settings, storage connection strings, function enablement and queue ownership. This concerns a different DevOps situation: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. This case instead requires both a targeted investigation (Inspect schema migration history, transaction boundaries, retry logs and object existence.) and a controlled change (Use a controlled migration framework with version tracking and idempotent safeguards.).
Question 588
The DevOps team must resolve this situation: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. Which engineering action is MOST appropriate?
- Join relevant telemetry tables by operation identifiers to isolate failed dependency calls.
- Measure and alert on relevant latency percentiles with suitable dimensions.
- Remediate the verified disk bottleneck and validate end-to-end service performance.
- Adjust sampling and critical-event retention within approved performance and cost limits.
Explanation
Correct Answer
A:Join relevant telemetry tables by operation identifiers to isolate failed dependency calls. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A sampled customer request maps to its exact slow dependency operation. Correlated tracing requires joining telemetry using compatible operation identifiers.
Incorrect Answers
B:Measure and alert on relevant latency percentiles with suitable dimensions. This would address a different situation, such as: An API dashboard shows acceptable average response time even though the slowest 5% of requests exceed the customer SLA. In the present case, the most directly relevant engineering action is: Join relevant telemetry tables by operation identifiers to isolate failed dependency calls. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
C:Remediate the verified disk bottleneck and validate end-to-end service performance. This would address a different situation, such as: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. In the present case, the most directly relevant engineering action is: Join relevant telemetry tables by operation identifiers to isolate failed dependency calls. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
D:Adjust sampling and critical-event retention within approved performance and cost limits. This would address a different situation, such as: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. In the present case, the most directly relevant engineering action is: Join relevant telemetry tables by operation identifiers to isolate failed dependency calls. The crucial distinction is: Correlated tracing requires joining telemetry using compatible operation identifiers.
Question 589
An engineering design review identifies: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. Which shortcut should the team MOST specifically avoid for this case?
- Delete the provider lockfile in every automated run.
- Add a random sleep and assume every deployment is ready after ten seconds.
- Rely on a resource tag named secure as proof of OS baseline enforcement.
- Copy a different unreviewed VNet template into each team's repository.
Explanation
Correct Answer
A:Delete the provider lockfile in every automated run. This shortcut directly undermines the stated control or workflow. A safer action is: Pin and review provider versions with a committed lockfile and CI version checks. Explanation: IaC builds need controlled provider requirements and lockfile provenance.
Incorrect Answers
B:Add a random sleep and assume every deployment is ready after ten seconds. This would address a different situation, such as: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. In the present case, the most directly relevant unsafe shortcut is: Delete the provider lockfile in every automated run. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.
C:Rely on a resource tag named secure as proof of OS baseline enforcement. This would address a different situation, such as: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. In the present case, the most directly relevant unsafe shortcut is: Delete the provider lockfile in every automated run. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.
D:Copy a different unreviewed VNet template into each team's repository. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant unsafe shortcut is: Delete the provider lockfile in every automated run. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.
Question 590
After implementing the change, the team verifies: A QA vendor needs read-only test access but has been granted repository administration rights. Which result would BEST demonstrate that the issue is corrected?
- The restored changes match the lost commit without overwriting colleagues' work.
- New commits exclude build outputs and repository history action is communicated safely.
- The vendor can run authorized tests but cannot change protected repository settings.
- The old credential is invalid and authorized scans find no active secret exposure.
Explanation
Correct Answer
C:The vendor can run authorized tests but cannot change protected repository settings. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Assign a read-only or suitably scoped collaborator role and remove administrative privileges. Repository access should be limited to the minimum collaborator operations.
Incorrect Answers
A:The restored changes match the lost commit without overwriting colleagues' work. 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 verification is: The vendor can run authorized tests but cannot change protected repository settings. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
B:New commits exclude build outputs and repository history action is communicated safely. This would address a different situation, such as: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. In the present case, the most directly relevant verification is: The vendor can run authorized tests but cannot change protected repository settings. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
D: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: The vendor can run authorized tests but cannot change protected repository settings. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.