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

Question 430

A workflow must choose only runners equipped with a particular GPU class, not any available self-hosted machine. What should be configured?

  1. Cache dependencies in GitHub Actions
  2. Use a self-hosted GitHub runner for specialist hardware
  3. Use artifact attestations for release provenance
  4. Use runner labels to route jobs

Explanation

Correct Answer

D:

Labels identify runner characteristics and the runs-on selector can target machines with required labels. Tag eligible machines with the GPU capability and target those labels in the workflow runner selector.

Incorrect Answers

A:

Dependency caching saves reusable package-download data keyed by dependency state while leaving published build artifacts separately versioned; this solves reuse of expensive dependency downloads, leaving capability-specific GitHub job scheduling unresolved.

B:

Self-hosted runners execute jobs on administrator-managed machines where specialized devices and licensed tools can be installed; this option addresses workflow access to custom hardware rather than addressing capability-specific GitHub job scheduling.

C:

Artifact attestations associate verifiable provenance statements with build outputs, improving downstream verification of their origin; it handles verifiable GitHub-generated artifact provenance but cannot by itself deliver capability-specific GitHub job scheduling.

Question 431

Several services require identical test, staging, and production stage graphs but differ in deployment parameter values. Which template form is appropriate?

  1. Create a stages template for common releases
  2. Use task groups for legacy classic build tasks
  3. Use variable templates for shared nonsecret settings
  4. Use protected variable groups for secrets
  5. Avoid expanding secrets into compile-time templates
  6. Use template insertion for optional steps

Explanation

Correct Answer

A:

A stages template supplies an entire multi-stage workflow and accepts parameters for service-specific variation.

Incorrect Answers

B:

Task groups wrap reusable task sequences for classic pipelines, distinct from YAML template composition; reusable release phase graph cannot be inferred from classic-pipeline task reuse alone.

C:

Variable templates keep common nonsecret values in checked-in YAML for consistent versioned inclusion; the distinction is source-controlled configuration reuse versus reusable release phase graph.

D:

Variable groups can be authorized for specific pipelines and supplemented with approvals or checks where supported; reusable release phase graph cannot be delivered through authorized shared-secret consumption.

E:

Runtime secret variables or Key Vault retrieval keep sensitive values out of source-controlled template expansion and minimize accidental disclosure; its effect is separating secrets from YAML compilation, not reusable release phase graph.

F:

Template insertion can splice parameterized steps into the compiled pipeline while preserving the template's ordered structure; that changes optional compile-time step expansion without delivering reusable release phase graph.

Question 432

A project needs versioned how-to pages accessible alongside Boards and Pipelines without creating another public website. Which capability should be configured?

  1. Use an Azure DevOps project wiki
  2. Generate docs in a CI stage
  3. Use conventional commits for change classification
  4. Publish build provenance and release version

Explanation

Correct Answer

A:

Azure DevOps wikis give teams Markdown-based project documentation with collaborative editing and navigation inside the project.

Incorrect Answers

B:

A documentation build stage creates reference pages from current source or specifications and can fail when generated output is invalid; it contributes to documentation freshness on each integration, with native project knowledge repository still requiring its own control.

C:

Conventional Commits provides structured prefixes and breaking-change markers that tools can interpret for changelog and version generation; this solves parseable semantic commit history, leaving native project knowledge repository unresolved.

D:

Release metadata connecting artifact digest, build ID, commit SHA, and environment supports reproducibility and operational audit trails; this option addresses deployable artifact origin and destination rather than addressing native project knowledge repository.

Question 433

An outage was resolved but teams keep repeating the same trigger; which collaborative document should be recorded for follow-through?

  1. Automate changelog generation at tagged releases
  2. Publish a runbook alongside deployment assets
  3. Create a postincident retrospective document
  4. Use Markdown links to maintain navigation

Explanation

Correct Answer

C:

A blameless retrospective captures timeline, contributing conditions, detection gaps, and assigned follow-up actions for systemic improvement.

Incorrect Answers

A:

Comparing commits or merged pull requests between release tags establishes a bounded change set for each published version; release-bound change interval concerns a different control point than learning from production incidents.

B:

Packaging or linking version-matched runbooks with the release record makes operational procedures available for the deployed version; here learning from production incidents is the target, not incident-ready versioned operating guidance.

D:

Relative Markdown links keep repository documentation navigable and generally survive repository moves better than absolute site URLs; learning from production incidents cannot be inferred from portable internal document navigation alone.

Question 434

Three independent environments drift because administrators apply SQL changes manually. What release practice makes schema changes traceable and repeatable?

  1. Version database schema migrations with application code
  2. Validate schema changes on a production-like dataset
  3. Use a migration ordering gate before application startup
  4. Prevent secret exposure in migration logs
  5. Apply additive schema changes before removing fields

Explanation

Correct Answer

A:

Source-controlled migration scripts version database changes alongside application revisions and allow controlled execution in the release workflow.

Incorrect Answers

B:

Rehearsing migrations on realistic data volumes exposes locking, performance, and compatibility problems absent from trivial test fixtures; representative migration execution cannot substitute for versioned database evolution.

C:

Running compatible schema additions before deploying consumers prevents application startup against an unsupported database contract; versioned database evolution falls outside the scope of schema-before-dependent-code ordering.

D:

Protected secret injection and logging controls avoid writing database credentials to console output or retained artifacts; it contributes to migration credential confidentiality, with versioned database evolution still requiring its own control.

E:

Adding compatible schema structures before switching consumers and later removing old ones allows overlapping application versions to function; this solves coexistence-safe schema transformation, leaving versioned database evolution unresolved.

Question 435

Request telemetry and dependency telemetry contain a shared operation key, and analysts need one result containing data from both tables. Which KQL operation is relevant?

  1. Use KQL summarize percentiles for latency
  2. Use KQL join to correlate related tables
  3. Use Azure Monitor network monitoring
  4. Use Azure VM insights for guest performance

Explanation

Correct Answer

B:

join combines records from two datasets according to chosen keys and join semantics to build correlated views.

Incorrect Answers

A:

Percentile aggregation exposes tail behavior that arithmetic averages can hide, making high-latency outliers visible; cross-table telemetry correlation remains outside the responsibility of tail-latency distribution analysis.

C:

Network monitoring capabilities integrate supported connectivity, flow, and performance signals for troubleshooting network paths; Azure network connection observability concerns a different control point than cross-table telemetry correlation.

D:

VM insights collects supported guest performance and dependency data from configured virtual machines through monitoring agents; here cross-table telemetry correlation is the target, not virtual machine guest-state observability.

Question 436

A YAML pipeline imports template files from two GitHub repositories containing identically named paths. Which repository-resource setting prevents ambiguity?

  1. Connect GitHub via the Azure Pipelines GitHub App
  2. Use pipeline resource artifact download
  3. Configure GitHub status checks for Azure Pipeline validation
  4. Use multiple checkout steps
  5. Use a repository alias for cross-repository templates

Explanation

Correct Answer

E:

A named repository resource alias identifies the intended external template source and disambiguates references across the imported repositories.

Incorrect Answers

A:

The Azure Pipelines GitHub App authorizes access to selected repositories and integrates pipeline checks with GitHub pull requests; unambiguous template repository selection cannot be delivered through app-scoped GitHub pipeline integration.

B:

Pipeline resources identify producer pipelines and their runs so downstream workflows can download associated build artifacts; its effect is downstream consumption of upstream build output, not unambiguous template repository selection.

C:

The pipeline reports status, while GitHub branch rules must explicitly require the relevant status check before merge; that changes mandatory consumption of external CI status without delivering unambiguous template repository selection.

D:

Multiple checkout steps fetch the primary and declared secondary repositories into the job workspace; simultaneous workspace repository access cannot substitute for unambiguous template repository selection.

Question 437

