Microsoft AZ-400 Practice Test 73
Question 720
After implementing the change, the team verifies: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. Which result would BEST demonstrate that the issue is corrected?
- A policy-incompatible dependency prevents publication until disposition.
- A package from an unapproved registry fails the review despite passing unit tests.
- A sample repository finding is visible to authorized central security analysts.
- A known critical test image is blocked while a remediated digest deploys.
Explanation
Correct Answer
C:A sample repository finding is visible to authorized central security analysts. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security. DevOps security posture can be integrated into centralized cloud risk monitoring.
Incorrect Answers
A:A policy-incompatible dependency prevents publication until disposition. This would address a different situation, such as: A binary distribution uses open-source dependencies but its release process does not check license obligations. In the present case, the most directly relevant verification is: A sample repository finding is visible to authorized central security analysts. The crucial distinction is: DevOps security posture can be integrated into centralized cloud risk monitoring.
B:A package from an unapproved registry fails the review despite passing unit tests. 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 verification is: A sample repository finding is visible to authorized central security analysts. The crucial distinction is: DevOps security posture can be integrated into centralized cloud risk monitoring.
D:A known critical test image is blocked while a remediated digest deploys. 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 verification is: A sample repository finding is visible to authorized central security analysts. The crucial distinction is: DevOps security posture can be integrated into centralized cloud risk monitoring.
Question 721
Before changing the pipeline or service, engineers find: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. Which evidence should the engineer inspect FIRST?
- Inspect superproject gitlinks, submodule branch settings and build input records.
- Inspect historical blobs, generated folders, .gitignore rules and clone sizes.
- Review tracked paths, Git case settings, import statements and CI filesystem behavior.
- Review code duplication, package provenance, semver constraints and release history.
Explanation
Correct Answer
B:Inspect historical blobs, generated folders,.gitignore rules and clone sizes. This directly checks the uncertain behavior or control before changing production. Repository hygiene needs tracked-artifact policy and planned history repair when necessary. The resulting targeted action is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
Incorrect Answers
A:Inspect superproject gitlinks, submodule branch settings and build input records. This would address a different situation, such as: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. In the present case, the most directly relevant evidence is: Inspect historical blobs, generated folders,.gitignore rules and clone sizes. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
C:Review tracked paths, Git case settings, import statements and CI filesystem behavior. This would address a different situation, such as: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. In the present case, the most directly relevant evidence is: Inspect historical blobs, generated folders,.gitignore rules and clone sizes. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
D:Review code duplication, package provenance, semver constraints and release history. This would address a different situation, such as: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. In the present case, the most directly relevant evidence is: Inspect historical blobs, generated folders,.gitignore rules and clone sizes. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
Question 722
A Microsoft DevOps team is addressing: A development team uses a package with licensing obligations incompatible with a proprietary distribution without checking the transitive tree. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect release history, retention settings, artifact references and support policy.
- Review dependency SBOM, licensing metadata, commercial distribution rights and exceptions.
- Inspect source run IDs, artifact digests, release manifests and download task inputs.
- Integrate license policy checks into feed promotion and release approval.
- Inspect delivery channels, artifact checksums, user installs and release approvals.
Explanation
Correct Answers
B:Review dependency SBOM, licensing metadata, commercial distribution rights and exceptions. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Integrate license policy checks into feed promotion and release approval. Together they address: Package approval must consider legal and licensing obligations alongside technical vulnerabilities.
D:Integrate license policy checks into feed promotion and release approval. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review dependency SBOM, licensing metadata, commercial distribution rights and exceptions. Together they address: Package approval must consider legal and licensing obligations alongside technical vulnerabilities.
Incorrect Answers
A:Inspect release history, retention settings, artifact references and support policy. This concerns a different DevOps situation: Release rollback fails because the pipeline cleaned the package version deployed last week. This case instead requires both a targeted investigation (Review dependency SBOM, licensing metadata, commercial distribution rights and exceptions.) and a controlled change (Integrate license policy checks into feed promotion and release approval.).
C:Inspect source run IDs, artifact digests, release manifests and download task inputs. This concerns a different DevOps situation: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. This case instead requires both a targeted investigation (Review dependency SBOM, licensing metadata, commercial distribution rights and exceptions.) and a controlled change (Integrate license policy checks into feed promotion and release approval.).
E:Inspect delivery channels, artifact checksums, user installs and release approvals. This concerns a different DevOps situation: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. This case instead requires both a targeted investigation (Review dependency SBOM, licensing metadata, commercial distribution rights and exceptions.) and a controlled change (Integrate license policy checks into feed promotion and release approval.).
Question 723
The DevOps team must resolve this situation: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. Which engineering action is MOST appropriate?
- Add explicit dependency and readiness checks where Azure role propagation needs validation.
- Require reviewed what-if output and controlled data-preserving migration before deployment.
- Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.
- Pass verified immutable image identifiers through a controlled IaC deployment interface.
Explanation
Correct Answer
A:Add explicit dependency and readiness checks where Azure role propagation needs validation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The app starts with authorized secret access after an entirely fresh deployment. IaC dependency design must express when required resources and authorization are ready.
Incorrect Answers
B:Require reviewed what-if output and controlled data-preserving migration before deployment. This would address a different situation, such as: A refactor changes a storage account name while the pipeline applies it directly to production. In the present case, the most directly relevant engineering action is: Add explicit dependency and readiness checks where Azure role propagation needs validation. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.
C:Publish approved Azure Deployment Environments definitions with scoped self-service and expiration. 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 engineering action is: Add explicit dependency and readiness checks where Azure role propagation needs validation. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.
D:Pass verified immutable image identifiers through a controlled IaC deployment interface. 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 engineering action is: Add explicit dependency and readiness checks where Azure role propagation needs validation. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.
Question 724
The DevOps team must resolve this situation: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. Which engineering action is MOST appropriate?
- Configure approved CodeQL analysis and risk-based remediation gates.
- Enable supported secret, dependency and code scanning for target Azure Repos repositories.
- Use risk-based triage with owners, remediation SLAs and documented waivers.
- Enable Dependabot alerts and governed security updates with CI checks.
Explanation
Correct Answer
A:Configure approved CodeQL analysis and risk-based remediation gates. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A deliberate injection-pattern test creates a security finding before merge. Code scanning should detect relevant source vulnerabilities before release.
Incorrect Answers
B:Enable supported secret, dependency and code scanning for target Azure Repos repositories. This would address a different situation, such as: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. In the present case, the most directly relevant engineering action is: Configure approved CodeQL analysis and risk-based remediation gates. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.
C:Use risk-based triage with owners, remediation SLAs and documented waivers. 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 engineering action is: Configure approved CodeQL analysis and risk-based remediation gates. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.
D:Enable Dependabot alerts and governed security updates with CI checks. 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 engineering action is: Configure approved CodeQL analysis and risk-based remediation gates. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.
Question 725
A Microsoft DevOps team is addressing: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. Which TWO complementary actions should be taken? Select TWO answers.
- Adopt short-lived feature branches with required tests and frequent mainline integration.
- Enforce code owner approval for sensitive path changes in protected branches.
- Review deployment branch sources, permissions and branch policy coverage.
- Apply equivalent required reviews and test gates to all protected release branches.
- Inspect branch rules, bypass lists, review events and commit protections.
Explanation
Correct Answers
C:Review deployment branch sources, permissions and branch policy coverage. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Apply equivalent required reviews and test gates to all protected release branches. Together they address: Every deployable branch needs controls proportionate to production impact.
D:Apply equivalent required reviews and test gates to all protected release branches. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review deployment branch sources, permissions and branch policy coverage. Together they address: Every deployable branch needs controls proportionate to production impact.
Incorrect Answers
A:Adopt short-lived feature branches with required tests and frequent mainline integration. 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 (Review deployment branch sources, permissions and branch policy coverage.) and a controlled change (Apply equivalent required reviews and test gates to all protected release branches.).
B:Enforce code owner approval for sensitive path changes in protected branches. This concerns a different DevOps situation: Payment processing files require security review, but code owner review is only advisory. This case instead requires both a targeted investigation (Review deployment branch sources, permissions and branch policy coverage.) and a controlled change (Apply equivalent required reviews and test gates to all protected release branches.).
E:Inspect branch rules, bypass lists, review events and commit protections. This concerns a different DevOps situation: A repository's default branch allows authors to approve their own high-risk changes without independent review. This case instead requires both a targeted investigation (Review deployment branch sources, permissions and branch policy coverage.) and a controlled change (Apply equivalent required reviews and test gates to all protected release branches.).
Question 726
An Azure DevOps engineering team evaluates this condition: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. Which DevOps principle BEST explains the underlying weakness?
- Pipeline triggers must enforce reviewed source ref eligibility.
- Shared templates should be centrally governed and versioned for compatible consumers.
- Custom YAML conditions must retain required success prerequisites.
- Concurrent deployments require serialization or controlled exclusive access to shared environments.
Explanation
Correct Answer
D:Concurrent deployments require serialization or controlled exclusive access to shared environments. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review pipeline execution settings, resource locks and deployment timestamps. An appropriate controlled response is: Configure appropriate exclusive locks or deployment concurrency controls per environment.
Incorrect Answers
A:Pipeline triggers must enforce reviewed source ref eligibility. This would address a different situation, such as: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. In the present case, the most directly relevant principle is: Concurrent deployments require serialization or controlled exclusive access to shared environments. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.
B:Shared templates should be centrally governed and versioned for compatible consumers. 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 principle is: Concurrent deployments require serialization or controlled exclusive access to shared environments. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.
C:Custom YAML conditions must retain required success prerequisites. 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 principle is: Concurrent deployments require serialization or controlled exclusive access to shared environments. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.
Question 727
Before changing the pipeline or service, engineers find: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. Which evidence should the engineer inspect FIRST?
- Inspect sign-in records, principal IDs, resource IDs, times and failure causes.
- Inspect customDimensions, timestamp, role name and exception records.
- Inspect requests, dependencies, operation_Id values and time range.
- Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.
Explanation
Correct Answer
A:Inspect sign-in records, principal IDs, resource IDs, times and failure causes. This directly checks the uncertain behavior or control before changing production. Security observability requires principal-specific queries and context. The resulting targeted action is: Build KQL queries with identity dimensions and appropriate anomaly thresholds.
Incorrect Answers
B:Inspect customDimensions, timestamp, role name and exception records. This would address a different situation, such as: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. In the present case, the most directly relevant evidence is: Inspect sign-in records, principal IDs, resource IDs, times and failure causes. The crucial distinction is: Security observability requires principal-specific queries and context.
C:Inspect requests, dependencies, operation_Id values and time range. This would address a different situation, such as: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. In the present case, the most directly relevant evidence is: Inspect sign-in records, principal IDs, resource IDs, times and failure causes. The crucial distinction is: Security observability requires principal-specific queries and context.
D:Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. This would address a different situation, such as: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. In the present case, the most directly relevant evidence is: Inspect sign-in records, principal IDs, resource IDs, times and failure causes. The crucial distinction is: Security observability requires principal-specific queries and context.
Question 728
The DevOps team must resolve this situation: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. Which engineering action is MOST appropriate?
- Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary.
- Govern large-file retention, selective downloads and authorized capacity increases.
- Protect release tags and record immutable commit or artifact digests in release manifests.
- Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.
Explanation
Correct Answer
C:Protect release tags and record immutable commit or artifact digests in release manifests. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A retag attempt is denied or detected without changing the previously approved release. Release references must be protected or cryptographically verified to preserve provenance.
Incorrect Answers
A:Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. 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 engineering action is: Protect release tags and record immutable commit or artifact digests in release manifests. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.
B:Govern large-file retention, selective downloads and authorized capacity increases. 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 engineering action is: Protect release tags and record immutable commit or artifact digests in release manifests. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.
D:Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. This would address a different situation, such as: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. In the present case, the most directly relevant engineering action is: Protect release tags and record immutable commit or artifact digests in release manifests. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.
Question 729
An engineering design review identifies: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. Which shortcut should the team MOST specifically avoid for this case?
- Enable Grant access permission to all pipelines for the production subscription.
- Continue sharing the maintainer's broad PAT among every repository.
- Create a new broad Owner service principal for each instance startup.
- Create one permanent Owner client secret and distribute it to all pipelines.
Explanation
Correct Answer
D:Create one permanent Owner client secret and distribute it to all pipelines. This shortcut directly undermines the stated control or workflow. A safer action is: Adopt supported workload identity federation with least-privilege Azure scope. Explanation: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
Incorrect Answers
A:Enable Grant access permission to all pipelines for the production subscription. This would address a different situation, such as: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. In the present case, the most directly relevant unsafe shortcut is: Create one permanent Owner client secret and distribute it to all pipelines. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
B:Continue sharing the maintainer's broad PAT among every repository. 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 unsafe shortcut is: Create one permanent Owner client secret and distribute it to all pipelines. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
C:Create a new broad Owner service principal for each instance startup. 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 unsafe shortcut is: Create one permanent Owner client secret and distribute it to all pipelines. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
Question 730
A Microsoft DevOps team is addressing: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect free disk, workspace lifecycle, container images and failure records.
- Pin or explicitly install supported toolchains and test migrations before image retirement.
- Review cache key configuration, lockfile hash, package restore logs and unexpected results.
- Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
- Inspect run timelines, environment approval events and task durations.
Explanation
Correct Answers
A:Inspect free disk, workspace lifecycle, container images and failure records. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. Together they address: Self-hosted agent maintenance requires bounded workspace cleanup and cache retention.
D:Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect free disk, workspace lifecycle, container images and failure records. Together they address: Self-hosted agent maintenance requires bounded workspace cleanup and cache retention.
Incorrect Answers
B:Pin or explicitly install supported toolchains and test migrations before image retirement. This concerns a different DevOps situation: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).
C:Review cache key configuration, lockfile hash, package restore logs and unexpected results. This concerns a different DevOps situation: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).
E:Inspect run timelines, environment approval events and task durations. This concerns a different DevOps situation: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).