Microsoft AZ-400 Practice Test 6
Question 50
Before changing the pipeline or service, engineers find: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. Which evidence should the engineer inspect FIRST?
- Inspect workflow permission scopes, reusable call contracts and job operations.
- Inspect library permissions, pipeline authorization, variable source and consumer identities.
- Review stage condition expressions, dependency status and test results.
- Inspect repository runner group rules, fork workflow triggers and credential persistence.
Explanation
Correct Answer
A:Inspect workflow permission scopes, reusable call contracts and job operations. This directly checks the uncertain behavior or control before changing production. Job-level token permissions should match each workflow task's minimum needs. The resulting targeted action is: Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.
Incorrect Answers
B:Inspect library permissions, pipeline authorization, variable source and consumer identities. This would address a different situation, such as: A shared variable group contains production connection strings, and every development pipeline can read them. In the present case, the most directly relevant evidence is: Inspect workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.
C:Review stage condition expressions, dependency status and test results. 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 evidence is: Inspect workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.
D:Inspect repository runner group rules, fork workflow triggers and credential persistence. This would address a different situation, such as: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. In the present case, the most directly relevant evidence is: Inspect workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.
Question 51
After implementing the change, the team verifies: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. Which result would BEST demonstrate that the issue is corrected?
- A traced sample change reconciles to dashboard start and end timestamps.
- A test job delayed by runner scarcity shows queue time rather than slow compilation.
- Payment release performance can be evaluated without being distorted by sandbox builds.
- The report exposes a deliberately excluded critical integration suite as a gap.
Explanation
Correct Answer
C:Payment release performance can be evaluated without being distorted by sandbox builds. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Build service-segmented queries and complementary stability metrics. Operational metrics must be interpreted by service context and business risk.
Incorrect Answers
A:A traced sample change reconciles to dashboard start and end timestamps. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant verification is: Payment release performance can be evaluated without being distorted by sandbox builds. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
B: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: Payment release performance can be evaluated without being distorted by sandbox builds. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
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: Payment release performance can be evaluated without being distorted by sandbox builds. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
Question 52
An Azure DevOps engineering team evaluates this condition: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. Which DevOps principle BEST explains the underlying weakness?
- IaC dependency design must express when required resources and authorization are ready.
- Guest desired-state policy should be measurable and enforceable across managed VMs.
- Desired state must be reconciled with real infrastructure before applying further changes.
- Infrastructure templates should codify consistent application platform controls.
Explanation
Correct Answer
D:Infrastructure templates should codify consistent application platform controls. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Compare YAML and Bicep modules, probes, managed identity choices and review history. An appropriate controlled response is: Publish approved reusable templates with governed versioning and service-specific parameters.
Incorrect Answers
A:IaC dependency design must express when required resources and authorization are ready. 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 principle is: Infrastructure templates should codify consistent application platform controls. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.
B:Guest desired-state policy should be measurable and enforceable across managed VMs. 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 principle is: Infrastructure templates should codify consistent application platform controls. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.
C:Desired state must be reconciled with real infrastructure before applying further 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 principle is: Infrastructure templates should codify consistent application platform controls. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.
Question 53
After implementing the change, the team verifies: An App Service accesses Azure Storage using a connection string containing an account key in source control. Which result would BEST demonstrate that the issue is corrected?
- The approved pipeline deploys after the static client secret is removed.
- The auditor views the specified repo but cannot inspect unrelated private repositories.
- The app accesses its authorized container after the account key is revoked.
- The manager can create permitted work items but cannot change release environments.
Explanation
Correct Answer
C:The app accesses its authorized container after the account key is revoked. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Enable system-assigned managed identity and grant narrow storage data-plane roles. Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
Incorrect Answers
A:The approved pipeline deploys after the static client secret is removed. 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 verification is: The app accesses its authorized container after the account key is revoked. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
B:The auditor views the specified repo but cannot inspect unrelated private repositories. This would address a different situation, such as: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. In the present case, the most directly relevant verification is: The app accesses its authorized container after the account key is revoked. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
D: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: The app accesses its authorized container after the account key is revoked. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
Question 54
The DevOps team must resolve this situation: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. Which engineering action is MOST appropriate?
- Use suitable Stakeholder access and restrict code/pipeline administration.
- Invite an outside collaborator with restricted access to the reviewed repository.
- Attach an approved user-assigned managed identity to the participating compute resources.
- Separate pipeline authors from release-approval administrators and audit exceptions.
Explanation
Correct Answer
C:Attach an approved user-assigned managed identity to the participating compute resources. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A replacement instance uses the same authorized identity without sharing passwords. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
Incorrect Answers
A:Use suitable Stakeholder access and restrict code/pipeline administration. 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 engineering action is: Attach an approved user-assigned managed identity to the participating compute resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
B:Invite an outside collaborator with restricted access to the reviewed repository. This would address a different situation, such as: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. In the present case, the most directly relevant engineering action is: Attach an approved user-assigned managed identity to the participating compute resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
D:Separate pipeline authors from release-approval administrators and audit exceptions. 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 engineering action is: Attach an approved user-assigned managed identity to the participating compute resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
Question 55
A Microsoft DevOps team is addressing: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. Which TWO complementary actions should be taken? Select TWO answers.
- Normalize names and case-correct imports with cross-platform validation in PR checks.
- Archive the repository or lock write access with audited exception handling.
- Inspect file types, object sizes, clone profiles and LFS availability.
- Inspect repository layout, dependency graph, clone filters and build requirements.
- Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.
Explanation
Correct Answers
C:Inspect file types, object sizes, clone profiles and LFS availability. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. Together they address: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
E:Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect file types, object sizes, clone profiles and LFS availability. Together they address: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
Incorrect Answers
A:Normalize names and case-correct imports with cross-platform validation in PR checks. This concerns a different DevOps situation: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. This case instead requires both a targeted investigation (Inspect file types, object sizes, clone profiles and LFS availability.) and a controlled change (Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.).
B: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 file types, object sizes, clone profiles and LFS availability.) and a controlled change (Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.).
D:Inspect repository layout, dependency graph, clone filters and build requirements. This concerns a different DevOps situation: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. This case instead requires both a targeted investigation (Inspect file types, object sizes, clone profiles and LFS availability.) and a controlled change (Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.).
Question 56
Before changing the pipeline or service, engineers find: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. Which evidence should the engineer inspect FIRST?
- Inspect repository secret-scanning alerts, token audit logs and response workflow.
- Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates.
- Inspect lockfile changes, package registry source, published checksums and CI scan reports.
- Inspect workflow PR permissions, required checks and protected branch policy.
Explanation
Correct Answer
C:Inspect lockfile changes, package registry source, published checksums and CI scan reports. This directly checks the uncertain behavior or control before changing production. Automated security/compliance scanning should retain dependency provenance and approved package sources. The resulting targeted action is: Require reviewed package source, SBOM and policy gates before accepting dependency updates.
Incorrect Answers
A:Inspect repository secret-scanning alerts, token audit logs and response workflow. This would address a different situation, such as: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. In the present case, the most directly relevant evidence is: Inspect lockfile changes, package registry source, published checksums and CI scan reports. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.
B:Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates. 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 evidence is: Inspect lockfile changes, package registry source, published checksums and CI scan reports. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.
D:Inspect workflow PR permissions, required checks and protected branch policy. This would address a different situation, such as: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. In the present case, the most directly relevant evidence is: Inspect lockfile changes, package registry source, published checksums and CI scan reports. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.
Question 57
An Azure DevOps engineering team evaluates this condition: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. Which DevOps principle BEST explains the underlying weakness?
- Documentation should be versioned with the workflow it explains and validated during change.
- Notifications should reach accountable responders through monitored channels with useful context.
- API documentation must be published from the approved version and checked for compatibility.
- Cross-tool event integrations need idempotent handling and observability.
Explanation
Correct Answer
C:API documentation must be published from the approved version and checked for compatibility. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review OpenAPI specification, release artifact version and documentation publication stage. An appropriate controlled response is: Generate and publish versioned API documentation as a release-gated artifact.
Incorrect Answers
A:Documentation should be versioned with the workflow it explains and validated during change. This would address a different situation, such as: A repository wiki describes a build script that was removed six months ago and breaks onboarding. In the present case, the most directly relevant principle is: API documentation must be published from the approved version and checked for compatibility. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
B:Notifications should reach accountable responders through monitored channels with useful context. This would address a different situation, such as: Critical production deployment failures send only email to an unattended shared mailbox. In the present case, the most directly relevant principle is: API documentation must be published from the approved version and checked for compatibility. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
D:Cross-tool event integrations need idempotent handling and observability. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant principle is: API documentation must be published from the approved version and checked for compatibility. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
Question 58
The DevOps team must resolve this situation: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. Which engineering action is MOST appropriate?
- Run isolated integration tests against approved representative Azure SQL dependencies.
- Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.
- Test expand-and-contract schema changes against concurrent old and new application instances.
- Move test credentials into a protected secret store and suppress token output.
Explanation
Correct Answer
B:Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The authorization module appears in coverage results and reduced testing is detected. Coverage gates must reflect relevant tested production code and disclose exclusions.
Incorrect Answers
A:Run isolated integration tests against approved representative Azure SQL dependencies. This would address a different situation, such as: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. In the present case, the most directly relevant engineering action is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
C:Test expand-and-contract schema changes against concurrent old and new application instances. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant engineering action is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
D:Move test credentials into a protected secret store and suppress token output. This would address a different situation, such as: A test task writes its service principal secret into verbose logs on every failing run. In the present case, the most directly relevant engineering action is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
Question 59
After implementing the change, the team verifies: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. Which result would BEST demonstrate that the issue is corrected?
- A clean replacement hosted image reproduces the expected build.
- A new deployment succeeds after retiring the old secret while preserving permissions.
- A rollback exercise retrieves its signed prior image while obsolete builds expire.
- A historical release can be reconstructed within the mandated retention period.
Explanation
Correct Answer
B:A new deployment succeeds after retiring the old secret while preserving permissions. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Migrate to workload identity federation or controlled rotation with alerting. Deployment identities should support safe rotation or federation without release downtime.
Incorrect Answers
A:A clean replacement hosted image reproduces the expected build. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant verification is: A new deployment succeeds after retiring the old secret while preserving permissions. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
C:A rollback exercise retrieves its signed prior image while obsolete builds expire. This would address a different situation, such as: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. In the present case, the most directly relevant verification is: A new deployment succeeds after retiring the old secret while preserving permissions. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
D:A historical release can be reconstructed within the mandated retention period. This would address a different situation, such as: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. In the present case, the most directly relevant verification is: A new deployment succeeds after retiring the old secret while preserving permissions. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
Question 60
The DevOps team must resolve this situation: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. Which engineering action is MOST appropriate?
- Publish excluded and flaky test counts with test trends and actionable owner assignments.
- Build service-segmented queries and complementary stability metrics.
- Calculate lead time for eligible service changes from commit to actual production deployment.
- Define recovery completion using service-level restoration and compute the metric accordingly.
Explanation
Correct Answer
A:Publish excluded and flaky test counts with test trends and actionable owner assignments. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The report exposes a deliberately excluded critical integration suite as a gap. Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
Incorrect Answers
B:Build service-segmented queries and complementary stability metrics. This would address a different situation, such as: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. In the present case, the most directly relevant engineering action is: Publish excluded and flaky test counts with test trends and actionable owner assignments. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
C:Calculate lead time for eligible service changes from commit to actual production deployment. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant engineering action is: Publish excluded and flaky test counts with test trends and actionable owner assignments. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
D:Define recovery completion using service-level restoration and compute the metric accordingly. 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 engineering action is: Publish excluded and flaky test counts with test trends and actionable owner assignments. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.