Microsoft AZ-400 (Designing and Implementing Microsoft DevOps Solutions) Practice Test 14

Question 130

Two pipelines target the same production database and concurrent migrations could conflict. Which environment check prevents overlapping resource use?

  1. Add a business-hours check
  2. Use post-check approval for completion review
  3. Add a secure-file approval check
  4. Add an exclusive lock to serialize deployments

Explanation

Correct Answer

D:

The exclusive lock check serializes stage access to a protected resource, allowing one eligible deployment through at a time.

Incorrect Answers

A:

Business Hours checks defer resource use until configured local windows rather than relying only on the pipeline queue time; that changes scheduled release window enforcement without delivering mutual exclusion for release changes.

B:

Post-check approvals are evaluated after eligible dynamic checks according to the resource check order, providing an additional approval point; late-stage protected-resource approval cannot substitute for mutual exclusion for release changes.

C:

A secure file can have an approval check that gates consumption even by an otherwise authorized pipeline; mutual exclusion for release changes falls outside the scope of human review of signing-file use.

Question 131

CI executes hundreds of times per day, but management asks how often changes actually reach production. Which measure avoids overstating delivery throughput?

  1. Track escaped defect rate
  2. Distinguish deployment frequency from build frequency
  3. Track change failure rate
  4. Compare planned versus completed work each sprint

Explanation

Correct Answer

B:

Deployment frequency counts successful releases to the target production environment rather than CI runs or commits.

Incorrect Answers

A:

Escaped defects identify problems that pass preproduction verification, allowing evaluation of the effectiveness of the testing process; production release cadence remains outside the responsibility of postrelease defect escape.

C:

Change failure rate measures the share of production changes that produce degraded service or need restoration actions; production deployment failure impact concerns a different control point than production release cadence.

D:

Comparing committed sprint scope with work actually completed shows forecasting reliability and can drive realistic iteration planning; here production release cadence is the target, not iteration commitment reliability.

Question 132

A pipeline stores its YAML in one repository but needs to fetch versioned shared infrastructure definitions from another. Which resource declaration supports this?

  1. Configure GitHub status checks for Azure Pipeline validation
  2. Use a repository alias for cross-repository templates
  3. Use pipeline resource artifact download
  4. Use a GitHub service connection with narrow permissions
  5. Use a repository resource for another Git repository

Explanation

Correct Answer

E:

YAML repository resources define additional repositories, their endpoints, and revisions for use in checkout or templates.

Incorrect Answers

A:

The pipeline reports status, while GitHub branch rules must explicitly require the relevant status check before merge; cross-repository pipeline inputs cannot be delivered through mandatory consumption of external CI status.

B:

A named repository resource alias identifies the intended external template source and disambiguates references across the imported repositories; its effect is unambiguous template repository selection, not cross-repository pipeline inputs.

C:

Pipeline resources identify producer pipelines and their runs so downstream workflows can download associated build artifacts; that changes downstream consumption of upstream build output without delivering cross-repository pipeline inputs.

D:

A repository-scoped GitHub connection authenticates Azure Pipelines to the required source with explicitly limited permissions; restricted source-provider access cannot substitute for cross-repository pipeline inputs.

Question 133

A supply-chain team needs an inventory of third-party packages in each shipped build so later vulnerabilities can be matched to affected releases. Which artifact should accompany deployment?

  1. Increment the major version for a breaking API change
  2. Include commit SHA in artifact provenance
  3. Generate a software bill of materials with releases
  4. Increment the patch version for a compatible bug fix
  5. Use build metadata without altering SemVer precedence

Explanation

Correct Answer

C:

A software bill of materials records software components and versions used in a build, supporting later dependency risk analysis.

Incorrect Answers

A:

Under SemVer, a major increment signals incompatible public API changes so consumers can avoid accidental breaking upgrades; this option addresses incompatible interface version signal rather than addressing shipped dependency inventory.

B:

