Microsoft AZ-400 Practice Test 39
Question 380
After implementing the change, the team verifies: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. Which result would BEST demonstrate that the issue is corrected?
- An intentionally failed deployment reaches the active on-call team with run identity.
- A controlled memory stress event appears in monitored guest memory signals.
- A deliberately failing workflow raises its failure metric without counting as success.
- A simulated failed blob operation is visible despite unchanged storage capacity.
Explanation
Correct Answer
D:A simulated failed blob operation is visible despite unchanged storage capacity. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure storage request/error monitoring with service-specific thresholds. Operational monitoring must include service request errors, latency and availability, not just capacity.
Incorrect Answers
A:An intentionally failed deployment reaches the active on-call team with run identity. 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 verification is: A simulated failed blob operation is visible despite unchanged storage capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
B:A controlled memory stress event appears in monitored guest memory signals. This would address a different situation, such as: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. In the present case, the most directly relevant verification is: A simulated failed blob operation is visible despite unchanged storage capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
C:A deliberately failing workflow raises its failure metric without counting as success. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant verification is: A simulated failed blob operation is visible despite unchanged storage capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
Question 381
After implementing the change, the team verifies: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. Which result would BEST demonstrate that the issue is corrected?
- The cross-project build restores packages without a global administrator token.
- A fresh workflow installs the private package without a long-lived personal token.
- A replaced object fails the manifest digest check and cannot silently deploy.
- A historic production release resolves to its original image content.
Explanation
Correct Answer
C:A replaced object fails the manifest digest check and cannot silently deploy. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use unique versioned paths and verify digest before deployment. Artifact integrity requires immutable identity and reliable build-to-release linkage.
Incorrect Answers
A:The cross-project build restores packages without a global administrator token. 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 verification is: A replaced object fails the manifest digest check and cannot silently deploy. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
B:A fresh workflow installs the private package without a long-lived personal token. This would address a different situation, such as: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. In the present case, the most directly relevant verification is: A replaced object fails the manifest digest check and cannot silently deploy. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
D:A historic production release resolves to its original image content. This would address a different situation, such as: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. In the present case, the most directly relevant verification is: A replaced object fails the manifest digest check and cannot silently deploy. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
Question 382
An Azure DevOps engineering team evaluates this condition: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. Which DevOps principle BEST explains the underlying weakness?
- Traceability after squash merges needs durable pull request and resulting commit identifiers.
- Every deployable branch needs controls proportionate to production impact.
- Hotfix processes must propagate tested corrections to every maintained affected line.
- Frequent integration into a protected trunk reduces accumulated merge risk.
Explanation
Correct Answer
B:Every deployable branch needs controls proportionate to production impact. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review deployment branch sources, permissions and branch policy coverage. An appropriate controlled response is: Apply equivalent required reviews and test gates to all protected release branches.
Incorrect Answers
A:Traceability after squash merges needs durable pull request and resulting commit identifiers. This would address a different situation, such as: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. In the present case, the most directly relevant principle is: Every deployable branch needs controls proportionate to production impact. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.
C:Hotfix processes must propagate tested corrections to every maintained affected line. This would address a different situation, such as: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. In the present case, the most directly relevant principle is: Every deployable branch needs controls proportionate to production impact. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.
D:Frequent integration into a protected trunk reduces accumulated merge risk. This would address a different situation, such as: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. In the present case, the most directly relevant principle is: Every deployable branch needs controls proportionate to production impact. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.
Question 383
The DevOps team must resolve this situation: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. Which engineering action is MOST appropriate?
- Add release annotations and traceable version properties to Application Insights.
- Remediate the verified disk bottleneck and validate end-to-end service performance.
- Measure and alert on relevant latency percentiles with suitable dimensions.
- Adjust sampling and critical-event retention within approved performance and cost limits.
Explanation
Correct Answer
A:Add release annotations and traceable version properties to Application Insights. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An injected failing release creates a visible change-linked error cluster. Operational telemetry should correlate errors with release markers and change events.
Incorrect Answers
B: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: Add release annotations and traceable version properties to Application Insights. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.
C: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: Add release annotations and traceable version properties to Application Insights. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.
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: Add release annotations and traceable version properties to Application Insights. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.
Question 384
An Azure DevOps engineering team evaluates this condition: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. Which DevOps principle BEST explains the underlying weakness?
- Security scanning should prioritize relevant risk and accountable remediation.
- Security capability licensing does not prove scans run or findings are reviewed.
- Code scanning should detect relevant source vulnerabilities before release.
- Automated security/compliance scanning should retain dependency provenance and approved package sources.
Explanation
Correct Answer
A:Security scanning should prioritize relevant risk and accountable remediation. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect alert severity, exploitability, exposure, service criticality and exceptions. An appropriate controlled response is: Use risk-based triage with owners, remediation SLAs and documented waivers.
Incorrect Answers
B:Security capability licensing does not prove scans run or findings are reviewed. 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 principle is: Security scanning should prioritize relevant risk and accountable remediation. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
C:Code scanning should detect relevant source vulnerabilities before release. 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 principle is: Security scanning should prioritize relevant risk and accountable remediation. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
D:Automated security/compliance scanning should retain dependency provenance and approved package sources. This would address a different situation, such as: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. In the present case, the most directly relevant principle is: Security scanning should prioritize relevant risk and accountable remediation. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
Question 385
Before changing the pipeline or service, engineers find: A large build spends most of its time serially running three independent test suites. Which evidence should the engineer inspect FIRST?
- Inspect pipeline resources, branch filters, artifact provenance and run IDs.
- Inspect agent image announcement, demands, SDK versions and task compatibility.
- Compare classic stage approvals with YAML environment checks and service-connection authorization.
- Inspect stage timeline, dependsOn graph, runner slots and data dependencies.
Explanation
Correct Answer
D:Inspect stage timeline, dependsOn graph, runner slots and data dependencies. This directly checks the uncertain behavior or control before changing production. Pipeline job dependencies should parallelize independent work when capacity permits. The resulting targeted action is: Run independent tests in parallel within the approved concurrency and resource budget.
Incorrect Answers
A:Inspect pipeline resources, branch filters, artifact provenance and run IDs. 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 evidence is: Inspect stage timeline, dependsOn graph, runner slots and data dependencies. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
B:Inspect agent image announcement, demands, SDK versions and task compatibility. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant evidence is: Inspect stage timeline, dependsOn graph, runner slots and data dependencies. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
C:Compare classic stage approvals with YAML environment checks and service-connection authorization. This would address a different situation, such as: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. In the present case, the most directly relevant evidence is: Inspect stage timeline, dependsOn graph, runner slots and data dependencies. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
Question 386
An Azure DevOps engineering team evaluates this condition: A release manifest references an ACR latest tag that was replaced after QA approval. Which DevOps principle BEST explains the underlying weakness?
- Deployments should reference the exact verified image digest or protected immutable tag.
- A/B evaluations require stable cohorts and measurable objective-specific differences.
- Helm release operations need validated charts and controlled rollback behavior.
- Cross-service deployment order must respect compatibility and dependency contracts.
Explanation
Correct Answer
A:Deployments should reference the exact verified image digest or protected immutable tag. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect ACR digest, release manifest, build provenance and tag permissions. An appropriate controlled response is: Pin the approved image digest in deployment configuration and retain rollback versions.
Incorrect Answers
B: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: Deployments should reference the exact verified image digest or protected immutable tag. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
C:Helm release operations need validated charts and controlled rollback behavior. This would address a different situation, such as: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. In the present case, the most directly relevant principle is: Deployments should reference the exact verified image digest or protected immutable tag. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
D:Cross-service deployment order must respect compatibility and dependency contracts. 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 principle is: Deployments should reference the exact verified image digest or protected immutable tag. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
Question 387
A Microsoft DevOps team is addressing: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. Which TWO complementary actions should be taken? Select TWO answers.
- Enforce code owner approval for sensitive path changes in protected branches.
- Compare release branch commits, mainline history and subsequent deployment tags.
- Use fork-and-pull-request contributions with least-privilege branch access.
- Apply equivalent required reviews and test gates to all protected release branches.
- Inspect collaborator roles, fork permissions and branch protection rules.
Explanation
Correct Answers
C:Use fork-and-pull-request contributions with least-privilege branch access. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect collaborator roles, fork permissions and branch protection rules. Together they address: External contributions should use constrained write scope and enforced review.
E:Inspect collaborator roles, fork permissions and branch protection rules. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use fork-and-pull-request contributions with least-privilege branch access. Together they address: External contributions should use constrained write scope and enforced review.
Incorrect Answers
A:Enforce code owner approval for sensitive path changes in protected branches. This concerns a different DevOps situation: Payment processing files require security review, but code owner review is only advisory. This case instead requires both a targeted investigation (Inspect collaborator roles, fork permissions and branch protection rules.) and a controlled change (Use fork-and-pull-request contributions with least-privilege branch access.).
B:Compare release branch commits, mainline history and subsequent deployment tags. This concerns a different DevOps situation: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. This case instead requires both a targeted investigation (Inspect collaborator roles, fork permissions and branch protection rules.) and a controlled change (Use fork-and-pull-request contributions with least-privilege branch access.).
D:Apply equivalent required reviews and test gates to all protected release branches. This concerns a different DevOps situation: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. This case instead requires both a targeted investigation (Inspect collaborator roles, fork permissions and branch protection rules.) and a controlled change (Use fork-and-pull-request contributions with least-privilege branch access.).
Question 388
The DevOps team must resolve this situation: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. Which engineering action is MOST appropriate?
- Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision.
- Retain a protected previous release and automate monitored rollback upon failure.
- Configure a controlled percentage or targeting filter with versioned rollout criteria.
- Pin the approved image digest in deployment configuration and retain rollback versions.
Explanation
Correct Answer
A:Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A deliberately invalid chart cannot leave the cluster on an unapproved broken release. Helm release operations need validated charts and controlled rollback behavior.
Incorrect Answers
B:Retain a protected previous release and automate monitored rollback upon failure. This would address a different situation, such as: A release detects elevated errors but cannot roll back because the prior verified package was deleted. In the present case, the most directly relevant engineering action is: Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
C:Configure a controlled percentage or targeting filter with versioned rollout criteria. 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 engineering action is: Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
D:Pin the approved image digest in deployment configuration and retain rollback versions. 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 engineering action is: Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
Question 389
After implementing the change, the team verifies: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. Which result would BEST demonstrate that the issue is corrected?
- A common authentication library change runs the affected service's tests.
- A failed test stage prevents the dependent production verification and deployment.
- A test pipeline deploys after the old secret is revoked and stays least-privileged.
- A feature-branch push cannot deploy while a reviewed mainline commit can.
Explanation
Correct Answer
A:A common authentication library change runs the affected service's tests. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Expand path filters to cover the service and relevant shared library changes. Path filters must include shared dependencies required by the target service.
Incorrect Answers
B:A failed test stage prevents the dependent production verification and deployment. This would address a different situation, such as: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. In the present case, the most directly relevant verification is: A common authentication library change runs the affected service's tests. The crucial distinction is: Path filters must include shared dependencies required by the target service.
C:A test pipeline deploys after the old secret is revoked and stays least-privileged. This would address a different situation, such as: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. In the present case, the most directly relevant verification is: A common authentication library change runs the affected service's tests. The crucial distinction is: Path filters must include shared dependencies required by the target service.
D:A feature-branch push cannot deploy while a reviewed mainline commit can. 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 verification is: A common authentication library change runs the affected service's tests. The crucial distinction is: Path filters must include shared dependencies required by the target service.
Question 390
The DevOps team must resolve this situation: A shared variable group contains production connection strings, and every development pipeline can read them. Which engineering action is MOST appropriate?
- Create a controlled matrix over required operating systems and runtime versions.
- Separate production variables and restrict group use to approved production pipelines.
- Include explicit succeeded dependencies in the custom promotion condition.
- Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.
Explanation
Correct Answer
B:Separate production variables and restrict group use to approved production pipelines. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An untrusted development pipeline cannot read production variable values. Variable groups must have environment-specific authorization and secret access controls.
Incorrect Answers
A:Create a controlled matrix over required operating systems and runtime versions. This would address a different situation, such as: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. In the present case, the most directly relevant engineering action is: Separate production variables and restrict group use to approved production pipelines. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.
C:Include explicit succeeded dependencies in the custom promotion condition. This would address a different situation, such as: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. In the present case, the most directly relevant engineering action is: Separate production variables and restrict group use to approved production pipelines. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.
D:Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment. This would address a different situation, such as: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. In the present case, the most directly relevant engineering action is: Separate production variables and restrict group use to approved production pipelines. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.