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

Question 450

A pull request was approved, then new unreviewed commits were pushed; the team wants prior approval re-evaluated. What reviewer-policy option should be used?

  1. Reset votes when source changes
  2. Automatically include required path owners
  3. Require linked work items on pull requests
  4. Restrict direct pushes to the default branch

Explanation

Correct Answer

A:

Vote reset or approval restrictions after new pushes prevent stale approvals from authorizing substantially changed code.

Incorrect Answers

B:

Automatically included reviewer rules can match changed paths and request or require the designated code owners for those files; folder-specific expert review cannot substitute for review freshness after new commits.

C:

The linked work item check enforces or evaluates traceability between a pull request and work items according to branch-policy configuration; review freshness after new commits falls outside the scope of verified backlog reference at merge.

D:

Protected branch rules and targeted permissions can stop direct updates and require approved pull request workflows; it contributes to enforcing reviewed branch updates, with review freshness after new commits still requiring its own control.

Question 451

Backend changes may deploy today but a new pricing display should activate only when a product manager approves it tomorrow. Which pattern fits?

  1. Use a dark launch to validate backend behavior
  2. Use feature flags to decouple release and launch
  3. Use A/B testing for behavioral comparison
  4. Use deployment rings for population sequencing

Explanation

Correct Answer

B:

Feature flags control application behavior at runtime without requiring a second code deployment for every exposure decision.

Incorrect Answers

A:

A dark launch runs new functionality without exposing results to end users, enabling observation before public activation; independent functionality activation remains outside the responsibility of hidden runtime behavior evaluation.

C:

A/B testing assigns experiences to comparable cohorts and measures defined outcome metrics rather than focusing solely on release safety; controlled user-experience experiment concerns a different control point than independent functionality activation.

D:

Ring-based rollout promotes the same version through predefined user or device cohorts with validation between rings; here independent functionality activation is the target, not ordered cohort rollout.

Question 452

Teams need transaction errors, latency, and capacity behavior for several Azure Storage accounts in a centralized monitoring experience. Which monitoring area addresses this?

  1. Use KQL project to limit output columns
  2. Use KQL join to correlate related tables
  3. Write KQL with where and ago()
  4. Use Azure Monitor for Storage

Explanation

Correct Answer

D:

Azure Monitor storage monitoring exposes relevant account metrics and diagnostic data for capacity and service performance analysis.

Incorrect Answers

A:

project selects and can rename the columns returned by a KQL query, producing a focused investigation result; Azure Storage operational signals cannot be delivered through KQL selected-column shaping.

B:

join combines records from two datasets according to chosen keys and join semantics to build correlated views; its effect is cross-table telemetry correlation, not Azure Storage operational signals.

C:

KQL where predicates using timestamp comparison with ago() narrow a query to the relevant incident window and error condition; that changes recent error filtering by time without delivering Azure Storage operational signals.

Question 453

A pipeline contains unreliable long-running exploratory UI tests that block urgent security fixes; what strategy better protects release flow?

  1. Publish code coverage results in Azure Pipelines
  2. Separate gating tests from exploratory tests
  3. Validate infrastructure policy before applying IaC
  4. Require a production-like predeployment validation environment

Explanation

Correct Answer

B:

Maintain a deterministic release-gating suite while separately running broader exploratory tests and tracking their findings.

Incorrect Answers

A:

The code coverage publishing step imports supported reports from test tools into the pipeline's coverage reporting surface; this option addresses visible code coverage artifact rather than addressing predictable promotion signal.

C:

Policy and infrastructure validation can detect prohibited resource definitions before an IaC rollout changes live resources; predictable promotion signal remains outside the responsibility of compliance of proposed resource definitions.

D:

A staging environment closely matching production configuration reveals deployment and integration issues before customer exposure; that acts on production configuration rehearsal, whereas the requested outcome is predictable promotion signal.

Question 454

A library adds an optional API while preserving existing contracts and uses stable SemVer versions. What version change represents this?

  1. Increment the minor version for backward-compatible features
  2. Record an OCI digest in the release manifest
  3. Include commit SHA in artifact provenance
  4. Prevent republishing the same version with different bytes

Explanation

Correct Answer

A:

SemVer minor versions describe backward-compatible functionality additions without treating the update as a breaking change.

Incorrect Answers

B:

Storing the image content digest with release metadata preserves the exact artifact identity for later provenance verification despite tag movement; the distinction is historic image provenance identity versus additive nonbreaking release signal.

C:

A commit SHA uniquely identifies the source snapshot used by a build and supports traceability from deployment to repository state; additive nonbreaking release signal cannot be delivered through source snapshot identity for each build.

D:

Immutable package versions ensure that a given package name and version cannot silently acquire different contents; its effect is stable package name-version mapping, not additive nonbreaking release signal.

Question 455

A GitHub Actions job requests production credentials, but policy requires approval and a permitted branch before any such job runs. Which protection layer is relevant?

  1. Use a fine-grained personal access token when a PAT is unavoidable
  2. Restrict GITHUB_TOKEN to contents read
  3. Use GITHUB_TOKEN for same-repository workflow tasks
  4. Use protected environments to gate secret access

Explanation

Correct Answer

D:

GitHub environment protection rules can gate job execution and access to environment-scoped secrets. Required reviewers and branch restrictions on an environment gate the job before environment-scoped secrets are exposed.

Incorrect Answers

A:

Fine-grained personal access tokens can narrow repository selection, permissions, and expiration compared with broad classic tokens; it contributes to limited user-backed integration access, with guarded production secret exposure still requiring its own control.

B:

