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

Question 100

A QA lead needs to track how much source is executed by automated tests and also identify tests that change result across identical runs. Which TWO metrics address these goals? Choose TWO.

  1. Track flaky-test frequency
  2. Compare availability SLO and error budget burn
  3. Track rollback count by release
  4. Track code coverage trend
  5. Use Azure Boards shared queries for team reporting

Explanation

Correct Answers

A:

Flaky-test metrics identify tests with inconsistent outcomes across comparable runs and help prioritize stabilization work; the instability rate addresses reliability of test results; code coverage, the other requested measure, addresses exercised source paths.

D:

Code coverage measures which instrumented lines or branches run during tests; trends reveal changes in tested code surface.

Incorrect Answers

B:

Error budget consumption compares observed service failures with the tolerance implied by an SLO, guiding delivery-versus-reliability tradeoffs; its effect is allowable service failure consumption, not automated test execution coverage.

C:

Rollback frequency counts production deployments that are reverted and indicates a release quality problem not visible in build pass rates; that changes reversal rate after delivery without delivering automated test execution coverage.

E:

Shared queries are accessible to authorized project members and can power work item query results on team dashboards; automated test execution coverage falls outside the scope of reusable project-wide work queries.

Question 101

A network endpoint is required before a service can join a private network, and manual script order has caused intermittent failures. Which configuration style helps?

  1. Maintain legacy Azure Automation State Configuration while planning migration
  2. Use configuration validation in PR checks
  3. Build immutable VM images for repeatable agents
  4. Model infrastructure dependencies declaratively

Explanation

Correct Answer

D:

Declarative resource graphs encode dependencies and let the deployment engine schedule prerequisites before dependent resources.

Incorrect Answers

A:

Azure Automation State Configuration manages existing DSC node assignments; Microsoft has announced retirement in September 2027 and recommends transition to Azure Machine Configuration; this option addresses legacy DSC node assignment with migration rather than addressing dependency-aware desired infrastructure.

B:

Template linting and validation with representative parameter inputs detect missing settings before a promotion run; it handles configuration input completeness but cannot by itself deliver dependency-aware desired infrastructure.

C:

Image-based provisioning captures approved OS and tool versions as immutable templates from which new workers can be created; dependency-aware desired infrastructure remains outside the responsibility of reproducible worker operating system.

Question 102

Routine CI outputs should expire quickly, but signed release artifacts must be recoverable for a year. Which lifecycle policy design fits?

  1. Set cancellation timeout for cleanup
  2. Track build success rate by pipeline
  3. Diagnose self-hosted agent exhaustion
  4. Set artifact retention by compliance category

Explanation

Correct Answer

D:

Different retention requirements should be applied to short-lived build outputs and preserved release assets according to compliance needs.

Incorrect Answers

A:

Cancellation grace settings allow eligible cleanup work limited time to finish after a run is canceled; tiered artifact lifecycle cannot be inferred from graceful cancellation finalization alone.

B:

Success and failure ratios by pipeline reveal reliability problems in particular delivery definitions over time; the distinction is pipeline-specific pass rate versus tiered artifact lifecycle.

C:

Agent utilization and queue length reveal whether workload demand exceeds available qualified worker capacity; tiered artifact lifecycle cannot be delivered through peak worker utilization shortage.

Question 103

A PR receives rapid commits and older checks still consume runners even though newer revisions supersede them. Which workflow configuration helps?

  1. Configure path-filtered CI triggers
  2. Configure a GitHub pull_request workflow trigger
  3. Use GitHub Actions concurrency cancellation
  4. Use batch for overlapping Azure Pipeline CI pushes
  5. Configure a workflow_call trigger

Explanation

Correct Answer

C:

Concurrency groups with cancel-in-progress can stop superseded workflow runs and conserve capacity. Grouping runs by pull request or branch helps the newest revision replace obsolete in-flight validation.

Incorrect Answers

A:

YAML path include or exclude filters scope CI triggers to changes in specified repository paths; it contributes to changed-path CI eligibility, with canceling obsolete workflow executions still requiring its own control.

B:

