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

Question 420

Test owners want to know how many bugs are discovered only after production release relative to defects detected earlier. Which quality measure is most informative?

  1. Use a cumulative flow diagram
  2. Use burndown to assess sprint progress
  3. Track change failure rate
  4. Measure lead time for changes
  5. Track escaped defect rate
  6. Track time to restore service

Explanation

Correct Answer

E:

Escaped defects identify problems that pass preproduction verification, allowing evaluation of the effectiveness of the testing process.

Incorrect Answers

A:

A cumulative flow diagram shows counts in each workflow state across dates, making bottlenecks and expanding queues visible; postrelease defect escape cannot be delivered through stage-by-stage flow bottlenecks.

B:

Burndown charts plot remaining scope against time and reveal whether work is being completed at the rate needed for the sprint; its effect is remaining-sprint-work trend, not postrelease defect escape.

C:

Change failure rate measures the share of production changes that produce degraded service or need restoration actions; that changes production deployment failure impact without delivering postrelease defect escape.

D:

Lead time for changes measures elapsed time from a change entering the delivery stream to successful production deployment; commit-to-production elapsed time cannot substitute for postrelease defect escape.

F:

Time to restore service captures the elapsed time required to recover normal operation after a production incident; it contributes to incident recovery duration, with postrelease defect escape still requiring its own control.

Question 421

Investigators need a line chart of failed requests per five-minute interval rather than a list of individual request records. Which KQL aggregation pattern fits?

  1. Use KQL summarize percentiles for latency
  2. Write KQL with where and ago()
  3. Use Azure Monitor network monitoring
  4. Use summarize count() by bin() in KQL
  5. Use KQL join to correlate related tables
  6. Use KQL extend for computed fields

Explanation

Correct Answer

D:

summarize count() by bin(timestamp, 5m) groups records into time buckets suitable for trend visualization. Filter failed requests first, then aggregate by the chosen time bin before rendering the trend.

Incorrect Answers

A:

Percentile aggregation exposes tail behavior that arithmetic averages can hide, making high-latency outliers visible; this option addresses tail-latency distribution analysis rather than addressing time-bucketed failure counts.

B:

KQL where predicates using timestamp comparison with ago() narrow a query to the relevant incident window and error condition; it handles recent error filtering by time but cannot by itself deliver time-bucketed failure counts.

C:

Network monitoring capabilities integrate supported connectivity, flow, and performance signals for troubleshooting network paths; time-bucketed failure counts remains outside the responsibility of Azure network connection observability.

E:

join combines records from two datasets according to chosen keys and join semantics to build correlated views; cross-table telemetry correlation concerns a different control point than time-bucketed failure counts.

F:

extend adds calculated columns derived from existing expressions without requiring data to be rewritten at ingestion; here time-bucketed failure counts is the target, not calculated query result dimensions.

Question 422

Multiple pipeline definitions need a fully specified security scan job with its own pool and outputs. Which template form fits?

  1. Create a stages template for common releases
  2. Version shared templates by repository ref
  3. Create a steps template for repeated build commands
  4. Create a jobs template for common verification jobs

Explanation

Correct Answer

D:

A jobs template encapsulates job definitions so each caller obtains the same validated worker and task structure.

Incorrect Answers

A:

A stages template supplies an entire multi-stage workflow and accepts parameters for service-specific variation; reusable complete job cannot be inferred from reusable release phase graph alone.

B:

Pinning a template repository resource to a reviewed tag or commit controls when consuming pipelines receive template revisions; the distinction is predictable shared-template version versus reusable complete job.

C:

A steps template packages common task sequences for inclusion by multiple pipelines without duplicating source text; reusable complete job cannot be delivered through reusable task sequence.

Question 423

A new pod starts its process but cannot reach its database yet; traffic should wait until dependencies are functional. Which probe is relevant?

  1. Grant image pull rights to the workload identity
  2. Use a minimal runtime base image
  3. Use Kubernetes liveness probes to restart stuck containers
  4. Use Kubernetes readiness probes during rollout

Explanation

Correct Answer

D:

A readiness probe controls whether a pod is considered ready for Service traffic during startup and ongoing operation.

Incorrect Answers

A:

The identity used to retrieve images needs appropriate pull authorization to the registry scope before the nodes can start workloads; it contributes to runtime registry pull permission, with pod readiness before load balancing still requiring its own control.

B:

Selecting a minimal compatible base image limits installed packages and potential vulnerabilities while retaining required runtime libraries; this solves smaller container attack surface, leaving pod readiness before load balancing unresolved.

C:

A liveness probe detects unhealthy containers and can trigger restarts according to Kubernetes probe behavior; this option addresses automatic recovery of hung container rather than addressing pod readiness before load balancing.

Question 424

A product has two subteams with separate areas and iterations, and each needs its own boards and sprint settings. Which Azure DevOps structure supports this?

  1. Use Basic access for typical development features
  2. Restrict agent pool use to trusted pipelines
  3. Separate access level from security permissions
  4. Use an Azure Resource Manager service connection
  5. Use a project team for backlog ownership

Explanation

Correct Answer

E:

Project teams have backlog settings and area/iteration associations that organize work tracking within a shared project.

Incorrect Answers

A:

Basic access supports core Azure DevOps development features subject to the project's security permissions; here team-specific Boards configuration is the target, not full everyday developer feature access.

B:

Agent pools have their own access controls and pipeline permissions, limiting which definitions can execute on sensitive workers; although that supports protected worker-pool consumption, this scenario calls for team-specific Boards configuration.

C:

Access level controls feature entitlements while repository and branch permissions govern actions on specific project resources; team-specific Boards configuration cannot be inferred from distinction between entitlement and permission alone.