Declaring contents read while omitting unnecessary write scopes applies least privilege to the automatically issued job token; this solves read-only code checkout authorization, leaving guarded production secret exposure unresolved.

C:

GITHUB_TOKEN is automatically created for the workflow job and can be scoped through the permissions key for repository operations; this option addresses ephemeral built-in workflow authorization rather than addressing guarded production secret exposure.

Question 456

Architecture notes must be reviewed and versioned through Git history with developer workflows rather than edited as untracked documents. Which approach supports this?

  1. Generate docs in a CI stage
  2. Create a postincident retrospective document
  3. Use an Azure DevOps project wiki
  4. Automate changelog generation at tagged releases
  5. Store documentation in a Git-backed wiki

Explanation

Correct Answer

E:

A code wiki publishes Markdown from a Git repository, enabling reviewable commits and source-controlled updates.

Incorrect Answers

A:

A documentation build stage creates reference pages from current source or specifications and can fail when generated output is invalid; here source-controlled architecture documentation is the target, not documentation freshness on each integration.

B:

A blameless retrospective captures timeline, contributing conditions, detection gaps, and assigned follow-up actions for systemic improvement; although that supports learning from production incidents, this scenario calls for source-controlled architecture documentation.

C:

Azure DevOps wikis give teams Markdown-based project documentation with collaborative editing and navigation inside the project; source-controlled architecture documentation cannot be inferred from native project knowledge repository alone.

D:

Comparing commits or merged pull requests between release tags establishes a bounded change set for each published version; the distinction is release-bound change interval versus source-controlled architecture documentation.

Question 457

A busy service emits millions of similar trace events daily, overwhelming ingestion budgets while engineers still need representative diagnostics. Which practice can help?

  1. Use sampling to control high-volume telemetry
  2. Track dependency call duration
  3. Inspect end-to-end transaction traces
  4. Use live metrics for immediate release observation

Explanation

Correct Answer

A:

Telemetry sampling reduces selected event volume while retaining enough context for supported analysis and correlated investigation.

Incorrect Answers

B:

Dependency telemetry records outbound calls, timing, and success state, helping isolate latency outside the request handler itself; cost-aware telemetry volume control falls outside the scope of downstream dependency timing.

C:

Distributed tracing correlates spans across participating services so latency and errors can be localized along a single transaction path; it contributes to multi-service request causality, with cost-aware telemetry volume control still requiring its own control.

D:

Live Metrics supports low-latency observation of selected application signals during active incidents or deployments; this solves immediate application health feedback, leaving cost-aware telemetry volume control unresolved.

Question 458

A web app needs a managed identity and registry authorization before its deployment can successfully fetch an image. How should the IaC graph express ordering?

  1. Use Azure Policy to check IaC outcomes
  2. Use Bicep parameters for environment differences
  3. Use explicit dependencies for resource creation order
  4. Use Bicep outputs for dependent deployment values

Explanation

Correct Answer

C:

ARM/Bicep resource references and explicit dependencies establish provisioning order where one resource relies on another.

Incorrect Answers

A:

Azure Policy evaluates configured resource compliance and can deny changes that violate assigned policy definitions; that acts on enforcement of Azure resource guardrails, whereas the requested outcome is resource-graph provisioning dependencies.

B:

Template parameters keep environment-specific values separate from common resource declarations and support controlled reuse; externalized IaC environment settings concerns a different control point than resource-graph provisioning dependencies.

D:

Bicep outputs expose explicitly selected deployment values so subsequent steps can consume resolved resource identifiers; although that supports module-produced resource references, this scenario calls for resource-graph provisioning dependencies.

Question 459

Maintainers want to be informed when a deployment workflow fails, without polling the Actions page after every release. Which event-based response should be configured?

  1. Calculate lead time for changes from source and deployment
  2. Investigate change failure rate using incident linkage
  3. Configure Azure Pipelines build failure subscriptions
  4. Create a GitHub Actions failure notification

Explanation

Correct Answer

D:

Workflow failure events can trigger supported notifications or an automation workflow to notify designated responders.

Incorrect Answers

A:

Joining source change timestamps with production deployment records yields change lead time across build, review, and release processes; its effect is source-to-production delivery latency, not reactive GitHub workflow failure alert.

B:

Linking deployments to service-impacting incidents or remediation events distinguishes risky releases from merely failed jobs; that changes customer-impacting deployment quality without delivering reactive GitHub workflow failure alert.

C:

Azure DevOps notifications can subscribe recipients to selected pipeline completion and failure events with appropriate filters; filtered Azure Pipelines failure awareness cannot substitute for reactive GitHub workflow failure alert.

Question 460

A team wants changelog entries grouped by enhancement and bug fix without hand-copying commit histories. What should drive the release-note automation?

  1. Use conventional commits for change classification
  2. Generate release notes from labeled pull requests
  3. Use an Azure DevOps project wiki
  4. Document decisions in architecture decision records

Explanation

Correct Answer

B:

Structured pull request labels and merged change metadata can be transformed into categorized release notes by a release workflow.

Incorrect Answers

A:

Conventional Commits provides structured prefixes and breaking-change markers that tools can interpret for changelog and version generation; it handles parseable semantic commit history but cannot by itself deliver categorized change summary automation.

C:

Azure DevOps wikis give teams Markdown-based project documentation with collaborative editing and navigation inside the project; that acts on native project knowledge repository, whereas the requested outcome is categorized change summary automation.

D:

Architecture decision records preserve context, considered alternatives, the chosen decision, and consequences in versioned documentation; recorded architectural tradeoffs concerns a different control point than categorized change summary automation.

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