The pull_request event runs selected workflows for PR activities, enabling validation before code is merged; this solves GitHub proposed-change verification, leaving canceling obsolete workflow executions unresolved.

D:

Azure Pipelines CI batching can aggregate changes while a branch build is running, reducing unnecessary intermediate runs; it handles coalescing frequent branch updates but cannot by itself deliver canceling obsolete workflow executions.

E:

workflow_call declares a reusable workflow that other workflows invoke with defined inputs and secrets; canceling obsolete workflow executions remains outside the responsibility of cross-workflow reuse invocation.

Question 104

A Kubernetes cluster experiences pod restarts and memory pressure; the team needs container and cluster telemetry in Azure Monitor. Which capability fits?

  1. Use KQL project to limit output columns
  2. Use Azure Monitor network monitoring
  3. Use Container insights for AKS workloads
  4. Use Azure Monitor for Storage

Explanation

Correct Answer

C:

Container insights gathers supported Kubernetes inventory, performance, and log data to support workload and node diagnosis.

Incorrect Answers

A:

project selects and can rename the columns returned by a KQL query, producing a focused investigation result; here cluster and pod health visibility is the target, not KQL selected-column shaping.

B:

Network monitoring capabilities integrate supported connectivity, flow, and performance signals for troubleshooting network paths; although that supports Azure network connection observability, this scenario calls for cluster and pod health visibility.

D:

Azure Monitor storage monitoring exposes relevant account metrics and diagnostic data for capacity and service performance analysis; the distinction is Azure Storage operational signals versus cluster and pod health visibility.

Question 105

A GitHub workflow calls an external service that does not yet support OIDC, and the token must not appear in repository YAML. Which GitHub storage mechanism fits?

  1. Restrict permissions to download signing secure files
  2. Use Azure Pipelines secure files for a signing file
  3. Mask sensitive values in logs
  4. Use GitHub encrypted secrets for a third-party API token

Explanation

Correct Answer

D:

GitHub Actions encrypted secrets supply protected values to authorized workflows at execution time. Limit access to the workflow that needs the token and prevent command logging from disclosing it.

Incorrect Answers

A:

Secure-file pipeline permissions limit which definitions may download protected file assets during runs; signing file consumer allowlist cannot substitute for encrypted workflow credential injection.

B:

Secure files store sensitive file assets separately from source control and provide pipeline permissions for controlled use; encrypted workflow credential injection falls outside the scope of protected binary credential material.

C:

Secret masking and safe command invocation reduce exposure, but scripts should avoid emitting credentials because redaction is not foolproof; it contributes to protection of pipeline log output, with encrypted workflow credential injection still requiring its own control.

Question 106

A production AKS cluster needs authenticated access to privately built OCI container images near the Azure deployment environment. Which service is suitable?

  1. Use a minimal runtime base image
  2. Build a multi-stage Docker image
  3. Use Kubernetes liveness probes to restart stuck containers
  4. Grant image pull rights to the workload identity
  5. Push build images to Azure Container Registry

Explanation

Correct Answer

E:

Azure Container Registry stores private container images and artifacts with Azure-integrated identity and access controls.

Incorrect Answers

A:

Selecting a minimal compatible base image limits installed packages and potential vulnerabilities while retaining required runtime libraries; that acts on smaller container attack surface, whereas the requested outcome is Azure-native private image storage.

B:

Multi-stage builds copy final outputs from a builder stage into a smaller runtime stage without shipping build-only dependencies; runtime image minimization concerns a different control point than Azure-native private image storage.

C:

A liveness probe detects unhealthy containers and can trigger restarts according to Kubernetes probe behavior; here Azure-native private image storage is the target, not automatic recovery of hung container.

D:

The identity used to retrieve images needs appropriate pull authorization to the registry scope before the nodes can start workloads; although that supports runtime registry pull permission, this scenario calls for Azure-native private image storage.

Question 107

Self-hosted build agents drift as tools are installed ad hoc; the team wants a standardized base recreated when versions change. Which method helps?

  1. Model infrastructure dependencies declaratively
  2. Use Azure Machine Configuration for guest compliance
  3. Separate secrets from configuration templates
  4. Build immutable VM images for repeatable agents