D:

Azure Resource Manager service connections provide controlled Azure authentication and target scope to pipeline tasks; the distinction is authorized pipeline Azure connection versus team-specific Boards configuration.

Question 425

A deployment command prints an API key as part of its verbose output; the team needs to prevent the key from appearing in retained run logs. What action is necessary?

  1. Use Key Vault certificates for managed certificate lifecycle
  2. Prefer workload federation over stored cloud secrets
  3. Use an Azure Pipelines Key Vault-linked variable group
  4. Mask sensitive values in logs

Explanation

Correct Answer

D:

Secret masking and safe command invocation reduce exposure, but scripts should avoid emitting credentials because redaction is not foolproof.

Incorrect Answers

A:

Key Vault certificate objects manage certificate lifecycle and associated keys or secret representations under configured access policy; managed application certificate storage cannot substitute for protection of pipeline log output.

B:

OIDC or workload identity federation exchanges short-lived trust assertions for cloud tokens without long-lived stored application secrets; protection of pipeline log output falls outside the scope of short-lived token-based cloud trust.

C:

A Key Vault-linked variable group maps selected vault secrets into authorized pipelines at runtime; it contributes to reusable protected vault references, with protection of pipeline log output still requiring its own control.

Question 426

The source remains in GitHub and backlog tracking remains in Azure Boards; product owners need linked PRs and commits shown on work items. What should an administrator configure?

  1. Connect an Azure Boards project to GitHub repositories
  2. Link commits to Azure Boards work items
  3. Associate pipeline runs with commits
  4. Link a pull request to its fixing issue
  5. Reference pull requests in release notes

Explanation

Correct Answer

A:

The Azure Boards GitHub connection associates repository activity with work items without migrating either the code or backlog.

Incorrect Answers

B:

Referencing work-item IDs from commits and pull requests creates navigable development links in the work item and improves auditability; code-to-backlog traceability concerns a different control point than cross-service work-item integration.

C:

Pipeline run metadata and immutable source commit identifiers connect produced artifacts to their source revision and build results; here cross-service work-item integration is the target, not build-to-source provenance.

D:

GitHub closing keywords in pull request descriptions link issues to code and can close the referenced issue when the PR merges into the default branch; although that supports issue closure with code evidence, this scenario calls for cross-service work-item integration.

E:

Release records linked to merged pull requests and associated commits show the approved changes represented by a published build; cross-service work-item integration cannot be inferred from release-to-change evidence alone.

Question 427

A Bicep change passes code review but deployment later fails because an expected parameter is omitted. Which premerge gate would have caught the issue?

  1. Use environment expiration or cleanup automation
  2. Use configuration validation in PR checks
  3. Model infrastructure dependencies declaratively
  4. Use desired state configuration for server settings
  5. Build immutable VM images for repeatable agents

Explanation

Correct Answer

B:

Template linting and validation with representative parameter inputs detect missing settings before a promotion run.

Incorrect Answers

A:

Automated teardown or time-to-live policies remove short-lived environments once they are no longer required; its effect is bounded ephemeral environment lifetime, not configuration input completeness.

C:

Declarative resource graphs encode dependencies and let the deployment engine schedule prerequisites before dependent resources; dependency-aware desired infrastructure cannot substitute for configuration input completeness.

D:

Desired State Configuration describes target machine settings so configuration engines can detect or remediate drift; configuration input completeness falls outside the scope of standardized operating-system state.

E:

Image-based provisioning captures approved OS and tool versions as immutable templates from which new workers can be created; it contributes to reproducible worker operating system, with configuration input completeness still requiring its own control.

Question 428

An organization wants IaC to create policy assignments at a management-group level rather than only resource-group-scoped workloads. What authoring choice matters?

  1. Use explicit dependencies for resource creation order
  2. Use what-if before infrastructure deployment
  3. Use template validation before deploying resources
  4. Use deployment scopes for governance

Explanation

Correct Answer

D:

Bicep and ARM deployments support appropriate target scopes, with authorization and resources matched to management or subscription hierarchy.

Incorrect Answers

A:

ARM/Bicep resource references and explicit dependencies establish provisioning order where one resource relies on another; it handles resource-graph provisioning dependencies but cannot by itself deliver nonresource-group IaC target.

B:

ARM what-if previews intended resource-state differences from a template without applying those changes; nonresource-group IaC target remains outside the responsibility of preapply infrastructure delta inspection.

C:

Template compilation and validation detect authoring errors before deployment attempts affect live resources; that acts on predeployment declarative syntax checking, whereas the requested outcome is nonresource-group IaC target.

Question 429

A regulated repository needs an owner-approved review before modifications under the infrastructure directory merge to the default branch. Which policy pairing is appropriate?

  1. Use a GitHub organization team for consistent access
  2. Control branch creation separately from contributions
  3. Require approvals from CODEOWNERS in GitHub
  4. Restrict force pushes on protected branches

Explanation

Correct Answer

C:

CODEOWNERS identifies responsible reviewers, and branch protection can require code owner review before merging.

Incorrect Answers

A:

GitHub teams grant repository roles to managed groups so membership changes propagate to the repositories they can access; the distinction is group-managed multi-repo permissions versus protected ownership approval.

B:

Azure Repos separates creating branches from contributing to branches, allowing more targeted governance of branch namespaces; protected ownership approval cannot be delivered through branch creation authority.

D:

Force push permissions govern rewriting and deletion of branches or tags, a higher-risk action than ordinary contribution; that changes prevention of shared-history replacement without delivering protected ownership approval.

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.

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