Microsoft AZ-400 Practice Test 47
Question 460
Before changing the pipeline or service, engineers find: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. Which evidence should the engineer inspect FIRST?
- Review stage condition expressions, dependency status and test results.
- Inspect task output names, stage dependencies and variable references.
- Inspect repository runner group rules, fork workflow triggers and credential persistence.
- Inspect GitHub App installation, service connection, YAML PR settings and branch policy.
Explanation
Correct Answer
D:Inspect GitHub App installation, service connection, YAML PR settings and branch policy. This directly checks the uncertain behavior or control before changing production. Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers. The resulting targeted action is: Configure approved GitHub connection permissions and required PR build validation.
Incorrect Answers
A: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 GitHub App installation, service connection, YAML PR settings and branch policy. The crucial distinction is: Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
B:Inspect task output names, stage dependencies and variable references. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant evidence is: Inspect GitHub App installation, service connection, YAML PR settings and branch policy. The crucial distinction is: Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
C: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 GitHub App installation, service connection, YAML PR settings and branch policy. The crucial distinction is: Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
Question 461
Before changing the pipeline or service, engineers find: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. Which evidence should the engineer inspect FIRST?
- Compare project version ranges, lockfiles, feed updates and restore output.
- Inspect artifact store versioning, write policy, source SHA and release logs.
- Inspect ACR manifests, tag mutation rights, deployment records and source mapping.
- Inspect public API diffs, release notes, versioning rules and downstream tests.
Explanation
Correct Answer
D:Inspect public API diffs, release notes, versioning rules and downstream tests. This directly checks the uncertain behavior or control before changing production. SemVer major versions communicate incompatible public API changes. The resulting targeted action is: Publish an appropriate major version with migration guidance and compatibility gates.
Incorrect Answers
A:Compare project version ranges, lockfiles, feed updates and restore output. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant evidence is: Inspect public API diffs, release notes, versioning rules and downstream tests. The crucial distinction is: SemVer major versions communicate incompatible public API changes.
B:Inspect artifact store versioning, write policy, source SHA and release logs. This would address a different situation, such as: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. In the present case, the most directly relevant evidence is: Inspect public API diffs, release notes, versioning rules and downstream tests. The crucial distinction is: SemVer major versions communicate incompatible public API changes.
C:Inspect ACR manifests, tag mutation rights, deployment records and source mapping. 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 evidence is: Inspect public API diffs, release notes, versioning rules and downstream tests. The crucial distinction is: SemVer major versions communicate incompatible public API changes.
Question 462
A Microsoft DevOps team is addressing: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. Which TWO complementary actions should be taken? Select TWO answers.
- Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.
- Inspect library permissions, pipeline authorization, variable source and consumer identities.
- Inspect deployment jobs, environment references, resource checks and service connection access.
- Use a deployment job bound to the protected environment and enforce resource checks.
- Define explicit stage dependencies and artifact handoffs in the YAML pipeline.
Explanation
Correct Answers
C:Inspect deployment jobs, environment references, resource checks and service connection access. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use a deployment job bound to the protected environment and enforce resource checks. Together they address: Environment approvals apply only when pipelines use the protected deployment resource correctly.
D:Use a deployment job bound to the protected environment and enforce resource checks. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect deployment jobs, environment references, resource checks and service connection access. Together they address: Environment approvals apply only when pipelines use the protected deployment resource correctly.
Incorrect Answers
A:Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment. This concerns a different DevOps situation: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. This case instead requires both a targeted investigation (Inspect deployment jobs, environment references, resource checks and service connection access.) and a controlled change (Use a deployment job bound to the protected environment and enforce resource checks.).
B:Inspect library permissions, pipeline authorization, variable source and consumer identities. This concerns a different DevOps situation: A shared variable group contains production connection strings, and every development pipeline can read them. This case instead requires both a targeted investigation (Inspect deployment jobs, environment references, resource checks and service connection access.) and a controlled change (Use a deployment job bound to the protected environment and enforce resource checks.).
E:Define explicit stage dependencies and artifact handoffs in the YAML pipeline. This concerns a different DevOps situation: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. This case instead requires both a targeted investigation (Inspect deployment jobs, environment references, resource checks and service connection access.) and a controlled change (Use a deployment job bound to the protected environment and enforce resource checks.).
Question 463
Before changing the pipeline or service, engineers find: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. Which evidence should the engineer inspect FIRST?
- Inspect policy assignment parameters, effect, scope and compliance states.
- Inspect environment definitions, project catalog, role assignments and teardown process.
- Review image digest provenance, deployment parameters and environment history.
- Inspect existing VNet templates, module interfaces, policy results and configuration drift.
Explanation
Correct Answer
C:Review image digest provenance, deployment parameters and environment history. This directly checks the uncertain behavior or control before changing production. Infrastructure and application delivery need traceable version handoff without mutable assumptions. The resulting targeted action is: Pass verified immutable image identifiers through a controlled IaC deployment interface.
Incorrect Answers
A:Inspect policy assignment parameters, effect, scope and compliance states. This would address a different situation, such as: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. In the present case, the most directly relevant evidence is: Review image digest provenance, deployment parameters and environment history. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.
B:Inspect environment definitions, project catalog, role assignments and teardown process. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant evidence is: Review image digest provenance, deployment parameters and environment history. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.
D: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: Review image digest provenance, deployment parameters and environment history. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.
Question 464
After implementing the change, the team verifies: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. Which result would BEST demonstrate that the issue is corrected?
- A new test pull request is visible from its related Azure Boards work item.
- Repeated delivery of the same event results in one linked change ticket.
- A test breaking change appears in reviewed notes before publishing the library.
- A proposed architecture revision requires review and preserves earlier decision history.
Explanation
Correct Answer
C:A test breaking change appears in reviewed notes before publishing the library. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Generate draft release notes from structured commits and require review of breaking changes. Release documentation should reconcile source changes with versioning and consumer impact.
Incorrect Answers
A:A new test pull request is visible from its related Azure Boards work item. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant verification is: A test breaking change appears in reviewed notes before publishing the library. The crucial distinction is: Release documentation should reconcile source changes with versioning and consumer impact.
B:Repeated delivery of the same event results in one linked change ticket. 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 verification is: A test breaking change appears in reviewed notes before publishing the library. The crucial distinction is: Release documentation should reconcile source changes with versioning and consumer impact.
D:A proposed architecture revision requires review and preserves earlier decision history. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant verification is: A test breaking change appears in reviewed notes before publishing the library. The crucial distinction is: Release documentation should reconcile source changes with versioning and consumer impact.
Question 465
A Microsoft DevOps team is addressing: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. Which TWO complementary actions should be taken? Select TWO answers.
- Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.
- Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools.
- Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.
- Inspect dependsOn, output artifacts, stage conditions and run timelines.
- Inspect library permissions, pipeline authorization, variable source and consumer identities.
Explanation
Correct Answers
B:Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. Together they address: Agent placement should satisfy network access and security constraints without overprivilege.
C:Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools. Together they address: Agent placement should satisfy network access and security constraints without overprivilege.
Incorrect Answers
A:Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment. This concerns a different DevOps situation: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. This case instead requires both a targeted investigation (Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools.) and a controlled change (Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.).
D:Inspect dependsOn, output artifacts, stage conditions and run timelines. This concerns a different DevOps situation: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. This case instead requires both a targeted investigation (Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools.) and a controlled change (Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.).
E:Inspect library permissions, pipeline authorization, variable source and consumer identities. This concerns a different DevOps situation: A shared variable group contains production connection strings, and every development pipeline can read them. This case instead requires both a targeted investigation (Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools.) and a controlled change (Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.).
Question 466
Before changing the pipeline or service, engineers find: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. Which evidence should the engineer inspect FIRST?
- Compare duplicated YAML, referenced template versions, access rules and review practices.
- Inspect queue times, licensing capacity, job dependency graph and build duration.
- Inspect GitHub App installation, service connection, YAML PR settings and branch policy.
- Inspect library permissions, pipeline authorization, variable source and consumer identities.
Explanation
Correct Answer
B:Inspect queue times, licensing capacity, job dependency graph and build duration. This directly checks the uncertain behavior or control before changing production. Pipeline parallelism should match resource quotas and job critical paths. The resulting targeted action is: Optimize test partitions and concurrency to fit approved parallel job capacity.
Incorrect Answers
A:Compare duplicated YAML, referenced template versions, access rules and review practices. This would address a different situation, such as: Teams each copy a deployment YAML template and security fixes reach only some repositories. In the present case, the most directly relevant evidence is: Inspect queue times, licensing capacity, job dependency graph and build duration. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
C:Inspect GitHub App installation, service connection, YAML PR settings and branch policy. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant evidence is: Inspect queue times, licensing capacity, job dependency graph and build duration. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
D: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 queue times, licensing capacity, job dependency graph and build duration. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
Question 467
After implementing the change, the team verifies: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. Which result would BEST demonstrate that the issue is corrected?
- A deliberately overdue critical issue remains visible until independently resolved.
- Sample completed stories show realistic cycle times that match actual engineering work.
- A traced sample change reconciles to dashboard start and end timestamps.
- Payment release performance can be evaluated without being distorted by sandbox builds.
Explanation
Correct Answer
C:A traced sample change reconciles to dashboard start and end timestamps. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Calculate lead time for eligible service changes from commit to actual production deployment. DevOps metrics require precise event definitions and consistent populations.
Incorrect Answers
A:A deliberately overdue critical issue remains visible until independently resolved. This would address a different situation, such as: A security scorecard shows the total number of alerts but cannot identify overdue critical fixes. In the present case, the most directly relevant verification is: A traced sample change reconciles to dashboard start and end timestamps. The crucial distinction is: DevOps metrics require precise event definitions and consistent populations.
B:Sample completed stories show realistic cycle times that match actual engineering work. This would address a different situation, such as: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. In the present case, the most directly relevant verification is: A traced sample change reconciles to dashboard start and end timestamps. The crucial distinction is: DevOps metrics require precise event definitions and consistent populations.
D:Payment release performance can be evaluated without being distorted by sandbox builds. 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 verification is: A traced sample change reconciles to dashboard start and end timestamps. The crucial distinction is: DevOps metrics require precise event definitions and consistent populations.
Question 468
Before changing the pipeline or service, engineers find: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. Which evidence should the engineer inspect FIRST?
- Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes.
- Inspect request duration distribution, service cohorts, and p95/p99 KQL queries.
- Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.
- Inspect sign-in records, principal IDs, resource IDs, times and failure causes.
Explanation
Correct Answer
C:Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. This directly checks the uncertain behavior or control before changing production. Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network. The resulting targeted action is: Remediate the verified disk bottleneck and validate end-to-end service performance.
Incorrect Answers
A:Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes. 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 evidence is: Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. The crucial distinction is: Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network.
B:Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. 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 evidence is: Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. The crucial distinction is: Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network.
D:Inspect sign-in records, principal IDs, resource IDs, times and failure causes. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant evidence is: Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. The crucial distinction is: Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network.
Question 469
The DevOps team must resolve this situation: A large build spends most of its time serially running three independent test suites. Which engineering action is MOST appropriate?
- Use dependency-aware cache keys and safe restore fallback behavior.
- Remove token emission and enforce safe logging with secret scanning of pipeline output.
- Run independent tests in parallel within the approved concurrency and resource budget.
- Mirror or migrate required immutable package versions before switching consumers.
Explanation
Correct Answer
C:Run independent tests in parallel within the approved concurrency and resource budget. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The same full test suite finishes faster without skipped checks. Pipeline job dependencies should parallelize independent work when capacity permits.
Incorrect Answers
A:Use dependency-aware cache keys and safe restore fallback behavior. This would address a different situation, such as: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. In the present case, the most directly relevant engineering action is: Run independent tests in parallel within the approved concurrency and resource budget. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
B:Remove token emission and enforce safe logging with secret scanning of pipeline output. This would address a different situation, such as: Verbose diagnostic logging starts printing deployment tokens after a new task version update. In the present case, the most directly relevant engineering action is: Run independent tests in parallel within the approved concurrency and resource budget. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
D:Mirror or migrate required immutable package versions before switching consumers. 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 engineering action is: Run independent tests in parallel within the approved concurrency and resource budget. The crucial distinction is: Pipeline job dependencies should parallelize independent work when capacity permits.
Question 470
An engineering design review identifies: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. Which shortcut should the team MOST specifically avoid for this case?
- Grant all developers Owner of production subscriptions to speed environment creation.
- Rely on a resource tag named secure as proof of OS baseline enforcement.
- Delete the provider lockfile in every automated run.
- Obfuscate passwords with Base64 inside a public parameter file.
Explanation
Correct Answer
B:Rely on a resource tag named secure as proof of OS baseline enforcement. This shortcut directly undermines the stated control or workflow. A safer action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. Explanation: Guest desired-state policy should be measurable and enforceable across managed VMs.
Incorrect Answers
A:Grant all developers Owner of production subscriptions to speed environment creation. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant unsafe shortcut is: Rely on a resource tag named secure as proof of OS baseline enforcement. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
C:Delete the provider lockfile in every automated run. This would address a different situation, such as: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. In the present case, the most directly relevant unsafe shortcut is: Rely on a resource tag named secure as proof of OS baseline enforcement. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
D:Obfuscate passwords with Base64 inside a public parameter file. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant unsafe shortcut is: Rely on a resource tag named secure as proof of OS baseline enforcement. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.