Explanation

Correct Answer

D:

Image-based provisioning captures approved OS and tool versions as immutable templates from which new workers can be created.

Incorrect Answers

A:

Declarative resource graphs encode dependencies and let the deployment engine schedule prerequisites before dependent resources; its effect is dependency-aware desired infrastructure, not reproducible worker operating system.

B:

Azure Machine Configuration evaluates guest operating-system configuration against defined policies and can support enforcement scenarios; that changes VM guest-state compliance without delivering reproducible worker operating system.

C:

Configuration code should reference protected secret delivery rather than embedding sensitive values in reusable templates; safe parameterization of infrastructure secrets cannot substitute for reproducible worker operating system.

Question 108

A new search implementation needs realistic production queries, but its responses must not affect live customer results. Which traffic strategy fits?

  1. Use rolling deployment to update instances incrementally
  2. Use Azure App Configuration Feature Manager
  3. Use a dark launch to validate backend behavior
  4. Use shadow traffic for compatibility testing

Explanation

Correct Answer

D:

Shadow traffic duplicates requests to a candidate system while production responses continue coming from the existing system.

Incorrect Answers

A:

Rolling deployment updates bounded sets of instances and keeps unaffected replicas serving traffic during the transition; it handles gradual replica replacement but cannot by itself deliver noncustomer-impacting candidate request replay.

B:

App Configuration feature management stores flag definitions and enables supported application frameworks to evaluate feature state; noncustomer-impacting candidate request replay remains outside the responsibility of centralized application feature controls.

C:

A dark launch runs new functionality without exposing results to end users, enabling observation before public activation; that acts on hidden runtime behavior evaluation, whereas the requested outcome is noncustomer-impacting candidate request replay.

Question 109

A pipeline needs to retrieve a certificate and key material through an audited Azure secret-management service. Which Key Vault object type is relevant?

  1. Rotate a compromised secret at the source
  2. Use an Azure Pipelines Key Vault-linked variable group
  3. Retrieve deployment secrets from Azure Key Vault
  4. Use secret rotation without rebuilding application binaries
  5. Use Key Vault certificates for managed certificate lifecycle

Explanation

Correct Answer

E:

Key Vault certificate objects manage certificate lifecycle and associated keys or secret representations under configured access policy.

Incorrect Answers

A:

Revoking and replacing the disclosed credential removes its future utility even if historical exposure cannot be undone; the distinction is containment after secret disclosure versus managed application certificate storage.

B:

A Key Vault-linked variable group maps selected vault secrets into authorized pipelines at runtime; managed application certificate storage cannot be delivered through reusable protected vault references.

C:

Key Vault protects secret values and supports controlled runtime retrieval without committing them to pipeline code; its effect is centralized runtime secret retrieval, not managed application certificate storage.

D:

External secret storage and supported runtime refresh or restart decouple credential lifecycle from application compilation; that changes independent credential update lifecycle without delivering managed application certificate storage.

Question 110

A developer has untracked generated directories but wants to leave tracked source modifications untouched. Which cleanup command family applies?

  1. Use git log with path filtering
  2. Use git clean for untracked build clutter
  3. Use git revert for a bad shared commit
  4. Use git reflog to recover a lost local tip
  5. Use git bisect to locate a regression

Explanation

Correct Answer

B:

git clean removes selected untracked files and directories, with a preview option to avoid accidental deletion.

Incorrect Answers

A:

git log with a pathspec filters commit history to changes touching selected paths; this solves file-scoped commit history, leaving untracked generated file cleanup unresolved.

C:

git revert creates a new inverse commit, avoiding rewritten shared ancestry and preserving an auditable correction; it handles undo without rewriting shared history but cannot by itself deliver untracked generated file cleanup.

D:

git reflog records local reference updates, often exposing prior commit hashes that can be restored before garbage collection; untracked generated file cleanup remains outside the responsibility of local reference move recovery.

E:

git bisect performs a binary search through commit history using good/bad test results to isolate the first failing change; that acts on identifying the first faulty commit, whereas the requested outcome is untracked generated file cleanup.

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