Microsoft AZ-400 Practice Test 100
Question 990
After implementing the change, the team verifies: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. Which result would BEST demonstrate that the issue is corrected?
- A code author cannot self-approve a restricted deployment without a qualified reviewer.
- A replacement instance uses the same authorized identity without sharing passwords.
- The manager can create permitted work items but cannot change release environments.
- The app posts required status comments but cannot access unauthorized repositories.
Explanation
Correct Answer
B:A replacement instance uses the same authorized identity without sharing passwords. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Attach an approved user-assigned managed identity to the participating compute resources. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
Incorrect Answers
A:A code author cannot self-approve a restricted deployment without a qualified reviewer. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant verification is: A replacement instance uses the same authorized identity without sharing passwords. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
C:The manager can create permitted work items but cannot change release environments. 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 verification is: A replacement instance uses the same authorized identity without sharing passwords. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
D:The app posts required status comments but cannot access unauthorized repositories. 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 verification is: A replacement instance uses the same authorized identity without sharing passwords. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
Question 991
A Microsoft DevOps team is addressing: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. Which TWO complementary actions should be taken? Select TWO answers.
- Archive the repository or lock write access with audited exception handling.
- Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
- Configure supported sparse checkout or Scalar/partial clone for constrained workflows.
- Inspect repository layout, dependency graph, clone filters and build requirements.
- Inspect reflog entries, commit IDs, branch history and garbage collection status.
Explanation
Correct Answers
C:Configure supported sparse checkout or Scalar/partial clone for constrained workflows. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect repository layout, dependency graph, clone filters and build requirements. Together they address: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
D:Inspect repository layout, dependency graph, clone filters and build requirements. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure supported sparse checkout or Scalar/partial clone for constrained workflows. Together they address: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
Incorrect Answers
A:Archive the repository or lock write access with audited exception handling. 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 repository layout, dependency graph, clone filters and build requirements.) and a controlled change (Configure supported sparse checkout or Scalar/partial clone for constrained workflows.).
B:Stop tracking generated outputs and plan reviewed history cleanup with team coordination. This concerns a different DevOps situation: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. This case instead requires both a targeted investigation (Inspect repository layout, dependency graph, clone filters and build requirements.) and a controlled change (Configure supported sparse checkout or Scalar/partial clone for constrained workflows.).
E:Inspect reflog entries, commit IDs, branch history and garbage collection status. This concerns a different DevOps situation: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. This case instead requires both a targeted investigation (Inspect repository layout, dependency graph, clone filters and build requirements.) and a controlled change (Configure supported sparse checkout or Scalar/partial clone for constrained workflows.).
Question 992
A Microsoft DevOps team is addressing: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. Which TWO complementary actions should be taken? Select TWO answers.
- Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.
- Configure approved CodeQL analysis and risk-based remediation gates.
- Enable Dependabot alerts and governed security updates with CI checks.
- Inspect repository dependency graph, advisory alerts and update policy.
- Inspect workflow PR permissions, required checks and protected branch policy.
Explanation
Correct Answers
C:Enable Dependabot alerts and governed security updates with CI checks. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect repository dependency graph, advisory alerts and update policy. Together they address: Dependency monitoring should detect vulnerable package versions with actionable updates.
D:Inspect repository dependency graph, advisory alerts and update policy. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Enable Dependabot alerts and governed security updates with CI checks. Together they address: Dependency monitoring should detect vulnerable package versions with actionable updates.
Incorrect Answers
A:Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios. This concerns a different DevOps situation: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. This case instead requires both a targeted investigation (Inspect repository dependency graph, advisory alerts and update policy.) and a controlled change (Enable Dependabot alerts and governed security updates with CI checks.).
B:Configure approved CodeQL analysis and risk-based remediation gates. This concerns a different DevOps situation: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. This case instead requires both a targeted investigation (Inspect repository dependency graph, advisory alerts and update policy.) and a controlled change (Enable Dependabot alerts and governed security updates with CI checks.).
E:Inspect workflow PR permissions, required checks and protected branch policy. This concerns a different DevOps situation: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. This case instead requires both a targeted investigation (Inspect repository dependency graph, advisory alerts and update policy.) and a controlled change (Enable Dependabot alerts and governed security updates with CI checks.).
Question 993
An engineering design review identifies: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. Which shortcut should the team MOST specifically avoid for this case?
- Release simultaneously to all tenants to maximize version consistency.
- Bypass all testing and never record the emergency change rationale.
- Run unconditional CREATE statements every time the deployment job retries.
- Run terraform apply -auto-approve for every production pull request.
Explanation
Correct Answer
D:Run terraform apply -auto-approve for every production pull request. This shortcut directly undermines the stated control or workflow. A safer action is: Publish a reviewed Terraform plan and apply the exact approved plan under controls. Explanation: Infrastructure deployment should preview and approve material changes before applying.
Incorrect Answers
A:Release simultaneously to all tenants to maximize version consistency. This would address a different situation, such as: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. In the present case, the most directly relevant unsafe shortcut is: Run terraform apply -auto-approve for every production pull request. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
B:Bypass all testing and never record the emergency change rationale. 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 unsafe shortcut is: Run terraform apply -auto-approve for every production pull request. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
C:Run unconditional CREATE statements every time the deployment job retries. 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 unsafe shortcut is: Run terraform apply -auto-approve for every production pull request. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
Question 994
An Azure DevOps engineering team evaluates this condition: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. Which DevOps principle BEST explains the underlying weakness?
- Operational monitoring should route significant pipeline failures to accountable responders.
- Container observability should preserve workload logs and restart context centrally.
- Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
- Network telemetry should complement application logs to locate connectivity failure.
Explanation
Correct Answer
C:Workflow insight metrics should distinguish failed jobs, timing and relevant branches. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect GitHub Actions run history, job timing, failure causes and usage trends. An appropriate controlled response is: Configure insight charts and notifications for failed and slow required workflows.
Incorrect Answers
A:Operational monitoring should route significant pipeline failures to accountable responders. 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 principle is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches. The crucial distinction is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
B:Container observability should preserve workload logs and restart context centrally. 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 principle is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches. The crucial distinction is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
D:Network telemetry should complement application logs to locate connectivity failure. This would address a different situation, such as: Intermittent API failures occur across a private network, but monitoring uses only application exception counts. In the present case, the most directly relevant principle is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches. The crucial distinction is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
Question 995
After implementing the change, the team verifies: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. Which result would BEST demonstrate that the issue is corrected?
- An intentionally unsafe test pattern produces an actionable authorized alert.
- A known critical test image is blocked while a remediated digest deploys.
- A deliberate injection-pattern test creates a security finding before merge.
- A simulated vulnerable dependency is flagged and its patched upgrade passes validation.
Explanation
Correct Answer
D:A simulated vulnerable dependency is flagged and its patched upgrade passes validation. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Enable Dependabot alerts and governed security updates with CI checks. Dependency monitoring should detect vulnerable package versions with actionable updates.
Incorrect Answers
A:An intentionally unsafe test pattern produces an actionable authorized alert. This would address a different situation, such as: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. In the present case, the most directly relevant verification is: A simulated vulnerable dependency is flagged and its patched upgrade passes validation. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
B:A known critical test image is blocked while a remediated digest deploys. This would address a different situation, such as: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. In the present case, the most directly relevant verification is: A simulated vulnerable dependency is flagged and its patched upgrade passes validation. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
C:A deliberate injection-pattern test creates a security finding before merge. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant verification is: A simulated vulnerable dependency is flagged and its patched upgrade passes validation. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
Question 996
The DevOps team must resolve this situation: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. Which engineering action is MOST appropriate?
- Require verified unit test checks as part of protected pull request policy.
- Add guarded end-to-end UI tests for checkout and payment confirmation.
- Run supported code scanning on pull requests with risk-appropriate merge gates.
- Use a dedicated test subscription or resource group with restricted identity permissions.
Explanation
Correct Answer
D:Use a dedicated test subscription or resource group with restricted identity permissions. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A destructive test cannot modify the protected production storage account. Test execution should be isolated from production identities and destructive resources.
Incorrect Answers
A:Require verified unit test checks as part of protected pull request policy. This would address a different situation, such as: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. In the present case, the most directly relevant engineering action is: Use a dedicated test subscription or resource group with restricted identity permissions. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.
B:Add guarded end-to-end UI tests for checkout and payment confirmation. This would address a different situation, such as: A payment workflow completes an HTTP health check but fails after users submit the checkout form. In the present case, the most directly relevant engineering action is: Use a dedicated test subscription or resource group with restricted identity permissions. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.
C:Run supported code scanning on pull requests with risk-appropriate merge gates. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant engineering action is: Use a dedicated test subscription or resource group with restricted identity permissions. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.
Question 997
A Microsoft DevOps team is addressing: A new AKS container image may affect payments, but the team wants to limit customer exposure during rollout. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect load balancer deregistration delay, pod termination and request lifetimes.
- Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers.
- Route a bounded canary share to new pods and expand only after acceptance checks.
- Retain a protected previous release and automate monitored rollback upon failure.
- Implement staged deployment rings with explicit gates and pause criteria.
Explanation
Correct Answers
B:Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Route a bounded canary share to new pods and expand only after acceptance checks. Together they address: Canary deployments reduce blast radius by validating a small traffic share first.
C:Route a bounded canary share to new pods and expand only after acceptance checks. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers. Together they address: Canary deployments reduce blast radius by validating a small traffic share first.
Incorrect Answers
A:Inspect load balancer deregistration delay, pod termination and request lifetimes. This concerns a different DevOps situation: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. This case instead requires both a targeted investigation (Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers.) and a controlled change (Route a bounded canary share to new pods and expand only after acceptance checks.).
D:Retain a protected previous release and automate monitored rollback upon failure. 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 ingress traffic splitting, pod health, business error metrics and rollback triggers.) and a controlled change (Route a bounded canary share to new pods and expand only after acceptance checks.).
E:Implement staged deployment rings with explicit gates and pause criteria. This concerns a different DevOps situation: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. This case instead requires both a targeted investigation (Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers.) and a controlled change (Route a bounded canary share to new pods and expand only after acceptance checks.).
Question 998
Before changing the pipeline or service, engineers find: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. Which evidence should the engineer inspect FIRST?
- Inspect template deployment mode, resource group contents, what-if output and retention requirements.
- Inspect guest baseline compliance, configuration assignments and VM identities.
- Inspect template inputs, source history, Key Vault access and deployment output.
- Inspect provider refresh results, plan drift and authorized manual changes.
Explanation
Correct Answer
C:Inspect template inputs, source history, Key Vault access and deployment output. This directly checks the uncertain behavior or control before changing production. Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. The resulting targeted action is: Reference protected secrets via governed Key Vault/identity patterns without logging values.
Incorrect Answers
A:Inspect template deployment mode, resource group contents, what-if output and retention requirements. 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 evidence is: Inspect template inputs, source history, Key Vault access and deployment output. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
B:Inspect guest baseline compliance, configuration assignments and VM identities. 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 evidence is: Inspect template inputs, source history, Key Vault access and deployment output. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
D:Inspect provider refresh results, plan drift and authorized manual changes. This would address a different situation, such as: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. In the present case, the most directly relevant evidence is: Inspect template inputs, source history, Key Vault access and deployment output. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
Question 999
The DevOps team must resolve this situation: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. Which engineering action is MOST appropriate?
- Integrate license policy checks into feed promotion and release approval.
- Grant the consuming build service read access at the appropriate feed scope.
- Promote and deploy verified image digests with approved version labels.
- Update to an approved secure dependency version and rerun integration and compatibility checks.
Explanation
Correct Answer
D:Update to an approved secure dependency version and rerun integration and compatibility checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A newly built wheel no longer includes the vulnerable dependency and tests pass. Dependency governance needs timely security updates while preserving compatibility testing.
Incorrect Answers
A:Integrate license policy checks into feed promotion and release approval. 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 engineering action is: Update to an approved secure dependency version and rerun integration and compatibility checks. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.
B:Grant the consuming build service read access at the appropriate feed scope. This would address a different situation, such as: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. In the present case, the most directly relevant engineering action is: Update to an approved secure dependency version and rerun integration and compatibility checks. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.
C:Promote and deploy verified image digests with approved version labels. 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 engineering action is: Update to an approved secure dependency version and rerun integration and compatibility checks. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.
Question 1000
An Azure DevOps engineering team evaluates this condition: A new AKS container image may affect payments, but the team wants to limit customer exposure during rollout. Which DevOps principle BEST explains the underlying weakness?
- A/B evaluations require stable cohorts and measurable objective-specific differences.
- Slot deployment must isolate environment-specific connection and trigger settings.
- Canary deployments reduce blast radius by validating a small traffic share first.
- Rolling update policies should preserve minimum ready capacity during replacement.
Explanation
Correct Answer
C:Canary deployments reduce blast radius by validating a small traffic share first. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers. An appropriate controlled response is: Route a bounded canary share to new pods and expand only after acceptance checks.
Incorrect Answers
A:A/B evaluations require stable cohorts and measurable objective-specific differences. This would address a different situation, such as: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. In the present case, the most directly relevant principle is: Canary deployments reduce blast radius by validating a small traffic share first. The crucial distinction is: Canary deployments reduce blast radius by validating a small traffic share first.
B:Slot deployment must isolate environment-specific connection and trigger settings. 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 principle is: Canary deployments reduce blast radius by validating a small traffic share first. The crucial distinction is: Canary deployments reduce blast radius by validating a small traffic share first.
D:Rolling update policies should preserve minimum ready capacity during replacement. 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 principle is: Canary deployments reduce blast radius by validating a small traffic share first. The crucial distinction is: Canary deployments reduce blast radius by validating a small traffic share first.