Microsoft AZ-400 Practice Test 60
Question 590
After implementing the change, the team verifies: A QA vendor needs read-only test access but has been granted repository administration rights. Which result would BEST demonstrate that the issue is corrected?
- The restored changes match the lost commit without overwriting colleagues' work.
- New commits exclude build outputs and repository history action is communicated safely.
- The vendor can run authorized tests but cannot change protected repository settings.
- The old credential is invalid and authorized scans find no active secret exposure.
Explanation
Correct Answer
C:The vendor can run authorized tests but cannot change protected repository settings. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Assign a read-only or suitably scoped collaborator role and remove administrative privileges. Repository access should be limited to the minimum collaborator operations.
Incorrect Answers
A:The restored changes match the lost commit without overwriting colleagues' work. This would address a different situation, such as: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. In the present case, the most directly relevant verification is: The vendor can run authorized tests but cannot change protected repository settings. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
B:New commits exclude build outputs and repository history action is communicated safely. This would address a different situation, such as: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. In the present case, the most directly relevant verification is: The vendor can run authorized tests but cannot change protected repository settings. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
D:The old credential is invalid and authorized scans find no active secret exposure. This would address a different situation, such as: A database credential is removed from the latest Git commit but remains visible in old revisions. In the present case, the most directly relevant verification is: The vendor can run authorized tests but cannot change protected repository settings. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
Question 591
Before changing the pipeline or service, engineers find: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. Which evidence should the engineer inspect FIRST?
- Inspect organization membership, outside collaborator assignments and repository visibility.
- Inspect workflow permissions, fork contexts, third-party actions and write operations.
- Inspect App Service identity settings, storage RBAC and credential history.
- Inspect project memberships, access level, team role and pipeline permissions.
Explanation
Correct Answer
A:Inspect organization membership, outside collaborator assignments and repository visibility. This directly checks the uncertain behavior or control before changing production. External access should be scoped to the minimum repository and role. The resulting targeted action is: Invite an outside collaborator with restricted access to the reviewed repository.
Incorrect Answers
B:Inspect workflow permissions, fork contexts, third-party actions and write operations. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant evidence is: Inspect organization membership, outside collaborator assignments and repository visibility. The crucial distinction is: External access should be scoped to the minimum repository and role.
C:Inspect App Service identity settings, storage RBAC and credential history. This would address a different situation, such as: An App Service accesses Azure Storage using a connection string containing an account key in source control. In the present case, the most directly relevant evidence is: Inspect organization membership, outside collaborator assignments and repository visibility. The crucial distinction is: External access should be scoped to the minimum repository and role.
D:Inspect project memberships, access level, team role and pipeline permissions. 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 evidence is: Inspect organization membership, outside collaborator assignments and repository visibility. The crucial distinction is: External access should be scoped to the minimum repository and role.
Question 592
An Azure DevOps engineering team evaluates this condition: A pipeline team wants 50 more hosted agent slots even though bottlenecks are serial manual approvals and limited integration environments. Which DevOps principle BEST explains the underlying weakness?
- Pipeline job dependencies should parallelize independent work when capacity permits.
- Capacity changes should be justified by measured critical-path improvements and cost.
- Migration must preserve policy-enforced approvals through supported protected resources.
- Pipeline migration must account for external dependencies and supported retention.
Explanation
Correct Answer
B:Capacity changes should be justified by measured critical-path improvements and cost. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect timeline, agent saturation, external dependencies and budget. An appropriate controlled response is: Remove serial bottlenecks or right-size jobs before purchasing concurrency.
Incorrect Answers
A:Pipeline job dependencies should parallelize independent work when capacity permits. This would address a different situation, such as: A large build spends most of its time serially running three independent test suites. In the present case, the most directly relevant principle is: Capacity changes should be justified by measured critical-path improvements and cost. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.
C:Migration must preserve policy-enforced approvals through supported protected resources. 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 principle is: Capacity changes should be justified by measured critical-path improvements and cost. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.
D:Pipeline migration must account for external dependencies and supported retention. This would address a different situation, such as: A package registry is scheduled for migration, but retired feeds still contain dependencies used by maintained builds. In the present case, the most directly relevant principle is: Capacity changes should be justified by measured critical-path improvements and cost. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.
Question 593
The DevOps team must resolve this situation: A database credential is removed from the latest Git commit but remains visible in old revisions. Which engineering action is MOST appropriate?
- Archive the repository or lock write access with audited exception handling.
- Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary.
- Pin the submodule to an approved commit and update it through reviewed changes.
- Govern large-file retention, selective downloads and authorized capacity increases.
Explanation
Correct Answer
B:Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The old credential is invalid and authorized scans find no active secret exposure. Removing a secret from the latest tree does not revoke credentials or erase history.
Incorrect Answers
A:Archive the repository or lock write access with audited exception handling. This would address a different situation, such as: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. In the present case, the most directly relevant engineering action is: Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.
C:Pin the submodule to an approved commit and update it through reviewed changes. This would address a different situation, such as: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. In the present case, the most directly relevant engineering action is: Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.
D:Govern large-file retention, selective downloads and authorized capacity increases. This would address a different situation, such as: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. In the present case, the most directly relevant engineering action is: Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.
Question 594
Before changing the pipeline or service, engineers find: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. Which evidence should the engineer inspect FIRST?
- Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
- Compare wiki revisions, pipeline definitions, links and onboarding incident history.
- Review pipeline notification subscriptions, Teams integration, owners and incident escalation.
- Inspect Azure Boards GitHub connection, repository authorization and linked work items.
Explanation
Correct Answer
D:Inspect Azure Boards GitHub connection, repository authorization and linked work items. This directly checks the uncertain behavior or control before changing production. Cross-platform collaboration requires configured repository and work-item integration. The resulting targeted action is: Configure the authorized Azure Boards-GitHub integration and linking conventions.
Incorrect Answers
A:Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant evidence is: Inspect Azure Boards GitHub connection, repository authorization and linked work items. The crucial distinction is: Cross-platform collaboration requires configured repository and work-item integration.
B:Compare wiki revisions, pipeline definitions, links and onboarding incident history. 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 evidence is: Inspect Azure Boards GitHub connection, repository authorization and linked work items. The crucial distinction is: Cross-platform collaboration requires configured repository and work-item integration.
C:Review pipeline notification subscriptions, Teams integration, owners and incident escalation. 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 evidence is: Inspect Azure Boards GitHub connection, repository authorization and linked work items. The crucial distinction is: Cross-platform collaboration requires configured repository and work-item integration.
Question 595
Before changing the pipeline or service, engineers find: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. Which evidence should the engineer inspect FIRST?
- Inspect existing VNet templates, module interfaces, policy results and configuration drift.
- Inspect guest baseline compliance, configuration assignments and VM identities.
- Inspect environment provisioning logs, resource tags, TTL and cleanup policies.
- Inspect linter rules, RBAC template details, warning severity and pipeline checks.
Explanation
Correct Answer
B:Inspect guest baseline compliance, configuration assignments and VM identities. This directly checks the uncertain behavior or control before changing production. Guest desired-state policy should be measurable and enforceable across managed VMs. The resulting targeted action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation.
Incorrect Answers
A:Inspect existing VNet templates, module interfaces, policy results and configuration drift. 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 evidence is: Inspect guest baseline compliance, configuration assignments and VM identities. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
C:Inspect environment provisioning logs, resource tags, TTL and cleanup policies. 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 evidence is: Inspect guest baseline compliance, configuration assignments and VM identities. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
D:Inspect linter rules, RBAC template details, warning severity and pipeline checks. 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 evidence is: Inspect guest baseline compliance, configuration assignments and VM identities. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
Question 596
Before changing the pipeline or service, engineers find: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. Which evidence should the engineer inspect FIRST?
- Inspect lockfile changes, package registry source, published checksums and CI scan reports.
- Inspect repository dependency graph, advisory alerts and update policy.
- Review SBOM, open-source license records, distribution type and exception approvals.
- Inspect Defender for Cloud DevOps connector, authorization and repository inventory.
Explanation
Correct Answer
B:Inspect repository dependency graph, advisory alerts and update policy. This directly checks the uncertain behavior or control before changing production. Dependency monitoring should detect vulnerable package versions with actionable updates. The resulting targeted action is: Enable Dependabot alerts and governed security updates with CI checks.
Incorrect Answers
A:Inspect lockfile changes, package registry source, published checksums and CI scan reports. 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 evidence is: Inspect repository dependency graph, advisory alerts and update policy. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
C:Review SBOM, open-source license records, distribution type and exception approvals. This would address a different situation, such as: A binary distribution uses open-source dependencies but its release process does not check license obligations. In the present case, the most directly relevant evidence is: Inspect repository dependency graph, advisory alerts and update policy. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
D:Inspect Defender for Cloud DevOps connector, authorization and repository inventory. This would address a different situation, such as: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. In the present case, the most directly relevant evidence is: Inspect repository dependency graph, advisory alerts and update policy. The crucial distinction is: Dependency monitoring should detect vulnerable package versions with actionable updates.
Question 597
After implementing the change, the team verifies: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. Which result would BEST demonstrate that the issue is corrected?
- A rotation rehearsal preserves authorization and active service availability.
- The test cohort receives the new flow while excluded users retain the original flow.
- A staged function validates safely without consuming production messages.
- A test urgent fix reaches production through review and is merged to maintained branches.
Explanation
Correct Answer
D:A test urgent fix reaches production through review and is merged to maintained branches. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Define a limited hotfix workflow with priority testing, accountable approval and later backport. A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
Incorrect Answers
A:A rotation rehearsal preserves authorization and active service availability. This would address a different situation, such as: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. In the present case, the most directly relevant verification is: A test urgent fix reaches production through review and is merged to maintained branches. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
B:The test cohort receives the new flow while excluded users retain the original flow. 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 verification is: A test urgent fix reaches production through review and is merged to maintained branches. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
C:A staged function validates safely without consuming production messages. 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 verification is: A test urgent fix reaches production through review and is merged to maintained branches. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
Question 598
After implementing the change, the team verifies: A repository's default branch allows authors to approve their own high-risk changes without independent review. Which result would BEST demonstrate that the issue is corrected?
- A change to the protected payment directory cannot merge without authorized approval.
- A trial feature merges safely with a small diff and mandatory gates intact.
- A self-approved risky test change is blocked while reviewed passing changes merge.
- A squashed change can be traced from release to approved PR and tests.
Explanation
Correct Answer
C:A self-approved risky test change is blocked while reviewed passing changes merge. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Require independent pull request reviews and passing automated checks on main. Branch policies should enforce an independent review and required checks for protected code.
Incorrect Answers
A:A change to the protected payment directory cannot merge without authorized approval. This would address a different situation, such as: Payment processing files require security review, but code owner review is only advisory. In the present case, the most directly relevant verification is: A self-approved risky test change is blocked while reviewed passing changes merge. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.
B:A trial feature merges safely with a small diff and mandatory gates intact. 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 verification is: A self-approved risky test change is blocked while reviewed passing changes merge. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.
D:A squashed change can be traced from release to approved PR and tests. 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 verification is: A self-approved risky test change is blocked while reviewed passing changes merge. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.
Question 599
Before changing the pipeline or service, engineers find: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. Which evidence should the engineer inspect FIRST?
- Inspect service connections, resource IDs, variables and test cleanup scripts.
- Inspect connection policy, test-stage service connections, database logs and environment settings.
- Inspect YAML dependsOn, resource approvals, migration job outcomes and test order.
- Inspect browser-test steps, authentication dependencies and failure traces.
Explanation
Correct Answer
B:Inspect connection policy, test-stage service connections, database logs and environment settings. This directly checks the uncertain behavior or control before changing production. Integration tests must exercise representative dependent services and configuration. The resulting targeted action is: Run isolated integration tests against approved representative Azure SQL dependencies.
Incorrect Answers
A:Inspect service connections, resource IDs, variables and test cleanup scripts. This would address a different situation, such as: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. In the present case, the most directly relevant evidence is: Inspect connection policy, test-stage service connections, database logs and environment settings. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.
C:Inspect YAML dependsOn, resource approvals, migration job outcomes and test order. This would address a different situation, such as: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. In the present case, the most directly relevant evidence is: Inspect connection policy, test-stage service connections, database logs and environment settings. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.
D:Inspect browser-test steps, authentication dependencies and failure traces. 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 evidence is: Inspect connection policy, test-stage service connections, database logs and environment settings. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.
Question 600
An Azure DevOps engineering team evaluates this condition: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. Which DevOps principle BEST explains the underlying weakness?
- Stateful IaC replacements require impact review and a migration plan.
- Deployment mode and scope determine whether absent resources may be removed.
- IaC dependency design must express when required resources and authorization are ready.
- Infrastructure and application delivery need traceable version handoff without mutable assumptions.
Explanation
Correct Answer
D:Infrastructure and application delivery need traceable version handoff without mutable assumptions. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review image digest provenance, deployment parameters and environment history. An appropriate controlled response is: Pass verified immutable image identifiers through a controlled IaC deployment interface.
Incorrect Answers
A:Stateful IaC replacements require impact review and a migration plan. This would address a different situation, such as: A refactor changes a storage account name while the pipeline applies it directly to production. In the present case, the most directly relevant principle is: Infrastructure and application delivery need traceable version handoff without mutable assumptions. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.
B:Deployment mode and scope determine whether absent resources may be removed. 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 principle is: Infrastructure and application delivery need traceable version handoff without mutable assumptions. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.
C: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 and application delivery need traceable version handoff without mutable assumptions. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.