A commit SHA uniquely identifies the source snapshot used by a build and supports traceability from deployment to repository state; it handles source snapshot identity for each build but cannot by itself deliver shipped dependency inventory.

D:

SemVer patch versions identify backward-compatible bug fixes and support predictable dependency upgrade decisions; that acts on compatible defect correction version, whereas the requested outcome is shipped dependency inventory.

E:

SemVer build metadata follows a plus sign and communicates extra information without affecting version precedence comparison; informational build identity suffix concerns a different control point than shipped dependency inventory.

Question 134

A storage account has useful platform logs, but investigators cannot find those events in the central workspace. What configuration should route them?

  1. Set appropriate workspace data retention
  2. Configure diagnostic settings on an Azure resource
  3. Create a log search alert for correlated failures
  4. Configure activity log alerts for control-plane changes

Explanation

Correct Answer

B:

Resource diagnostic settings send supported log and metric categories to destinations such as a Log Analytics workspace.

Incorrect Answers

A:

Log Analytics retention and archive settings govern how long ingested records remain available for interactive queries and longer-term retrieval; forwarding resource telemetry cannot be inferred from policy-compliant telemetry lifetime alone.

C:

Log search alerts periodically evaluate KQL results from Azure Monitor Logs against configured alert conditions; forwarding resource telemetry cannot be delivered through query-based error-pattern alerting.

D:

Azure Activity Log records subscription control-plane events that can be targeted by activity-log alert rules; its effect is Azure administrative operation detection, not forwarding resource telemetry.

Question 135

A classic release is moved to a multi-stage YAML pipeline, but production approvals must remain centrally controlled. Which YAML-era control should replace editor-owned release approvals?

  1. Constrain unnecessary parallelism
  2. Review a migrated pipeline with a comparison run
  3. Reduce redundant source checkout
  4. Translate classic release approvals to environment checks

Explanation

Correct Answer

D:

Resource approvals and checks on YAML environments enforce authorization outside developer-controlled pipeline logic.

Incorrect Answers

A:

Concurrency caps balance worker cost against the small marginal latency benefit of additional parallel execution; it contributes to cost-aware job fanout, with preserved release governance after migration still requiring its own control.

B:

Side-by-side dry runs or test deployments compare artifacts, variables, approvals, and outcomes before switching fully to the new definition; this solves evidence-based pipeline migration parity, leaving preserved release governance after migration unresolved.

C:

Skipping unnecessary checkout saves network transfer and startup time when source files are not consumed; this option addresses elimination of unused Git fetch rather than addressing preserved release governance after migration.

Question 136

Several teams need their own current sprint and quality widgets without altering a single global organization dashboard. What should be created?

  1. Subscribe a Teams channel to GitHub events
  2. Use GitHub Discussions for open-ended community topics
  3. Use Azure Boards team dashboards
  4. Use Azure DevOps work item mentions

Explanation

Correct Answer

C:

Team dashboards group widgets for an Azure DevOps team's work and delivery context, keeping operational views aligned to team scope.

Incorrect Answers

A:

GitHub integration with Microsoft Teams surfaces repository activity in a selected channel based on subscription configuration; here team-specific delivery visibility is the target, not GitHub-to-Teams collaboration events.

B:

GitHub Discussions supports community conversations, questions, and ideas without treating every exchange as a trackable issue; although that supports exploratory community conversation, this scenario calls for team-specific delivery visibility.

D:

Mentioning a colleague in a work item comment notifies that person and preserves discussion context with the tracked work; the distinction is contextual backlog discussion notification versus team-specific delivery visibility.

Question 137

A job builds application code and must also read a separate checked-in test harness; both repositories must exist in the agent workspace. Which YAML approach works?

  1. Use multiple checkout steps
  2. Protect external repository resource triggers
  3. Reference a template from another repository
  4. Select the correct GitHub repository in an Azure Pipeline

Explanation

Correct Answer

A:

Multiple checkout steps fetch the primary and declared secondary repositories into the job workspace. Both repository aliases and target checkout paths should be explicit so build and test steps address the expected files.

