Microsoft AZ-400 Practice Test 88
Question 870
An Azure DevOps engineering team evaluates this condition: Engineers create temporary load-test environments manually but never remove costly public IP addresses. Which DevOps principle BEST explains the underlying weakness?
- Infrastructure templates should codify consistent application platform controls.
- Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
- Ephemeral environments need automated lifecycle, cost and access controls.
- Self-service environment catalogs can standardize provisioning and lifecycle governance.
Explanation
Correct Answer
C:Ephemeral environments need automated lifecycle, cost and access controls. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect environment provisioning logs, resource tags, TTL and cleanup policies. An appropriate controlled response is: Provision short-lived sandbox environments through approved IaC with automatic expiration.
Incorrect Answers
A:Infrastructure templates should codify consistent application platform controls. This would address a different situation, such as: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. In the present case, the most directly relevant principle is: Ephemeral environments need automated lifecycle, cost and access controls. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.
B: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: Ephemeral environments need automated lifecycle, cost and access controls. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.
D:Self-service environment catalogs can standardize provisioning and lifecycle governance. 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 principle is: Ephemeral environments need automated lifecycle, cost and access controls. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.
Question 871
Before changing the pipeline or service, engineers find: A binary distribution uses open-source dependencies but its release process does not check license obligations. Which evidence should the engineer inspect FIRST?
- Inspect workflow PR permissions, required checks and protected branch policy.
- Review SBOM, open-source license records, distribution type and exception approvals.
- Inspect repository secret-scanning alerts, token audit logs and response workflow.
- Inspect alert severity, exploitability, exposure, service criticality and exceptions.
Explanation
Correct Answer
B:Review SBOM, open-source license records, distribution type and exception approvals. This directly checks the uncertain behavior or control before changing production. Compliance scanning should identify licensing constraints before external software distribution. The resulting targeted action is: Add software composition/license policy checks and reviewed exceptions to CI.
Incorrect Answers
A: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: Review SBOM, open-source license records, distribution type and exception approvals. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.
C: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: Review SBOM, open-source license records, distribution type and exception approvals. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.
D:Inspect alert severity, exploitability, exposure, service criticality and exceptions. 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 evidence is: Review SBOM, open-source license records, distribution type and exception approvals. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.
Question 872
Before changing the pipeline or service, engineers find: An application release references a database secret version that was deleted during automatic rotation, causing downtime. Which evidence should the engineer inspect FIRST?
- Inspect blob access, SAS lifetime, logs and secret-bearing file handling.
- Review workflow job ordering, environment references, OIDC identity claims and Azure role scope.
- Inspect YAML variables, task output, Key Vault references and secret access scope.
- Inspect Key Vault version stages, runtime cache, rotation timeline and access policy.
Explanation
Correct Answer
D:Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. This directly checks the uncertain behavior or control before changing production. Secret rotation must coordinate client update, version retention and recovery. The resulting targeted action is: Adopt a tested version-management and rotation workflow with rollback compatibility.
Incorrect Answers
A:Inspect blob access, SAS lifetime, logs and secret-bearing file handling. This would address a different situation, such as: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. In the present case, the most directly relevant evidence is: Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.
B:Review workflow job ordering, environment references, OIDC identity claims and Azure role scope. This would address a different situation, such as: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. In the present case, the most directly relevant evidence is: Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.
C:Inspect YAML variables, task output, Key Vault references and secret access scope. This would address a different situation, such as: A pipeline prints a database password stored in a plain YAML variable during environment deployment. In the present case, the most directly relevant evidence is: Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.
Question 873
Before changing the pipeline or service, engineers find: A release manifest references an ACR latest tag that was replaced after QA approval. Which evidence should the engineer inspect FIRST?
- Review flag filter configuration, client context, expected cohorts and telemetry.
- Inspect load balancer deregistration delay, pod termination and request lifetimes.
- Inspect Key Vault references, version transitions, rotation timing and runtime caches.
- Inspect ACR digest, release manifest, build provenance and tag permissions.
Explanation
Correct Answer
D:Inspect ACR digest, release manifest, build provenance and tag permissions. This directly checks the uncertain behavior or control before changing production. Deployments should reference the exact verified image digest or protected immutable tag. The resulting targeted action is: Pin the approved image digest in deployment configuration and retain rollback versions.
Incorrect Answers
A:Review flag filter configuration, client context, expected cohorts and telemetry. 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 evidence is: Inspect ACR digest, release manifest, build provenance and tag permissions. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
B:Inspect load balancer deregistration delay, pod termination and request lifetimes. This would address a different situation, such as: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. In the present case, the most directly relevant evidence is: Inspect ACR digest, release manifest, build provenance and tag permissions. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
C:Inspect Key Vault references, version transitions, rotation timing and runtime caches. 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 evidence is: Inspect ACR digest, release manifest, build provenance and tag permissions. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
Question 874
A Microsoft DevOps team is addressing: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. Which TWO complementary actions should be taken? Select TWO answers.
- Restrict force pushes on shared branches and use approved non-destructive integration.
- Inspect merge cadence, branch age, conflict history and required checks.
- Compare branch naming, workflow filters, release tags and production deployment records.
- Define clear branch purposes and deploy from approved immutable tagged or hashed revisions.
- Integrate incomplete code safely behind governed feature flags and short-lived branches.
Explanation
Correct Answers
C:Compare branch naming, workflow filters, release tags and production deployment records. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Define clear branch purposes and deploy from approved immutable tagged or hashed revisions. Together they address: Branch conventions and immutable release references should uniquely identify deployable versions.
D:Define clear branch purposes and deploy from approved immutable tagged or hashed revisions. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare branch naming, workflow filters, release tags and production deployment records. Together they address: Branch conventions and immutable release references should uniquely identify deployable versions.
Incorrect Answers
A:Restrict force pushes on shared branches and use approved non-destructive integration. This concerns a different DevOps situation: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. This case instead requires both a targeted investigation (Compare branch naming, workflow filters, release tags and production deployment records.) and a controlled change (Define clear branch purposes and deploy from approved immutable tagged or hashed revisions.).
B:Inspect merge cadence, branch age, conflict history and required checks. This concerns a different DevOps situation: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. This case instead requires both a targeted investigation (Compare branch naming, workflow filters, release tags and production deployment records.) and a controlled change (Define clear branch purposes and deploy from approved immutable tagged or hashed revisions.).
E:Integrate incomplete code safely behind governed feature flags and short-lived branches. This concerns a different DevOps situation: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. This case instead requires both a targeted investigation (Compare branch naming, workflow filters, release tags and production deployment records.) and a controlled change (Define clear branch purposes and deploy from approved immutable tagged or hashed revisions.).
Question 875
An Azure DevOps engineering team evaluates this condition: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. Which DevOps principle BEST explains the underlying weakness?
- Code scanning should detect relevant source vulnerabilities before release.
- DevOps security posture can be integrated into centralized cloud risk monitoring.
- Dependency monitoring should detect vulnerable package versions with actionable updates.
- Secret scanning should detect exposed credentials and trigger prompt containment.
Explanation
Correct Answer
B:DevOps security posture can be integrated into centralized cloud risk monitoring. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Defender for Cloud DevOps connector, authorization and repository inventory. An appropriate controlled response is: Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security.
Incorrect Answers
A:Code scanning should detect relevant source vulnerabilities before release. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant principle is: DevOps security posture can be integrated into centralized cloud risk monitoring. The crucial distinction is: DevOps security posture can be integrated into centralized cloud risk monitoring.
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: DevOps security posture can be integrated into centralized cloud risk monitoring. The crucial distinction is: DevOps security posture can be integrated into centralized cloud risk monitoring.
D: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: DevOps security posture can be integrated into centralized cloud risk monitoring. The crucial distinction is: DevOps security posture can be integrated into centralized cloud risk monitoring.
Question 876
Before changing the pipeline or service, engineers find: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. Which evidence should the engineer inspect FIRST?
- Inspect image digests, scan results, base packages and policy thresholds.
- Inspect workflow PR permissions, required checks and protected branch policy.
- Inspect lockfile changes, package registry source, published checksums and CI scan reports.
- Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts.
Explanation
Correct Answer
D:Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts. This directly checks the uncertain behavior or control before changing production. Security capability licensing does not prove scans run or findings are reviewed. The resulting targeted action is: Enable supported secret, dependency and code scanning for target Azure Repos repositories.
Incorrect Answers
A:Inspect image digests, scan results, base packages and policy thresholds. This would address a different situation, such as: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. In the present case, the most directly relevant evidence is: Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.
B: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 Azure DevOps Advanced Security settings, repository enablement and security alerts. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.
C: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 Azure DevOps Advanced Security settings, repository enablement and security alerts. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.
Question 877
After implementing the change, the team verifies: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. Which result would BEST demonstrate that the issue is corrected?
- A simulated new release serves traffic without unplanned outage and rolls back safely.
- An unintended destroy action blocks execution until authorized disposition.
- A rotation rehearsal preserves authorization and active service availability.
- A first-ring failure prevents later cohorts from receiving the release.
Explanation
Correct Answer
D:A first-ring failure prevents later cohorts from receiving the release. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Implement staged deployment rings with explicit gates and pause criteria. Ring deployment sequences exposure through controlled representative cohorts.
Incorrect Answers
A:A simulated new release serves traffic without unplanned outage and rolls back safely. This would address a different situation, such as: A web application must deploy without interruption, but direct production updates restart every active instance. In the present case, the most directly relevant verification is: A first-ring failure prevents later cohorts from receiving the release. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.
B:An unintended destroy action blocks execution until authorized disposition. This would address a different situation, such as: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. In the present case, the most directly relevant verification is: A first-ring failure prevents later cohorts from receiving the release. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.
C: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 first-ring failure prevents later cohorts from receiving the release. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.
Question 878
A Microsoft DevOps team is addressing: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. Which TWO complementary actions should be taken? Select TWO answers.
- Migrate release steps to reviewed YAML with protected environment checks and verified parity.
- Configure differentiated retention for required pipelines and audit artifacts.
- Review service connection mode, secret expiration, Azure RBAC and trust configuration.
- Migrate to workload identity federation or controlled rotation with alerting.
- Inspect retry counts, per-test historical failure rates, queue and execution time.
Explanation
Correct Answers
C:Review service connection mode, secret expiration, Azure RBAC and trust configuration. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Migrate to workload identity federation or controlled rotation with alerting. Together they address: Deployment identities should support safe rotation or federation without release downtime.
D:Migrate to workload identity federation or controlled rotation with alerting. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review service connection mode, secret expiration, Azure RBAC and trust configuration. Together they address: Deployment identities should support safe rotation or federation without release downtime.
Incorrect Answers
A:Migrate release steps to reviewed YAML with protected environment checks and verified parity. This concerns a different DevOps situation: A legacy classic Azure Release pipeline hides deployment steps in the UI and new teams cannot peer-review changes. This case instead requires both a targeted investigation (Review service connection mode, secret expiration, Azure RBAC and trust configuration.) and a controlled change (Migrate to workload identity federation or controlled rotation with alerting.).
B:Configure differentiated retention for required pipelines and audit artifacts. This concerns a different DevOps situation: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. This case instead requires both a targeted investigation (Review service connection mode, secret expiration, Azure RBAC and trust configuration.) and a controlled change (Migrate to workload identity federation or controlled rotation with alerting.).
E:Inspect retry counts, per-test historical failure rates, queue and execution time. This concerns a different DevOps situation: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. This case instead requires both a targeted investigation (Review service connection mode, secret expiration, Azure RBAC and trust configuration.) and a controlled change (Migrate to workload identity federation or controlled rotation with alerting.).
Question 879
A Microsoft DevOps team is addressing: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect token scope, audit events, bot responsibilities and repository installation.
- Inspect service connection credentials, Entra federated subject, role assignments and usage logs.
- Use a GitHub App with minimal repository permissions for the workflow.
- Inspect project memberships, access level, team role and pipeline permissions.
- Inspect organization membership, outside collaborator assignments and repository visibility.
Explanation
Correct Answers
A:Inspect token scope, audit events, bot responsibilities and repository installation. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use a GitHub App with minimal repository permissions for the workflow. Together they address: App-based automation can use narrow installation permissions and accountable identity.
C:Use a GitHub App with minimal repository permissions for the workflow. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect token scope, audit events, bot responsibilities and repository installation. Together they address: App-based automation can use narrow installation permissions and accountable identity.
Incorrect Answers
B:Inspect service connection credentials, Entra federated subject, role assignments and usage logs. This concerns a different DevOps situation: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. This case instead requires both a targeted investigation (Inspect token scope, audit events, bot responsibilities and repository installation.) and a controlled change (Use a GitHub App with minimal repository permissions for the workflow.).
D:Inspect project memberships, access level, team role and pipeline permissions. This concerns a different DevOps situation: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. This case instead requires both a targeted investigation (Inspect token scope, audit events, bot responsibilities and repository installation.) and a controlled change (Use a GitHub App with minimal repository permissions for the workflow.).
E:Inspect organization membership, outside collaborator assignments and repository visibility. This concerns a different DevOps situation: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. This case instead requires both a targeted investigation (Inspect token scope, audit events, bot responsibilities and repository installation.) and a controlled change (Use a GitHub App with minimal repository permissions for the workflow.).
Question 880
An Azure DevOps engineering team evaluates this condition: A refactor changes a storage account name while the pipeline applies it directly to production. Which DevOps principle BEST explains the underlying weakness?
- Infrastructure and application delivery need traceable version handoff without mutable assumptions.
- Declarative deployments should converge to consistent named resources across repeated runs.
- IaC builds need controlled provider requirements and lockfile provenance.
- Stateful IaC replacements require impact review and a migration plan.
Explanation
Correct Answer
D:Stateful IaC replacements require impact review and a migration plan. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. An appropriate controlled response is: Require reviewed what-if output and controlled data-preserving migration before deployment.
Incorrect Answers
A:Infrastructure and application delivery need traceable version handoff without mutable assumptions. This would address a different situation, such as: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. In the present case, the most directly relevant principle is: Stateful IaC replacements require impact review and a migration plan. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
B:Declarative deployments should converge to consistent named resources across repeated runs. 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 principle is: Stateful IaC replacements require impact review and a migration plan. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
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: Stateful IaC replacements require impact review and a migration plan. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.