Microsoft AZ-400 Practice Test 23
Question 220
Before changing the pipeline or service, engineers find: AKS pods restart frequently but the team captures only the last running pod's console output. Which evidence should the engineer inspect FIRST?
- Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration.
- Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.
- Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.
- Inspect GitHub Actions run history, job timing, failure causes and usage trends.
Explanation
Correct Answer
C:Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. This directly checks the uncertain behavior or control before changing production. Container observability should preserve workload logs and restart context centrally. The resulting targeted action is: Enable supported AKS container telemetry with resource labels and actionable alerts.
Incorrect Answers
A:Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. This would address a different situation, such as: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. In the present case, the most directly relevant evidence is: Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.
B:Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. This would address a different situation, such as: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. In the present case, the most directly relevant evidence is: Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.
D:Inspect GitHub Actions run history, job timing, failure causes and usage trends. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant evidence is: Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.
Question 221
Before changing the pipeline or service, engineers find: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. Which evidence should the engineer inspect FIRST?
- Inspect Azure App Configuration flags, filters, defaults and access rights.
- Inspect generated plan actions, state lock, resource dependencies and change policy.
- Inspect targeting rules, conversion events, experiment durations and uncontrolled changes.
- Inspect ACR digest, release manifest, build provenance and tag permissions.
Explanation
Correct Answer
B:Inspect generated plan actions, state lock, resource dependencies and change policy. This directly checks the uncertain behavior or control before changing production. Infrastructure deployment should preview and approve material changes before applying. The resulting targeted action is: Publish a reviewed Terraform plan and apply the exact approved plan under controls.
Incorrect Answers
A:Inspect Azure App Configuration flags, filters, defaults and access rights. This would address a different situation, such as: A half-finished payment feature accidentally activates immediately when its code merges into main. In the present case, the most directly relevant evidence is: Inspect generated plan actions, state lock, resource dependencies and change policy. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
C:Inspect targeting rules, conversion events, experiment durations and uncontrolled changes. This would address a different situation, such as: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. In the present case, the most directly relevant evidence is: Inspect generated plan actions, state lock, resource dependencies and change policy. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
D:Inspect ACR digest, release manifest, build provenance and tag permissions. This would address a different situation, such as: A release manifest references an ACR latest tag that was replaced after QA approval. In the present case, the most directly relevant evidence is: Inspect generated plan actions, state lock, resource dependencies and change policy. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
Question 222
After implementing the change, the team verifies: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. Which result would BEST demonstrate that the issue is corrected?
- A code author cannot self-approve a restricted deployment without a qualified reviewer.
- The approved pipeline deploys after the static client secret is removed.
- The app accesses its authorized container after the account key is revoked.
- The app posts required status comments but cannot access unauthorized repositories.
Explanation
Correct Answer
A:A code author cannot self-approve a restricted deployment without a qualified reviewer. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Separate pipeline authors from release-approval administrators and audit exceptions. Administrative and approval authority should be segregated for sensitive deployments.
Incorrect Answers
B:The approved pipeline deploys after the static client secret is removed. This would address a different situation, such as: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. In the present case, the most directly relevant verification is: A code author cannot self-approve a restricted deployment without a qualified reviewer. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
C:The app accesses its authorized container after the account key is revoked. 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 verification is: A code author cannot self-approve a restricted deployment without a qualified reviewer. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
D:The app posts required status comments but cannot access unauthorized repositories. This would address a different situation, such as: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. In the present case, the most directly relevant verification is: A code author cannot self-approve a restricted deployment without a qualified reviewer. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
Question 223
A Microsoft DevOps team is addressing: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. Which TWO complementary actions should be taken? Select TWO answers.
- Protect release tags and record immutable commit or artifact digests in release manifests.
- Inspect repository history, leaked secret versions, access logs and rotation status.
- Publish common code as a reviewed versioned package or managed shared component.
- Archive the repository or lock write access with audited exception handling.
- Review code duplication, package provenance, semver constraints and release history.
Explanation
Correct Answers
C:Publish common code as a reviewed versioned package or managed shared component. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review code duplication, package provenance, semver constraints and release history. Together they address: Cross-repository reuse needs an explicit versioned dependency strategy.
E:Review code duplication, package provenance, semver constraints and release history. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Publish common code as a reviewed versioned package or managed shared component. Together they address: Cross-repository reuse needs an explicit versioned dependency strategy.
Incorrect Answers
A:Protect release tags and record immutable commit or artifact digests in release manifests. This concerns a different DevOps situation: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. This case instead requires both a targeted investigation (Review code duplication, package provenance, semver constraints and release history.) and a controlled change (Publish common code as a reviewed versioned package or managed shared component.).
B:Inspect repository history, leaked secret versions, access logs and rotation status. This concerns a different DevOps situation: A database credential is removed from the latest Git commit but remains visible in old revisions. This case instead requires both a targeted investigation (Review code duplication, package provenance, semver constraints and release history.) and a controlled change (Publish common code as a reviewed versioned package or managed shared component.).
D:Archive the repository or lock write access with audited exception handling. This concerns a different DevOps situation: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. This case instead requires both a targeted investigation (Review code duplication, package provenance, semver constraints and release history.) and a controlled change (Publish common code as a reviewed versioned package or managed shared component.).
Question 224
Before changing the pipeline or service, engineers find: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. Which evidence should the engineer inspect FIRST?
- Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
- Review workflow job ordering, environment references, OIDC identity claims and Azure role scope.
- Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles.
- Inspect Key Vault version stages, runtime cache, rotation timeline and access policy.
Explanation
Correct Answer
B:Review workflow job ordering, environment references, OIDC identity claims and Azure role scope. This directly checks the uncertain behavior or control before changing production. Credential issuance should occur only after the protected environment gate and trust checks. The resulting targeted action is: Move cloud credential issuance into the guarded deployment job with scoped federation.
Incorrect Answers
A:Review certificate exposure, pipeline YAML, secure-file permissions and task usage. This would address a different situation, such as: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. In the present case, the most directly relevant evidence is: Review workflow job ordering, environment references, OIDC identity claims and Azure role scope. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.
C:Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. This would address a different situation, such as: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. In the present case, the most directly relevant evidence is: Review workflow job ordering, environment references, OIDC identity claims and Azure role scope. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.
D:Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. This would address a different situation, such as: An application release references a database secret version that was deleted during automatic rotation, causing downtime. In the present case, the most directly relevant evidence is: Review workflow job ordering, environment references, OIDC identity claims and Azure role scope. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.
Question 225
After implementing the change, the team verifies: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. Which result would BEST demonstrate that the issue is corrected?
- A test run reduces queue time without sacrificing build isolation.
- Changing the dependency lockfile triggers a new compatible cache.
- A historical release can be reconstructed within the mandated retention period.
- A clean replacement hosted image reproduces the expected build.
Explanation
Correct Answer
B:Changing the dependency lockfile triggers a new compatible cache. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use dependency-aware cache keys and safe restore fallback behavior. Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.
Incorrect Answers
A:A test run reduces queue time without sacrificing build isolation. This would address a different situation, such as: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. In the present case, the most directly relevant verification is: Changing the dependency lockfile triggers a new compatible cache. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.
C:A historical release can be reconstructed within the mandated retention period. This would address a different situation, such as: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. In the present case, the most directly relevant verification is: Changing the dependency lockfile triggers a new compatible cache. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.
D:A clean replacement hosted image reproduces the expected build. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant verification is: Changing the dependency lockfile triggers a new compatible cache. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.
Question 226
A Microsoft DevOps team is addressing: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect build timestamps, package versions, artifact digests and update metadata.
- Inspect feed role assignments, delete permissions, package history and retention.
- Add a consistent unique build identifier to the approved CalVer scheme.
- Review API surface change, dependency constraints, version bump rules and changelog.
- Inspect package-lock metadata, dependency tree, registry provenance and update policy.
Explanation
Correct Answers
A:Inspect build timestamps, package versions, artifact digests and update metadata. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Add a consistent unique build identifier to the approved CalVer scheme. Together they address: Date-based versions need an unambiguous unique revision component and provenance.
C:Add a consistent unique build identifier to the approved CalVer scheme. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect build timestamps, package versions, artifact digests and update metadata. Together they address: Date-based versions need an unambiguous unique revision component and provenance.
Incorrect Answers
B:Inspect feed role assignments, delete permissions, package history and retention. This concerns a different DevOps situation: Every developer can delete the versions of a private production library that other teams depend on. This case instead requires both a targeted investigation (Inspect build timestamps, package versions, artifact digests and update metadata.) and a controlled change (Add a consistent unique build identifier to the approved CalVer scheme.).
D:Review API surface change, dependency constraints, version bump rules and changelog. This concerns a different DevOps situation: A compatible optional SDK feature is added, but release automation increments the major version for every change. This case instead requires both a targeted investigation (Inspect build timestamps, package versions, artifact digests and update metadata.) and a controlled change (Add a consistent unique build identifier to the approved CalVer scheme.).
E:Inspect package-lock metadata, dependency tree, registry provenance and update policy. This concerns a different DevOps situation: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. This case instead requires both a targeted investigation (Inspect build timestamps, package versions, artifact digests and update metadata.) and a controlled change (Add a consistent unique build identifier to the approved CalVer scheme.).
Question 227
After implementing the change, the team verifies: Critical production deployment failures send only email to an unattended shared mailbox. Which result would BEST demonstrate that the issue is corrected?
- An intentionally failed test deployment alerts the responsible team with release identity.
- A sample published API description matches the deployed response schema.
- 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
A:An intentionally failed test deployment alerts the responsible team with release identity. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Route deployment and failure events to the approved Microsoft Teams operations channel. Notifications should reach accountable responders through monitored channels with useful context.
Incorrect Answers
B:A sample published API description matches the deployed response schema. This would address a different situation, such as: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. In the present case, the most directly relevant verification is: An intentionally failed test deployment alerts the responsible team with release identity. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
C:A test breaking change appears in reviewed notes before publishing the library. This would address a different situation, such as: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. In the present case, the most directly relevant verification is: An intentionally failed test deployment alerts the responsible team with release identity. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
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: An intentionally failed test deployment alerts the responsible team with release identity. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
Question 228
Before changing the pipeline or service, engineers find: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. Which evidence should the engineer inspect FIRST?
- Review reflogs, branch protections, merge strategy and downstream consumers.
- Inspect collaborator roles, fork permissions and branch protection rules.
- Compare branch naming, workflow filters, release tags and production deployment records.
- Review deployment branch sources, permissions and branch policy coverage.
Explanation
Correct Answer
C:Compare branch naming, workflow filters, release tags and production deployment records. This directly checks the uncertain behavior or control before changing production. Branch conventions and immutable release references should uniquely identify deployable versions. The resulting targeted action is: Define clear branch purposes and deploy from approved immutable tagged or hashed revisions.
Incorrect Answers
A:Review reflogs, branch protections, merge strategy and downstream consumers. This would address a different situation, such as: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. In the present case, the most directly relevant evidence is: Compare branch naming, workflow filters, release tags and production deployment records. The crucial distinction is: Branch conventions and immutable release references should uniquely identify deployable versions.
B:Inspect collaborator roles, fork permissions and branch protection rules. This would address a different situation, such as: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. In the present case, the most directly relevant evidence is: Compare branch naming, workflow filters, release tags and production deployment records. The crucial distinction is: Branch conventions and immutable release references should uniquely identify deployable versions.
D:Review deployment branch sources, permissions and branch policy coverage. This would address a different situation, such as: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. In the present case, the most directly relevant evidence is: Compare branch naming, workflow filters, release tags and production deployment records. The crucial distinction is: Branch conventions and immutable release references should uniquely identify deployable versions.
Question 229
After implementing the change, the team verifies: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. Which result would BEST demonstrate that the issue is corrected?
- The shared platform dependency appears before downstream releases in an integrated plan.
- A sample release note lists the actual included fixes without unrelated pending changes.
- A failed sample release leaves the linked issue open and alerts its responsible team.
- A sampled production report has an owner and traces to a tested correction.
Explanation
Correct Answer
D:A sampled production report has an owner and traces to a tested correction. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use a structured GitHub Issues intake process with ownership, labels and linked fixes. Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
Incorrect Answers
A:The shared platform dependency appears before downstream releases in an integrated plan. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant verification is: A sampled production report has an owner and traces to a tested correction. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
B:A sample release note lists the actual included fixes without unrelated pending changes. This would address a different situation, such as: Release notes are composed from memory and routinely omit merged security improvements. In the present case, the most directly relevant verification is: A sampled production report has an owner and traces to a tested correction. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
C:A failed sample release leaves the linked issue open and alerts its responsible team. This would address a different situation, such as: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. In the present case, the most directly relevant verification is: A sampled production report has an owner and traces to a tested correction. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
Question 230
An Azure DevOps engineering team evaluates this condition: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. Which DevOps principle BEST explains the underlying weakness?
- Agent placement should satisfy network access and security constraints without overprivilege.
- Environment approvals apply only when pipelines use the protected deployment resource correctly.
- Variable groups must have environment-specific authorization and secret access controls.
- Azure service connections can use workload identity federation instead of expiring shared secrets.
Explanation
Correct Answer
D:Azure service connections can use workload identity federation instead of expiring shared secrets. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. An appropriate controlled response is: Migrate the service connection to supported workload identity federation with scoped access.
Incorrect Answers
A:Agent placement should satisfy network access and security constraints without overprivilege. This would address a different situation, such as: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. In the present case, the most directly relevant principle is: Azure service connections can use workload identity federation instead of expiring shared secrets. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.
B:Environment approvals apply only when pipelines use the protected deployment resource correctly. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant principle is: Azure service connections can use workload identity federation instead of expiring shared secrets. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.
C:Variable groups must have environment-specific authorization and secret access controls. 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 principle is: Azure service connections can use workload identity federation instead of expiring shared secrets. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.