Microsoft AZ-400 Practice Test 92
Question 910
Before changing the pipeline or service, engineers find: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. Which evidence should the engineer inspect FIRST?
- Inspect tag protection rules, release digests and commit-signature requirements.
- Review code duplication, package provenance, semver constraints and release history.
- Inspect repository history, leaked secret versions, access logs and rotation status.
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
Explanation
Correct Answer
B:Review code duplication, package provenance, semver constraints and release history. This directly checks the uncertain behavior or control before changing production. Cross-repository reuse needs an explicit versioned dependency strategy. The resulting targeted action is: Publish common code as a reviewed versioned package or managed shared component.
Incorrect Answers
A:Inspect tag protection rules, release digests and commit-signature requirements. This would address a different situation, such as: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. In the present case, the most directly relevant evidence is: Review code duplication, package provenance, semver constraints and release history. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
C:Inspect repository history, leaked secret versions, access logs and rotation status. This would address a different situation, such as: A database credential is removed from the latest Git commit but remains visible in old revisions. In the present case, the most directly relevant evidence is: Review code duplication, package provenance, semver constraints and release history. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
D:Inspect project access groups, repository ACLs, token grants and vendor responsibilities. This would address a different situation, such as: A QA vendor needs read-only test access but has been granted repository administration rights. In the present case, the most directly relevant evidence is: Review code duplication, package provenance, semver constraints and release history. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
Question 911
Before changing the pipeline or service, engineers find: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. Which evidence should the engineer inspect FIRST?
- Inspect workflow permissions, fork contexts, third-party actions and write operations.
- Inspect service connection credentials, Entra federated subject, role assignments and usage logs.
- Inspect existing identity attachments, role assignments and resource replacement behavior.
- Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
Explanation
Correct Answer
D:Inspect endpoint grant-to-all settings, environment checks and pipeline identities. This directly checks the uncertain behavior or control before changing production. Service connection authorization must be limited to approved pipelines and resource scope. The resulting targeted action is: Disable broad access and explicitly authorize the approved production pipelines.
Incorrect Answers
A:Inspect workflow permissions, fork contexts, third-party actions and write operations. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant evidence is: Inspect endpoint grant-to-all settings, environment checks and pipeline identities. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.
B:Inspect service connection credentials, Entra federated subject, role assignments and usage logs. 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 evidence is: Inspect endpoint grant-to-all settings, environment checks and pipeline identities. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.
C:Inspect existing identity attachments, role assignments and resource replacement behavior. This would address a different situation, such as: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. In the present case, the most directly relevant evidence is: Inspect endpoint grant-to-all settings, environment checks and pipeline identities. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.
Question 912
The DevOps team must resolve this situation: Release notes are composed from memory and routinely omit merged security improvements. Which engineering action is MOST appropriate?
- Generate reviewed release notes from the changes between immutable release references.
- Configure work-item linking and automatic build/deployment associations in Azure Boards.
- Adopt protected mainline GitHub Flow with small reviewed changes and linked work items.
- Configure meaningful status checks, reviewer ownership and notification routing.
Explanation
Correct Answer
A:Generate reviewed release notes from the changes between immutable release references. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A sample release note lists the actual included fixes without unrelated pending changes. Release summaries should be derived from verified source and work-item changes.
Incorrect Answers
B:Configure work-item linking and automatic build/deployment associations in Azure Boards. This would address a different situation, such as: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. In the present case, the most directly relevant engineering action is: Generate reviewed release notes from the changes between immutable release references. The crucial distinction is: Release summaries should be derived from verified source and work-item changes.
C:Adopt protected mainline GitHub Flow with small reviewed changes and linked work items. This would address a different situation, such as: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. In the present case, the most directly relevant engineering action is: Generate reviewed release notes from the changes between immutable release references. The crucial distinction is: Release summaries should be derived from verified source and work-item changes.
D:Configure meaningful status checks, reviewer ownership and notification routing. This would address a different situation, such as: A team cannot tell when a pull request is waiting for security approval versus failed tests. In the present case, the most directly relevant engineering action is: Generate reviewed release notes from the changes between immutable release references. The crucial distinction is: Release summaries should be derived from verified source and work-item changes.
Question 913
The DevOps team must resolve this situation: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. Which engineering action is MOST appropriate?
- Emit a named output variable and consume it through the appropriate dependency expression.
- Move common steps into approved reusable templates with pinned or governed references.
- Configure approved GitHub connection permissions and required PR build validation.
- Configure appropriate exclusive locks or deployment concurrency controls per environment.
Explanation
Correct Answer
C:Configure approved GitHub connection permissions and required PR build validation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A sample GitHub pull request launches a traceable Azure Pipeline check. Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
Incorrect Answers
A:Emit a named output variable and consume it through the appropriate dependency expression. 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 engineering action is: Configure approved GitHub connection permissions and required PR build validation. The crucial distinction is: Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
B:Move common steps into approved reusable templates with pinned or governed references. 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 engineering action is: Configure approved GitHub connection permissions and required PR build validation. The crucial distinction is: Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
D:Configure appropriate exclusive locks or deployment concurrency controls per environment. This would address a different situation, such as: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. In the present case, the most directly relevant engineering action is: Configure approved GitHub connection permissions and required PR build validation. The crucial distinction is: Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
Question 914
The DevOps team must resolve this situation: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. Which engineering action is MOST appropriate?
- Move cloud credential issuance into the guarded deployment job with scoped federation.
- Limit trust to an approved protected repository environment and least-privilege scope.
- Deploy the appropriately authorized certificate material through supported bindings and managed access.
- Adopt a tested version-management and rotation workflow with rollback compatibility.
Explanation
Correct Answer
A:Move cloud credential issuance into the guarded deployment job with scoped federation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A rejected environment approval prevents the run from obtaining production credentials. Credential issuance should occur only after the protected environment gate and trust checks.
Incorrect Answers
B:Limit trust to an approved protected repository environment and least-privilege scope. 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 engineering action is: Move cloud credential issuance into the guarded deployment job with scoped federation. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.
C:Deploy the appropriately authorized certificate material through supported bindings and managed access. This would address a different situation, such as: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. In the present case, the most directly relevant engineering action is: Move cloud credential issuance into the guarded deployment job with scoped federation. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.
D:Adopt a tested version-management and rotation workflow with rollback compatibility. 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 engineering action is: Move cloud credential issuance into the guarded deployment job with scoped federation. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.
Question 915
After implementing the change, the team verifies: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. Which result would BEST demonstrate that the issue is corrected?
- The deployment succeeds while secret values never appear in repository or logs.
- The target endpoint serves the full trusted chain without exposing the private key in logs.
- Untrusted branch tokens cannot acquire production credentials.
- Only an approved signing job downloads the file and output contains no key material.
Explanation
Correct Answer
B:The target endpoint serves the full trusted chain without exposing the private key in logs. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Deploy the appropriately authorized certificate material through supported bindings and managed access. Certificate deployment must match required private-key access and target service configuration.
Incorrect Answers
A:The deployment succeeds while secret values never appear in repository or logs. 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 verification is: The target endpoint serves the full trusted chain without exposing the private key in logs. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.
C:Untrusted branch tokens cannot acquire production credentials. 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 verification is: The target endpoint serves the full trusted chain without exposing the private key in logs. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.
D:Only an approved signing job downloads the file and output contains no key material. 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 verification is: The target endpoint serves the full trusted chain without exposing the private key in logs. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.
Question 916
Before changing the pipeline or service, engineers find: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. Which evidence should the engineer inspect FIRST?
- Inspect file types, object sizes, clone profiles and LFS availability.
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
- Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts.
- Inspect repository layout, dependency graph, clone filters and build requirements.
Explanation
Correct Answer
A:Inspect file types, object sizes, clone profiles and LFS availability. This directly checks the uncertain behavior or control before changing production. Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. The resulting targeted action is: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.
Incorrect Answers
B:Inspect project access groups, repository ACLs, token grants and vendor responsibilities. This would address a different situation, such as: A QA vendor needs read-only test access but has been granted repository administration rights. In the present case, the most directly relevant evidence is: Inspect file types, object sizes, clone profiles and LFS availability. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
C:Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. This would address a different situation, such as: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. In the present case, the most directly relevant evidence is: Inspect file types, object sizes, clone profiles and LFS availability. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
D:Inspect repository layout, dependency graph, clone filters and build requirements. This would address a different situation, such as: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. In the present case, the most directly relevant evidence is: Inspect file types, object sizes, clone profiles and LFS availability. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
Question 917
An Azure DevOps engineering team evaluates this condition: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. Which DevOps principle BEST explains the underlying weakness?
- Artifact promotion must bind deployment to the exact tested build.
- Upstream sources can cache approved public dependencies through controlled feeds.
- Transitive dependency resolution must be reproducible and security-reviewed.
- Semantic versioning should reflect compatibility impact rather than commit count.
Explanation
Correct Answer
C:Transitive dependency resolution must be reproducible and security-reviewed. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect package-lock metadata, dependency tree, registry provenance and update policy. An appropriate controlled response is: Commit a reviewed lockfile and run reproducible installation with dependency scanning.
Incorrect Answers
A:Artifact promotion must bind deployment to the exact tested build. This would address a different situation, such as: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. In the present case, the most directly relevant principle is: Transitive dependency resolution must be reproducible and security-reviewed. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.
B:Upstream sources can cache approved public dependencies through controlled feeds. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant principle is: Transitive dependency resolution must be reproducible and security-reviewed. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.
D:Semantic versioning should reflect compatibility impact rather than commit count. This would address a different situation, such as: A compatible optional SDK feature is added, but release automation increments the major version for every change. In the present case, the most directly relevant principle is: Transitive dependency resolution must be reproducible and security-reviewed. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.
Question 918
Before changing the pipeline or service, engineers find: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. Which evidence should the engineer inspect FIRST?
- Inspect dependsOn, output artifacts, stage conditions and run timelines.
- Inspect workflow permission scopes, reusable call contracts and job operations.
- Inspect deployment jobs, environment references, resource checks and service connection access.
- Inspect YAML trigger filters, branch protections and deployment conditions.
Explanation
Correct Answer
D:Inspect YAML trigger filters, branch protections and deployment conditions. This directly checks the uncertain behavior or control before changing production. Pipeline triggers must enforce reviewed source ref eligibility. The resulting targeted action is: Limit production deployment to permitted protected refs and validated build artifacts.
Incorrect Answers
A:Inspect dependsOn, output artifacts, stage conditions and run timelines. This would address a different situation, such as: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. In the present case, the most directly relevant evidence is: Inspect YAML trigger filters, branch protections and deployment conditions. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
B:Inspect workflow permission scopes, reusable call contracts and job operations. This would address a different situation, such as: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. In the present case, the most directly relevant evidence is: Inspect YAML trigger filters, branch protections and deployment conditions. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
C:Inspect deployment jobs, environment references, resource checks and service connection access. 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 evidence is: Inspect YAML trigger filters, branch protections and deployment conditions. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
Question 919
The DevOps team must resolve this situation: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. Which engineering action is MOST appropriate?
- Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
- Protect recent deployed digests and remove only eligible unreferenced artifacts.
- Configure differentiated retention for required pipelines and audit artifacts.
- Use dependency-aware cache keys and safe restore fallback behavior.
Explanation
Correct Answer
C:Configure differentiated retention for required pipelines and audit artifacts. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A historical release can be reconstructed within the mandated retention period. Retention policy should cover compliance evidence, release logs and artifact lifecycle.
Incorrect Answers
A:Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This would address a different situation, such as: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. In the present case, the most directly relevant engineering action is: Configure differentiated retention for required pipelines and audit artifacts. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
B:Protect recent deployed digests and remove only eligible unreferenced artifacts. This would address a different situation, such as: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. In the present case, the most directly relevant engineering action is: Configure differentiated retention for required pipelines and audit artifacts. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
D: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: Configure differentiated retention for required pipelines and audit artifacts. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
Question 920
After implementing the change, the team verifies: A refactor changes a storage account name while the pipeline applies it directly to production. Which result would BEST demonstrate that the issue is corrected?
- A destructive replacement fails the gate unless explicitly approved with recovery arrangements.
- Expired exemptions are surfaced and prohibited deployments resume enforcement.
- A test template omission cannot delete an unrelated protected storage resource.
- Repeated plans use the same provider version and give consistent changes.
Explanation
Correct Answer
A:A destructive replacement fails the gate unless explicitly approved with recovery arrangements. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Require reviewed what-if output and controlled data-preserving migration before deployment. Stateful IaC replacements require impact review and a migration plan.
Incorrect Answers
B:Expired exemptions are surfaced and prohibited deployments resume enforcement. This would address a different situation, such as: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. In the present case, the most directly relevant verification is: A destructive replacement fails the gate unless explicitly approved with recovery arrangements. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
C:A test template omission cannot delete an unrelated protected storage resource. 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 verification is: A destructive replacement fails the gate unless explicitly approved with recovery arrangements. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
D:Repeated plans use the same provider version and give consistent changes. 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 verification is: A destructive replacement fails the gate unless explicitly approved with recovery arrangements. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.