A package needs to record CI provenance such as its build number but must not change precedence between equivalent published releases. Which SemVer field suits this?

  1. Record an OCI digest in the release manifest
  2. Prevent republishing the same version with different bytes
  3. Commit package lockfiles for reproducible dependency resolution
  4. Use build metadata without altering SemVer precedence
  5. Generate a software bill of materials with releases

Explanation

Correct Answer

D:

SemVer build metadata follows a plus sign and communicates extra information without affecting version precedence comparison.

Incorrect Answers

A:

Storing the image content digest with release metadata preserves the exact artifact identity for later provenance verification despite tag movement; this option addresses historic image provenance identity rather than addressing informational build identity suffix.

B:

Immutable package versions ensure that a given package name and version cannot silently acquire different contents; it handles stable package name-version mapping but cannot by itself deliver informational build identity suffix.

C:

A committed lockfile records resolved dependency versions and often integrity data, reducing drift across build environments; informational build identity suffix remains outside the responsibility of deterministic transitive dependency graph.

E:

A software bill of materials records software components and versions used in a build, supporting later dependency risk analysis; shipped dependency inventory concerns a different control point than informational build identity suffix.

Question 438

A template creates valid Azure resources but violates organizational naming or location rules. Which predeployment step should fail?

  1. Use Azure Monitor alert evaluation as a release check
  2. Gate deployment on artifact signature verification
  3. Validate infrastructure policy before applying IaC
  4. Separate gating tests from exploratory tests

Explanation

Correct Answer

C:

Policy and infrastructure validation can detect prohibited resource definitions before an IaC rollout changes live resources.

Incorrect Answers

A:

An Azure Monitor alert query check can block resource consumption while relevant monitored conditions violate deployment criteria; compliance of proposed resource definitions cannot be inferred from operational health gating before rollout alone.

B:

Signature verification confirms that the artifact was signed by an expected identity and has not been modified since signing; the distinction is trusted binary provenance enforcement versus compliance of proposed resource definitions.

D:

Maintain a deterministic release-gating suite while separately running broader exploratory tests and tracking their findings; its effect is predictable promotion signal, not compliance of proposed resource definitions.

Question 439

A deployment script will delete obsolete records after a retention-policy change, and the business requires recoverability. Which safeguard should precede execution?

  1. Back up production data before high-risk release
  2. Require a database compatibility test before promotion
  3. Use a migration ordering gate before application startup
  4. Validate schema changes on a production-like dataset

Explanation

Correct Answer

A:

A verified backup or restore point provides recoverability for destructive data operations that an application rollback cannot undo.

Incorrect Answers

B:

Integration tests exercising the candidate application against the migrated schema catch contract mismatch before production promotion; this solves application-schema contract verification, leaving prechange data recovery point unresolved.

C:

Running compatible schema additions before deploying consumers prevents application startup against an unsupported database contract; this option addresses schema-before-dependent-code ordering rather than addressing prechange data recovery point.

D:

Rehearsing migrations on realistic data volumes exposes locking, performance, and compatibility problems absent from trivial test fixtures; it handles representative migration execution but cannot by itself deliver prechange data recovery point.

Question 440

A pipeline rerun often passes without code changes; which metric helps isolate nondeterministic tests rather than genuine regressions?

  1. Use deployment duration trends
  2. Track code coverage trend
  3. Track flaky-test frequency
  4. Track rollback count by release

Explanation

Correct Answer

C:

Flaky-test metrics identify tests with inconsistent outcomes across comparable runs and help prioritize stabilization work.

Incorrect Answers

A:

Deployment duration by stage and environment identifies slower pipeline activities and supports targeted release-process optimization; here inconsistent test result frequency is the target, not environment rollout elapsed time.

B:

Code coverage measures which instrumented lines or branches run during tests; trends reveal changes in tested code surface; although that supports automated test execution coverage, this scenario calls for inconsistent test result frequency.

D:

Rollback frequency counts production deployments that are reverted and indicates a release quality problem not visible in build pass rates; the distinction is reversal rate after delivery versus inconsistent test result frequency.

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