Microsoft AZ-400 Practice Test 19
Question 180
The DevOps team must resolve this situation: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. Which engineering action is MOST appropriate?
- Enable supported secret, dependency and code scanning for target Azure Repos repositories.
- Require reviewed package source, SBOM and policy gates before accepting dependency updates.
- Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.
- Integrate image vulnerability scanning and a reviewed enforcement gate before production.
Explanation
Correct Answer
B:Require reviewed package source, SBOM and policy gates before accepting dependency updates. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A package from an unapproved registry fails the review despite passing unit tests. Automated security/compliance scanning should retain dependency provenance and approved package sources.
Incorrect Answers
A: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: Require reviewed package source, SBOM and policy gates before accepting dependency updates. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.
C:Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios. This would address a different situation, such as: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. In the present case, the most directly relevant engineering action is: Require reviewed package source, SBOM and policy gates before accepting dependency updates. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.
D:Integrate image vulnerability scanning and a reviewed enforcement gate before production. 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 engineering action is: Require reviewed package source, SBOM and policy gates before accepting dependency updates. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.
Question 181
After implementing the change, the team verifies: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. Which result would BEST demonstrate that the issue is corrected?
- An incompatible field removal fails pipeline validation before production use.
- An intentionally vulnerable test image is blocked and an approved fixed image proceeds.
- A destructive test cannot modify the protected production storage account.
- A release is blocked when representative p95 latency exceeds its objective.
Explanation
Correct Answer
C:A destructive test cannot modify the protected production storage account. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use a dedicated test subscription or resource group with restricted identity permissions. Test execution should be isolated from production identities and destructive resources.
Incorrect Answers
A:An incompatible field removal fails pipeline validation before production use. This would address a different situation, such as: A microservice changes a JSON field name while a downstream consumer still relies on the old name. In the present case, the most directly relevant verification is: A destructive test cannot modify the protected production storage account. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.
B:An intentionally vulnerable test image is blocked and an approved fixed image proceeds. This would address a different situation, such as: A container image with a known critical vulnerability passes all unit tests and is promoted to production. In the present case, the most directly relevant verification is: A destructive test cannot modify the protected production storage account. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.
D:A release is blocked when representative p95 latency exceeds its objective. This would address a different situation, such as: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. In the present case, the most directly relevant verification is: A destructive test cannot modify the protected production storage account. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.
Question 182
After implementing the change, the team verifies: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. Which result would BEST demonstrate that the issue is corrected?
- A test job delayed by runner scarcity shows queue time rather than slow compilation.
- A traced sample change reconciles to dashboard start and end timestamps.
- The report states response coverage and captures previously omitted contributor feedback.
- The report exposes a deliberately excluded critical integration suite as a gap.
Explanation
Correct Answer
D:The report exposes a deliberately excluded critical integration suite as a gap. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Publish excluded and flaky test counts with test trends and actionable owner assignments. Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
Incorrect Answers
A:A test job delayed by runner scarcity shows queue time rather than slow compilation. This would address a different situation, such as: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. In the present case, the most directly relevant verification is: The report exposes a deliberately excluded critical integration suite as a gap. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
B:A traced sample change reconciles to dashboard start and end timestamps. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant verification is: The report exposes a deliberately excluded critical integration suite as a gap. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
C:The report states response coverage and captures previously omitted contributor feedback. This would address a different situation, such as: A team reports excellent developer experience based only on responses from its three most active maintainers. In the present case, the most directly relevant verification is: The report exposes a deliberately excluded critical integration suite as a gap. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
Question 183
A Microsoft DevOps team is addressing: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience.
- Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.
- Inspect dependsOn, output artifacts, stage conditions and run timelines.
- Inspect workflow permission scopes, reusable call contracts and job operations.
- Use a deployment job bound to the protected environment and enforce resource checks.
Explanation
Correct Answers
A:Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment. Together they address: Workload identity federation reduces dependence on persistent credentials for Azure deployment.
B:Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience. Together they address: Workload identity federation reduces dependence on persistent credentials for Azure deployment.
Incorrect Answers
C:Inspect dependsOn, output artifacts, stage conditions and run timelines. This concerns a different DevOps situation: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. This case instead requires both a targeted investigation (Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience.) and a controlled change (Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.).
D:Inspect workflow permission scopes, reusable call contracts and job operations. This concerns a different DevOps situation: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. This case instead requires both a targeted investigation (Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience.) and a controlled change (Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.).
E:Use a deployment job bound to the protected environment and enforce resource checks. This concerns a different DevOps situation: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. This case instead requires both a targeted investigation (Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience.) and a controlled change (Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.).
Question 184
A Microsoft DevOps team is addressing: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. Which TWO complementary actions should be taken? Select TWO answers.
- Add release annotations and traceable version properties to Application Insights.
- Inspect requests, dependencies, operation_Id values and time range.
- Join relevant telemetry tables by operation identifiers to isolate failed dependency calls.
- Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes.
- Use a Kusto summarize query grouped by deployment version and appropriate time bins.
Explanation
Correct Answers
B:Inspect requests, dependencies, operation_Id values and time range. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Join relevant telemetry tables by operation identifiers to isolate failed dependency calls. Together they address: Correlated tracing requires joining telemetry using compatible operation identifiers.
C:Join relevant telemetry tables by operation identifiers to isolate failed dependency calls. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect requests, dependencies, operation_Id values and time range. Together they address: Correlated tracing requires joining telemetry using compatible operation identifiers.
Incorrect Answers
A:Add release annotations and traceable version properties to Application Insights. This concerns a different DevOps situation: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. This case instead requires both a targeted investigation (Inspect requests, dependencies, operation_Id values and time range.) and a controlled change (Join relevant telemetry tables by operation identifiers to isolate failed dependency calls.).
D:Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes. This concerns a different DevOps situation: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. This case instead requires both a targeted investigation (Inspect requests, dependencies, operation_Id values and time range.) and a controlled change (Join relevant telemetry tables by operation identifiers to isolate failed dependency calls.).
E:Use a Kusto summarize query grouped by deployment version and appropriate time bins. This concerns a different DevOps situation: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. This case instead requires both a targeted investigation (Inspect requests, dependencies, operation_Id values and time range.) and a controlled change (Join relevant telemetry tables by operation identifiers to isolate failed dependency calls.).
Question 185
The DevOps team must resolve this situation: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. Which engineering action is MOST appropriate?
- Commit a reviewed lockfile and run reproducible installation with dependency scanning.
- Promote and deploy verified image digests with approved version labels.
- Grant the consuming build service read access at the appropriate feed scope.
- Integrate license policy checks into feed promotion and release approval.
Explanation
Correct Answer
C:Grant the consuming build service read access at the appropriate feed scope. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The cross-project build restores packages without a global administrator token. Cross-project feeds require authorized build-service identities and scope settings.
Incorrect Answers
A:Commit a reviewed lockfile and run reproducible installation with dependency scanning. This would address a different situation, such as: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. In the present case, the most directly relevant engineering action is: Grant the consuming build service read access at the appropriate feed scope. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.
B:Promote and deploy verified image digests with approved version labels. This would address a different situation, such as: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. In the present case, the most directly relevant engineering action is: Grant the consuming build service read access at the appropriate feed scope. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.
D:Integrate license policy checks into feed promotion and release approval. This would address a different situation, such as: A development team uses a package with licensing obligations incompatible with a proprietary distribution without checking the transitive tree. In the present case, the most directly relevant engineering action is: Grant the consuming build service read access at the appropriate feed scope. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.
Question 186
An engineering design review identifies: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. Which shortcut should the team MOST specifically avoid for this case?
- Use an HTTP 200 response from the homepage as the only release test.
- Add an echo message that says passed after every test command.
- Retry every failing test indefinitely until the pipeline turns green.
- Run unit tests only during the next scheduled production release.
Explanation
Correct Answer
D:Run unit tests only during the next scheduled production release. This shortcut directly undermines the stated control or workflow. A safer action is: Require verified unit test checks as part of protected pull request policy. Explanation: Unit test gates should complete successfully against the proposed change before merge.
Incorrect Answers
A:Use an HTTP 200 response from the homepage as the only release test. This would address a different situation, such as: A payment workflow completes an HTTP health check but fails after users submit the checkout form. In the present case, the most directly relevant unsafe shortcut is: Run unit tests only during the next scheduled production release. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.
B:Add an echo message that says passed after every test command. This would address a different situation, such as: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. In the present case, the most directly relevant unsafe shortcut is: Run unit tests only during the next scheduled production release. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.
C:Retry every failing test indefinitely until the pipeline turns green. This would address a different situation, such as: A nightly integration suite fails intermittently because test data is shared between parallel jobs. In the present case, the most directly relevant unsafe shortcut is: Run unit tests only during the next scheduled production release. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.
Question 187
The DevOps team must resolve this situation: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. Which engineering action is MOST appropriate?
- Protect deployed and rollback-candidate artifacts with defined retention exceptions.
- Pin approved package ranges with lockfiles and deterministic restore settings.
- Integrate license policy checks into feed promotion and release approval.
- Add a consistent unique build identifier to the approved CalVer scheme.
Explanation
Correct Answer
B:Pin approved package ranges with lockfiles and deterministic restore settings. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Two clean builds of the same commit restore an identical dependency graph. Reproducible builds require controlled package versions and lockfile inputs.
Incorrect Answers
A:Protect deployed and rollback-candidate artifacts with defined retention exceptions. This would address a different situation, such as: Release rollback fails because the pipeline cleaned the package version deployed last week. In the present case, the most directly relevant engineering action is: Pin approved package ranges with lockfiles and deterministic restore settings. The crucial distinction is: Reproducible builds require controlled package versions and lockfile inputs.
C:Integrate license policy checks into feed promotion and release approval. This would address a different situation, such as: A development team uses a package with licensing obligations incompatible with a proprietary distribution without checking the transitive tree. In the present case, the most directly relevant engineering action is: Pin approved package ranges with lockfiles and deterministic restore settings. The crucial distinction is: Reproducible builds require controlled package versions and lockfile inputs.
D:Add a consistent unique build identifier to the approved CalVer scheme. This would address a different situation, such as: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. In the present case, the most directly relevant engineering action is: Pin approved package ranges with lockfiles and deterministic restore settings. The crucial distinction is: Reproducible builds require controlled package versions and lockfile inputs.
Question 188
After implementing the change, the team verifies: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. Which result would BEST demonstrate that the issue is corrected?
- A package from an unapproved registry fails the review despite passing unit tests.
- An exploitable high-risk finding is escalated despite a high volume of minor warnings.
- A malicious PR cannot bypass mandatory secret scanning by editing workflow YAML.
- A sample repository finding is visible to authorized central security analysts.
Explanation
Correct Answer
C:A malicious PR cannot bypass mandatory secret scanning by editing workflow YAML. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Enforce independently controlled scanning status and immutable required checks on protected branches. Security workflows require protected configuration and evaluation from trusted context.
Incorrect Answers
A: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 malicious PR cannot bypass mandatory secret scanning by editing workflow YAML. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.
B:An exploitable high-risk finding is escalated despite a high volume of minor warnings. This would address a different situation, such as: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. In the present case, the most directly relevant verification is: A malicious PR cannot bypass mandatory secret scanning by editing workflow YAML. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.
D:A sample repository finding is visible to authorized central security analysts. This would address a different situation, such as: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. In the present case, the most directly relevant verification is: A malicious PR cannot bypass mandatory secret scanning by editing workflow YAML. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.
Question 189
A Microsoft DevOps team is addressing: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
- Inspect token scope, audit events, bot responsibilities and repository installation.
- Invite an outside collaborator with restricted access to the reviewed repository.
- Disable broad access and explicitly authorize the approved production pipelines.
- Inspect project memberships, access level, team role and pipeline permissions.
Explanation
Correct Answers
A:Inspect endpoint grant-to-all settings, environment checks and pipeline identities. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Disable broad access and explicitly authorize the approved production pipelines. Together they address: Service connection authorization must be limited to approved pipelines and resource scope.
D:Disable broad access and explicitly authorize the approved production pipelines. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect endpoint grant-to-all settings, environment checks and pipeline identities. Together they address: Service connection authorization must be limited to approved pipelines and resource scope.
Incorrect Answers
B:Inspect token scope, audit events, bot responsibilities and repository installation. This concerns a different DevOps situation: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. This case instead requires both a targeted investigation (Inspect endpoint grant-to-all settings, environment checks and pipeline identities.) and a controlled change (Disable broad access and explicitly authorize the approved production pipelines.).
C:Invite an outside collaborator with restricted access to the reviewed repository. 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 endpoint grant-to-all settings, environment checks and pipeline identities.) and a controlled change (Disable broad access and explicitly authorize the approved production pipelines.).
E: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 endpoint grant-to-all settings, environment checks and pipeline identities.) and a controlled change (Disable broad access and explicitly authorize the approved production pipelines.).
Question 190
The DevOps team must resolve this situation: 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 engineering action is MOST appropriate?
- Use restricted secure file or private storage access with controlled cleanup.
- Adopt a tested version-management and rotation workflow with rollback compatibility.
- Deploy the appropriately authorized certificate material through supported bindings and managed access.
- Use an authorized Azure Key Vault-backed secret reference with protected variable handling.
Explanation
Correct Answer
C:Deploy the appropriately authorized certificate material through supported bindings and managed access. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The target endpoint serves the full trusted chain without exposing the private key in logs. Certificate deployment must match required private-key access and target service configuration.
Incorrect Answers
A:Use restricted secure file or private storage access with controlled cleanup. 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 engineering action is: Deploy the appropriately authorized certificate material through supported bindings and managed access. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.
B: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: Deploy the appropriately authorized certificate material through supported bindings and managed access. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.
D:Use an authorized Azure Key Vault-backed secret reference with protected variable handling. 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 engineering action is: Deploy the appropriately authorized certificate material through supported bindings and managed access. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.