Incorrect Answers

B:

Repository resource triggers and release stage conditions should restrict which trusted source revisions may initiate sensitive downstream work; simultaneous workspace repository access falls outside the scope of trusted cross-repository activation.

C:

An external template repository resource lets pipeline YAML import standardized templates from a separately versioned source; it contributes to remote shared YAML composition, with simultaneous workspace repository access still requiring its own control.

D:

The pipeline's repository configuration and authorized GitHub connection determine which source repository and branch are used; this solves exact source repository selection, leaving simultaneous workspace repository access unresolved.

Question 138

A shared YAML template must conditionally insert different jobs based on a typed parameter when the pipeline plan is compiled. Which expression form is suitable?

  1. Use a condition checking succeeded()
  2. Use template expressions for parameter-driven structure
  3. Use stage-level conditions for branch-specific release
  4. Use secret pipeline variables for confidential values

Explanation

Correct Answer

B:

Compile-time template expressions evaluate parameters and statically available variables while expanding reusable YAML structure.

Incorrect Answers

A:

The succeeded() expression evaluates execution status and gates work on successful prerequisite completion; that acts on success-dependent execution, whereas the requested outcome is compile-time job graph generation.

C:

A stage condition can evaluate branch metadata alongside success state to prevent production deployment from nonapproved branches; here compile-time job graph generation is the target, not branch-gated production stage.

D:

Secret variables store sensitive settings outside checked-in YAML and require controlled injection into task environments; although that supports runtime secret injection, this scenario calls for compile-time job graph generation.

Question 139

A service connection may be used for production only when the run's source is from approved protected branches. Which static check supports the restriction?

  1. Set an approval-check timeout for unattended releases
  2. Add an Invoke Azure Function check
  3. Use post-check approval for completion review
  4. Add an Invoke REST API check
  5. Add branch control to a protected resource

Explanation

Correct Answer

E:

Branch control checks validate the source branch against an allowed list and can consider whether protection is present.

Incorrect Answers

A:

Check timeout bounds how long a deployment can wait for an approval or condition before a stage is marked unsuccessful; its effect is maximum pending approval duration, not approved branch origin gate.

B:

The Azure Function check invokes approved external logic as part of a protected resource's predeployment evaluation; that changes custom function-based release validation without delivering approved branch origin gate.

C:

Post-check approvals are evaluated after eligible dynamic checks according to the resource check order, providing an additional approval point; late-stage protected-resource approval cannot substitute for approved branch origin gate.

D:

REST API checks integrate an external policy decision with the resource approval lifecycle before deployment begins; approved branch origin gate falls outside the scope of external change-control API evaluation.

Question 140

Several GitHub repositories need to invoke a shared standardized build workflow as part of their own workflows. Which event enables reuse?

  1. Use tags-based release triggers
  2. Configure a workflow_call trigger
  3. Use batch for overlapping Azure Pipeline CI pushes
  4. Use Azure Repos build validation instead of YAML PR trigger

Explanation

Correct Answer

B:

workflow_call declares a reusable workflow that other workflows invoke with defined inputs and secrets. The called workflow can declare required inputs and secrets, allowing repositories to share a complete job definition.

Incorrect Answers

A:

Tag filters on push events allow packaging workflows to run for matching version references while ignoring ordinary branch changes; it handles release-reference-driven publication but cannot by itself deliver cross-workflow reuse invocation.

C:

Azure Pipelines CI batching can aggregate changes while a branch build is running, reducing unnecessary intermediate runs; that acts on coalescing frequent branch updates, whereas the requested outcome is cross-workflow reuse invocation.

D:

Azure Repos Git PR validation is configured through branch build-validation policies rather than relying on the YAML pr trigger used for other repository providers; Azure Repos target-branch PR validation concerns a different control point than cross-workflow reuse invocation.

Designing and Implementing Microsoft DevOps Solutions (AZ-400) Practice Tests