Microsoft AZ-400 Practice Test 43
Question 420
An Azure DevOps engineering team evaluates this condition: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. Which DevOps principle BEST explains the underlying weakness?
- Desired state governance needs verified registration, pull frequency and compliance feedback.
- Policy exemptions need justified owner approval, scope and expiration.
- IaC builds need controlled provider requirements and lockfile provenance.
- Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
Explanation
Correct Answer
B:Policy exemptions need justified owner approval, scope and expiration. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect policy assignment, exemption resource metadata, business rationale and expiry. An appropriate controlled response is: Create a governed scoped exemption with an owner and expiry or redesign for compliance.
Incorrect Answers
A:Desired state governance needs verified registration, pull frequency and compliance feedback. This would address a different situation, such as: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. In the present case, the most directly relevant principle is: Policy exemptions need justified owner approval, scope and expiration. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.
C:IaC builds need controlled provider requirements and lockfile provenance. 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 principle is: Policy exemptions need justified owner approval, scope and expiration. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.
D:Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. 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 principle is: Policy exemptions need justified owner approval, scope and expiration. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.
Question 421
An engineering design review identifies: A Bicep pipeline deploys wildcard role assignments despite a known rule requiring narrowly scoped access. Which shortcut should the team MOST specifically avoid for this case?
- Obfuscate passwords with Base64 inside a public parameter file.
- Grant all developers Owner of production subscriptions to speed environment creation.
- Delete the provider lockfile in every automated run.
- Suppress every linter warning in production modules rather than fix dangerous roles.
Explanation
Correct Answer
D:Suppress every linter warning in production modules rather than fix dangerous roles. This shortcut directly undermines the stated control or workflow. A safer action is: Run Bicep validation and reviewed security rules with blocking policy for critical findings. Explanation: IaC static analysis should detect risky patterns before production deployment.
Incorrect Answers
A: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: Suppress every linter warning in production modules rather than fix dangerous roles. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.
B: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: Suppress every linter warning in production modules rather than fix dangerous roles. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.
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: Suppress every linter warning in production modules rather than fix dangerous roles. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.
Question 422
Before changing the pipeline or service, engineers find: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. Which evidence should the engineer inspect FIRST?
- Inspect repository runner group rules, fork workflow triggers and credential persistence.
- Inspect queue times, licensing capacity, job dependency graph and build duration.
- Review stage condition expressions, dependency status and test results.
- Inspect GitHub App installation, service connection, YAML PR settings and branch policy.
Explanation
Correct Answer
A:Inspect repository runner group rules, fork workflow triggers and credential persistence. This directly checks the uncertain behavior or control before changing production. Self-hosted runners require trust boundaries and workload-specific isolation. The resulting targeted action is: Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs.
Incorrect Answers
B:Inspect queue times, licensing capacity, job dependency graph and build duration. This would address a different situation, such as: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. In the present case, the most directly relevant evidence is: Inspect repository runner group rules, fork workflow triggers and credential persistence. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.
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 repository runner group rules, fork workflow triggers and credential persistence. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.
D: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 repository runner group rules, fork workflow triggers and credential persistence. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.
Question 423
After implementing the change, the team verifies: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. Which result would BEST demonstrate that the issue is corrected?
- A known critical test image is blocked while a remediated digest deploys.
- An exploitable high-risk finding is escalated despite a high volume of minor warnings.
- The known authorization weakness is identified despite a clean base-image scan.
- A harmless test token pattern triggers the expected prevention or review workflow.
Explanation
Correct Answer
A:A known critical test image is blocked while a remediated digest deploys. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Integrate image vulnerability scanning and a reviewed enforcement gate before production. Container security assessment should map findings to immutable images and release risk.
Incorrect Answers
B:An exploitable high-risk finding is escalated despite a high volume of minor warnings. This would address a different situation, such as: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. In the present case, the most directly relevant verification is: A known critical test image is blocked while a remediated digest deploys. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.
C:The known authorization weakness is identified despite a clean base-image scan. This would address a different situation, such as: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. In the present case, the most directly relevant verification is: A known critical test image is blocked while a remediated digest deploys. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.
D:A harmless test token pattern triggers the expected prevention or review 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 verification is: A known critical test image is blocked while a remediated digest deploys. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.
Question 424
A Microsoft DevOps team is addressing: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect image digests, scan results, base packages and policy thresholds.
- Enable Dependabot alerts and governed security updates with CI checks.
- Use risk-based triage with owners, remediation SLAs and documented waivers.
- Inspect Defender for Cloud DevOps connector, authorization and repository inventory.
- Integrate image vulnerability scanning and a reviewed enforcement gate before production.
Explanation
Correct Answers
A:Inspect image digests, scan results, base packages and policy thresholds. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Integrate image vulnerability scanning and a reviewed enforcement gate before production. Together they address: Container security assessment should map findings to immutable images and release risk.
E:Integrate image vulnerability scanning and a reviewed enforcement gate before production. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect image digests, scan results, base packages and policy thresholds. Together they address: Container security assessment should map findings to immutable images and release risk.
Incorrect Answers
B:Enable Dependabot alerts and governed security updates with CI checks. This concerns a different DevOps situation: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. This case instead requires both a targeted investigation (Inspect image digests, scan results, base packages and policy thresholds.) and a controlled change (Integrate image vulnerability scanning and a reviewed enforcement gate before production.).
C:Use risk-based triage with owners, remediation SLAs and documented waivers. This concerns a different DevOps situation: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. This case instead requires both a targeted investigation (Inspect image digests, scan results, base packages and policy thresholds.) and a controlled change (Integrate image vulnerability scanning and a reviewed enforcement gate before production.).
D:Inspect Defender for Cloud DevOps connector, authorization and repository inventory. This concerns a different DevOps situation: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. This case instead requires both a targeted investigation (Inspect image digests, scan results, base packages and policy thresholds.) and a controlled change (Integrate image vulnerability scanning and a reviewed enforcement gate before production.).
Question 425
A Microsoft DevOps team is addressing: A half-finished payment feature accidentally activates immediately when its code merges into main. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect Azure App Configuration flags, filters, defaults and access rights.
- Inspect slot configuration, sticky settings, warmup endpoints and swap history.
- Define a limited hotfix workflow with priority testing, accountable approval and later backport.
- Inspect load balancer deregistration delay, pod termination and request lifetimes.
- Deploy behind a disabled flag and enable for an approved targeted cohort after validation.
Explanation
Correct Answers
A:Inspect Azure App Configuration flags, filters, defaults and access rights. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Deploy behind a disabled flag and enable for an approved targeted cohort after validation. Together they address: Feature flag control separates deployment from governed feature activation.
E:Deploy behind a disabled flag and enable for an approved targeted cohort after validation. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Azure App Configuration flags, filters, defaults and access rights. Together they address: Feature flag control separates deployment from governed feature activation.
Incorrect Answers
B:Inspect slot configuration, sticky settings, warmup endpoints and swap history. This concerns a different DevOps situation: A web application must deploy without interruption, but direct production updates restart every active instance. This case instead requires both a targeted investigation (Inspect Azure App Configuration flags, filters, defaults and access rights.) and a controlled change (Deploy behind a disabled flag and enable for an approved targeted cohort after validation.).
C:Define a limited hotfix workflow with priority testing, accountable approval and later backport. This concerns a different DevOps situation: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. This case instead requires both a targeted investigation (Inspect Azure App Configuration flags, filters, defaults and access rights.) and a controlled change (Deploy behind a disabled flag and enable for an approved targeted cohort after validation.).
D:Inspect load balancer deregistration delay, pod termination and request lifetimes. This concerns a different DevOps situation: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. This case instead requires both a targeted investigation (Inspect Azure App Configuration flags, filters, defaults and access rights.) and a controlled change (Deploy behind a disabled flag and enable for an approved targeted cohort after validation.).
Question 426
A Microsoft DevOps team is addressing: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. Which TWO complementary actions should be taken? Select TWO answers.
- Review pipeline execution settings, resource locks and deployment timestamps.
- Migrate the service connection to supported workload identity federation with scoped access.
- Move common steps into approved reusable templates with pinned or governed references.
- Inspect endpoint authorization, service principal federation subject and Azure RBAC scope.
- Inspect workflow permission scopes, reusable call contracts and job operations.
Explanation
Correct Answers
B:Migrate the service connection to supported workload identity federation with scoped access. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. Together they address: Azure service connections can use workload identity federation instead of expiring shared secrets.
D:Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Migrate the service connection to supported workload identity federation with scoped access. Together they address: Azure service connections can use workload identity federation instead of expiring shared secrets.
Incorrect Answers
A:Review pipeline execution settings, resource locks and deployment timestamps. This concerns a different DevOps situation: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. This case instead requires both a targeted investigation (Inspect endpoint authorization, service principal federation subject and Azure RBAC scope.) and a controlled change (Migrate the service connection to supported workload identity federation with scoped access.).
C:Move common steps into approved reusable templates with pinned or governed references. This concerns a different DevOps situation: Teams each copy a deployment YAML template and security fixes reach only some repositories. This case instead requires both a targeted investigation (Inspect endpoint authorization, service principal federation subject and Azure RBAC scope.) and a controlled change (Migrate the service connection to supported workload identity federation with scoped access.).
E:Inspect workflow permission scopes, reusable call contracts and job operations. This concerns a different DevOps situation: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. This case instead requires both a targeted investigation (Inspect endpoint authorization, service principal federation subject and Azure RBAC scope.) and a controlled change (Migrate the service connection to supported workload identity federation with scoped access.).
Question 427
An Azure DevOps engineering team evaluates this condition: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. Which DevOps principle BEST explains the underlying weakness?
- Secret scanning should detect exposed credentials and trigger prompt containment.
- Security workflows require protected configuration and evaluation from trusted context.
- Dependency monitoring should detect vulnerable package versions with actionable updates.
- Automated security/compliance scanning should retain dependency provenance and approved package sources.
Explanation
Correct Answer
B:Security workflows require protected configuration and evaluation from trusted context. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect workflow PR permissions, required checks and protected branch policy. An appropriate controlled response is: Enforce independently controlled scanning status and immutable required checks on protected branches.
Incorrect Answers
A:Secret scanning should detect exposed credentials and trigger prompt containment. 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 principle is: Security workflows require protected configuration and evaluation from trusted context. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.
C:Dependency monitoring should detect vulnerable package versions with actionable updates. This would address a different situation, such as: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. In the present case, the most directly relevant principle is: Security workflows require protected configuration and evaluation from trusted context. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.
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 workflows require protected configuration and evaluation from trusted context. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.
Question 428
An Azure DevOps engineering team evaluates this condition: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. Which DevOps principle BEST explains the underlying weakness?
- Transitive dependency resolution must be reproducible and security-reviewed.
- Artifact integrity requires immutable identity and reliable build-to-release linkage.
- Cross-project feeds require authorized build-service identities and scope settings.
- Date-based versions need an unambiguous unique revision component and provenance.
Explanation
Correct Answer
D:Date-based versions need an unambiguous unique revision component and provenance. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect build timestamps, package versions, artifact digests and update metadata. An appropriate controlled response is: Add a consistent unique build identifier to the approved CalVer scheme.
Incorrect Answers
A:Transitive dependency resolution must be reproducible and security-reviewed. This would address a different situation, such as: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. In the present case, the most directly relevant principle is: Date-based versions need an unambiguous unique revision component and provenance. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.
B:Artifact integrity requires immutable identity and reliable build-to-release linkage. 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 principle is: Date-based versions need an unambiguous unique revision component and provenance. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.
C:Cross-project feeds require authorized build-service identities and scope settings. 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 principle is: Date-based versions need an unambiguous unique revision component and provenance. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.
Question 429
The DevOps team must resolve this situation: A Bicep pipeline deploys wildcard role assignments despite a known rule requiring narrowly scoped access. Which engineering action is MOST appropriate?
- Use secured remote state with least-privilege identity and locking support.
- Use a safe scoped deployment strategy with reviewed change previews and deletion protections.
- Run Bicep validation and reviewed security rules with blocking policy for critical findings.
- Use deterministic names and scope-aware existing resource references.
Explanation
Correct Answer
C:Run Bicep validation and reviewed security rules with blocking policy for critical findings. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A deliberately broad assignment fails the CI gate before deployment. IaC static analysis should detect risky patterns before production deployment.
Incorrect Answers
A:Use secured remote state with least-privilege identity and locking support. This would address a different situation, such as: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. In the present case, the most directly relevant engineering action is: Run Bicep validation and reviewed security rules with blocking policy for critical findings. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.
B:Use a safe scoped deployment strategy with reviewed change previews and deletion protections. 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 engineering action is: Run Bicep validation and reviewed security rules with blocking policy for critical findings. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.
D:Use deterministic names and scope-aware existing resource references. This would address a different situation, such as: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. In the present case, the most directly relevant engineering action is: Run Bicep validation and reviewed security rules with blocking policy for critical findings. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.
Question 430
A Microsoft DevOps team is addressing: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. Which TWO complementary actions should be taken? Select TWO answers.
- Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.
- Review service classifications, deployment events, reliability targets and cohort selection.
- Inspect vulnerability discovery times, severity classifications, exception approvals and closure evidence.
- Define recovery completion using service-level restoration and compute the metric accordingly.
- Review incident start, synthetic transaction recovery, customer impact and closure events.
Explanation
Correct Answers
D:Define recovery completion using service-level restoration and compute the metric accordingly. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review incident start, synthetic transaction recovery, customer impact and closure events. Together they address: Time to restore service should reflect verified business-service recovery.
E:Review incident start, synthetic transaction recovery, customer impact and closure events. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Define recovery completion using service-level restoration and compute the metric accordingly. Together they address: Time to restore service should reflect verified business-service recovery.
Incorrect Answers
A:Review pipeline test publications, excluded suites, flaky test logs and quality thresholds. This concerns a different DevOps situation: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. This case instead requires both a targeted investigation (Review incident start, synthetic transaction recovery, customer impact and closure events.) and a controlled change (Define recovery completion using service-level restoration and compute the metric accordingly.).
B:Review service classifications, deployment events, reliability targets and cohort selection. This concerns a different DevOps situation: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. This case instead requires both a targeted investigation (Review incident start, synthetic transaction recovery, customer impact and closure events.) and a controlled change (Define recovery completion using service-level restoration and compute the metric accordingly.).
C:Inspect vulnerability discovery times, severity classifications, exception approvals and closure evidence. This concerns a different DevOps situation: A security scorecard shows the total number of alerts but cannot identify overdue critical fixes. This case instead requires both a targeted investigation (Review incident start, synthetic transaction recovery, customer impact and closure events.) and a controlled change (Define recovery completion using service-level restoration and compute the metric accordingly.).