Microsoft AZ-400 Practice Test 53
Question 520
The DevOps team must resolve this situation: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. Which engineering action is MOST appropriate?
- Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately.
- Publish approved reusable templates with governed versioning and service-specific parameters.
- Provision short-lived sandbox environments through approved IaC with automatic expiration.
- Publish a versioned Bicep networking module with secure defaults and reviewed parameters.
Explanation
Correct Answer
A:Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A new prohibited test storage deployment is rejected while approved configurations succeed. Policy effects differ between reporting and preventive enforcement.
Incorrect Answers
B:Publish approved reusable templates with governed versioning and service-specific parameters. This would address a different situation, such as: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. In the present case, the most directly relevant engineering action is: Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.
C:Provision short-lived sandbox environments through approved IaC with automatic expiration. This would address a different situation, such as: Engineers create temporary load-test environments manually but never remove costly public IP addresses. In the present case, the most directly relevant engineering action is: Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.
D:Publish a versioned Bicep networking module with secure defaults and reviewed parameters. 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 engineering action is: Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.
Question 521
After implementing the change, the team verifies: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. Which result would BEST demonstrate that the issue is corrected?
- Expired exemptions are surfaced and prohibited deployments resume enforcement.
- A test environment creates approved resources and deprovisions under the policy.
- Unauthorized reads fail and concurrent plans cannot corrupt state.
- A deliberately broad assignment fails the CI gate before deployment.
Explanation
Correct Answer
B:A test environment creates approved resources and deprovisions under the policy. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Publish approved Azure Deployment Environments definitions with scoped self-service and expiration. Self-service environment catalogs can standardize provisioning and lifecycle governance.
Incorrect Answers
A:Expired exemptions are surfaced and prohibited deployments resume enforcement. This would address a different situation, such as: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. In the present case, the most directly relevant verification is: A test environment creates approved resources and deprovisions under the policy. The crucial distinction is: Self-service environment catalogs can standardize provisioning and lifecycle governance.
C:Unauthorized reads fail and concurrent plans cannot corrupt state. This would address a different situation, such as: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. In the present case, the most directly relevant verification is: A test environment creates approved resources and deprovisions under the policy. The crucial distinction is: Self-service environment catalogs can standardize provisioning and lifecycle governance.
D:A deliberately broad assignment fails the CI gate before deployment. This would address a different situation, such as: A Bicep pipeline deploys wildcard role assignments despite a known rule requiring narrowly scoped access. In the present case, the most directly relevant verification is: A test environment creates approved resources and deprovisions under the policy. The crucial distinction is: Self-service environment catalogs can standardize provisioning and lifecycle governance.
Question 522
An Azure DevOps engineering team evaluates this condition: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. Which DevOps principle BEST explains the underlying weakness?
- Service connection authorization must be limited to approved pipelines and resource scope.
- External access should be scoped to the minimum repository and role.
- Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
- Azure DevOps access levels and security groups should reflect actual job duties.
Explanation
Correct Answer
B:External access should be scoped to the minimum repository and role. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect organization membership, outside collaborator assignments and repository visibility. An appropriate controlled response is: Invite an outside collaborator with restricted access to the reviewed repository.
Incorrect Answers
A:Service connection authorization must be limited to approved pipelines and resource scope. 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 principle is: External access should be scoped to the minimum repository and role. The crucial distinction is: External access should be scoped to the minimum repository and role.
C:Federated workload identity can provide scoped short-lived Azure access without stored shared secrets. This would address a different situation, such as: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. In the present case, the most directly relevant principle is: External access should be scoped to the minimum repository and role. The crucial distinction is: External access should be scoped to the minimum repository and role.
D:Azure DevOps access levels and security groups should reflect actual job duties. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant principle is: External access should be scoped to the minimum repository and role. The crucial distinction is: External access should be scoped to the minimum repository and role.
Question 523
Before changing the pipeline or service, engineers find: A refactor changes a storage account name while the pipeline applies it directly to production. Which evidence should the engineer inspect FIRST?
- Inspect policy assignment parameters, effect, scope and compliance states.
- Inspect name generation, deployment history, actual resources and outputs.
- Inspect Azure what-if operations, storage data dependency, naming constraints and resource references.
- Review image digest provenance, deployment parameters and environment history.
Explanation
Correct Answer
C:Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. This directly checks the uncertain behavior or control before changing production. Stateful IaC replacements require impact review and a migration plan. The resulting targeted action is: Require reviewed what-if output and controlled data-preserving migration before deployment.
Incorrect Answers
A:Inspect policy assignment parameters, effect, scope and compliance states. This would address a different situation, such as: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. In the present case, the most directly relevant evidence is: Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
B:Inspect name generation, deployment history, actual resources and outputs. This would address a different situation, such as: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. In the present case, the most directly relevant evidence is: Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
D:Review image digest provenance, deployment parameters and environment history. 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 evidence is: Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
Question 524
The DevOps team must resolve this situation: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. Which engineering action is MOST appropriate?
- Use a structured GitHub Issues intake process with ownership, labels and linked fixes.
- Relate production bugs to failing or missing tests and preventive backlog work.
- Generate reviewed release notes from the changes between immutable release references.
- Link dependent work items across teams and use delivery plans to visualize blockers.
Explanation
Correct Answer
A:Use a structured GitHub Issues intake process with ownership, labels and linked fixes. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A sampled production report has an owner and traces to a tested correction. Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
Incorrect Answers
B:Relate production bugs to failing or missing tests and preventive backlog 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 engineering action is: Use a structured GitHub Issues intake process with ownership, labels and linked fixes. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
C: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: Use a structured GitHub Issues intake process with ownership, labels and linked fixes. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
D:Link dependent work items across teams and use delivery plans to visualize blockers. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant engineering action is: Use a structured GitHub Issues intake process with ownership, labels and linked fixes. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
Question 525
The DevOps team must resolve this situation: A QA vendor needs read-only test access but has been granted repository administration rights. Which engineering action is MOST appropriate?
- Publish common code as a reviewed versioned package or managed shared component.
- Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
- Protect release tags and record immutable commit or artifact digests in release manifests.
- Assign a read-only or suitably scoped collaborator role and remove administrative privileges.
Explanation
Correct Answer
D:Assign a read-only or suitably scoped collaborator role and remove administrative privileges. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The vendor can run authorized tests but cannot change protected repository settings. Repository access should be limited to the minimum collaborator operations.
Incorrect Answers
A: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: Assign a read-only or suitably scoped collaborator role and remove administrative privileges. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
B:Stop tracking generated outputs and plan reviewed history cleanup with team coordination. 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 engineering action is: Assign a read-only or suitably scoped collaborator role and remove administrative privileges. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
C:Protect release tags and record immutable commit or artifact digests in release manifests. This would address a different situation, such as: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. In the present case, the most directly relevant engineering action is: Assign a read-only or suitably scoped collaborator role and remove administrative privileges. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
Question 526
The DevOps team must resolve this situation: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. Which engineering action is MOST appropriate?
- Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.
- Limit production deployment to permitted protected refs and validated build artifacts.
- Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.
- Configure appropriate exclusive locks or deployment concurrency controls per environment.
Explanation
Correct Answer
A:Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A job restores the private dependency while agent access remains restricted. Agent placement should satisfy network access and security constraints without overprivilege.
Incorrect Answers
B:Limit production deployment to permitted protected refs and validated build artifacts. This would address a different situation, such as: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. In the present case, the most directly relevant engineering action is: Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.
C:Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs. This would address a different situation, such as: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. In the present case, the most directly relevant engineering action is: Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.
D:Configure appropriate exclusive locks or deployment concurrency controls per environment. 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 engineering action is: Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.
Question 527
Before changing the pipeline or service, engineers find: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. Which evidence should the engineer inspect FIRST?
- Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.
- Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration.
- Review Azure Monitor Storage transaction metrics, response codes and client diagnostics.
- Inspect Azure Pipelines notifications, Azure Monitor integration, event routing and team ownership.
Explanation
Correct Answer
B:Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. This directly checks the uncertain behavior or control before changing production. Distributed telemetry should correlate requests and dependencies across application boundaries. The resulting targeted action is: Instrument supported Application Insights distributed tracing with context propagation.
Incorrect Answers
A:Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. This would address a different situation, such as: AKS pods restart frequently but the team captures only the last running pod's console output. In the present case, the most directly relevant evidence is: Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.
C:Review Azure Monitor Storage transaction metrics, response codes and client diagnostics. This would address a different situation, such as: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. In the present case, the most directly relevant evidence is: Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.
D:Inspect Azure Pipelines notifications, Azure Monitor integration, event routing and team ownership. This would address a different situation, such as: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. In the present case, the most directly relevant evidence is: Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.
Question 528
A Microsoft DevOps team is addressing: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. Which TWO complementary actions should be taken? Select TWO answers.
- Use a dedicated test subscription or resource group with restricted identity permissions.
- Inspect issue severity, gate criteria, exception owners and evidence attachments.
- Run supported code scanning on pull requests with risk-appropriate merge gates.
- Inspect schema migration scripts, live app versions, default values and rollback plans.
- Inspect service connections, resource IDs, variables and test cleanup scripts.
Explanation
Correct Answers
A:Use a dedicated test subscription or resource group with restricted identity permissions. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect service connections, resource IDs, variables and test cleanup scripts. Together they address: Test execution should be isolated from production identities and destructive resources.
E:Inspect service connections, resource IDs, variables and test cleanup scripts. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use a dedicated test subscription or resource group with restricted identity permissions. Together they address: Test execution should be isolated from production identities and destructive resources.
Incorrect Answers
B:Inspect issue severity, gate criteria, exception owners and evidence attachments. This concerns a different DevOps situation: A deployment receives approval even when a required penetration-test issue remains unresolved and unaccepted. This case instead requires both a targeted investigation (Inspect service connections, resource IDs, variables and test cleanup scripts.) and a controlled change (Use a dedicated test subscription or resource group with restricted identity permissions.).
C:Run supported code scanning on pull requests with risk-appropriate merge gates. This concerns a different DevOps situation: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. This case instead requires both a targeted investigation (Inspect service connections, resource IDs, variables and test cleanup scripts.) and a controlled change (Use a dedicated test subscription or resource group with restricted identity permissions.).
D:Inspect schema migration scripts, live app versions, default values and rollback plans. This concerns a different DevOps situation: A release adds a non-null column while old and new application versions temporarily operate together. This case instead requires both a targeted investigation (Inspect service connections, resource IDs, variables and test cleanup scripts.) and a controlled change (Use a dedicated test subscription or resource group with restricted identity permissions.).
Question 529
Before changing the pipeline or service, engineers find: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. Which evidence should the engineer inspect FIRST?
- Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.
- Inspect workflow states, audit logs, start-of-work criteria and board queries.
- Review incident start, synthetic transaction recovery, customer impact and closure events.
- Compare queue timestamps, job timings, capacity saturation and approval intervals.
Explanation
Correct Answer
D:Compare queue timestamps, job timings, capacity saturation and approval intervals. This directly checks the uncertain behavior or control before changing production. Delivery optimization needs separate measurements for queue, execution and waiting stages. The resulting targeted action is: Instrument pipeline stage durations and track queue waiting separately from execution.
Incorrect Answers
A: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: Compare queue timestamps, job timings, capacity saturation and approval intervals. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
B:Inspect workflow states, audit logs, start-of-work criteria and board queries. 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 evidence is: Compare queue timestamps, job timings, capacity saturation and approval intervals. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
C:Review incident start, synthetic transaction recovery, customer impact and closure events. This would address a different situation, such as: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. In the present case, the most directly relevant evidence is: Compare queue timestamps, job timings, capacity saturation and approval intervals. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
Question 530
Before changing the pipeline or service, engineers find: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. Which evidence should the engineer inspect FIRST?
- Inspect Deployment strategy, replica count, readiness probes and disruption events.
- Inspect Azure App Configuration flags, filters, defaults and access rights.
- Inspect Key Vault references, version transitions, rotation timing and runtime caches.
- Review component versions, release dependencies, API contracts and pipeline stage graph.
Explanation
Correct Answer
C:Inspect Key Vault references, version transitions, rotation timing and runtime caches. This directly checks the uncertain behavior or control before changing production. Secret deployment should coordinate version lifecycle and client refresh behavior. The resulting targeted action is: Use governed secret reference/rotation patterns with staged compatibility testing.
Incorrect Answers
A:Inspect Deployment strategy, replica count, readiness probes and disruption events. 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 evidence is: Inspect Key Vault references, version transitions, rotation timing and runtime caches. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.
B:Inspect Azure App Configuration flags, filters, defaults and access rights. This would address a different situation, such as: A half-finished payment feature accidentally activates immediately when its code merges into main. In the present case, the most directly relevant evidence is: Inspect Key Vault references, version transitions, rotation timing and runtime caches. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.
D:Review component versions, release dependencies, API contracts and pipeline stage graph. This would address a different situation, such as: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. In the present case, the most directly relevant evidence is: Inspect Key Vault references, version transitions, rotation timing and runtime caches. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.