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

Question 190

A request API's average latency looks normal but customers report rare severe delays; analysts need P95 and P99 response-time metrics. Which KQL function is most relevant?

  1. Use Container insights for AKS workloads
  2. Write KQL with where and ago()
  3. Use KQL join to correlate related tables
  4. Use KQL summarize percentiles for latency

Explanation

Correct Answer

D:

Percentile aggregation exposes tail behavior that arithmetic averages can hide, making high-latency outliers visible.

Incorrect Answers

A:

Container insights gathers supported Kubernetes inventory, performance, and log data to support workload and node diagnosis; this solves cluster and pod health visibility, leaving tail-latency distribution analysis unresolved.

B:

KQL where predicates using timestamp comparison with ago() narrow a query to the relevant incident window and error condition; this option addresses recent error filtering by time rather than addressing tail-latency distribution analysis.

C:

join combines records from two datasets according to chosen keys and join semantics to build correlated views; it handles cross-table telemetry correlation but cannot by itself deliver tail-latency distribution analysis.

Question 191

Eight repositories repeat the same lint-install-test sequence, and platform engineers need to fix that sequence centrally. Which reusable YAML element applies?

  1. Create a jobs template for common verification jobs
  2. Use variable templates for shared nonsecret settings
  3. Keep templates in source control
  4. Create a steps template for repeated build commands
  5. Use task groups for legacy classic build tasks
  6. Use extends templates to enforce pipeline structure

Explanation

Correct Answer

D:

A steps template packages common task sequences for inclusion by multiple pipelines without duplicating source text.

Incorrect Answers

A:

A jobs template encapsulates job definitions so each caller obtains the same validated worker and task structure; although that supports reusable complete job, this scenario calls for reusable task sequence.

B:

Variable templates keep common nonsecret values in checked-in YAML for consistent versioned inclusion; reusable task sequence cannot be inferred from source-controlled configuration reuse alone.

C:

Storing YAML templates in version control provides pull request review, history, and reproducible pipeline definitions; the distinction is auditable pipeline-as-code evolution versus reusable task sequence.

E:

Task groups wrap reusable task sequences for classic pipelines, distinct from YAML template composition; its effect is classic-pipeline task reuse, not reusable task sequence.

F:

Extends templates define the outer pipeline structure and can constrain accepted parameters so projects cannot bypass standardized stages casually; that changes governing the entire pipeline scaffold without delivering reusable task sequence.

Question 192

Contributors to a monorepo need only the services/payments tree locally, without displaying thousands of unrelated directories. Which Git feature helps?

  1. Use Git submodules when pinning a separate repository
  2. Use a binary artifact repository rather than Git history
  3. Add .gitignore for local build outputs
  4. Use sparse checkout in a large monorepo

Explanation

Correct Answer

D:

Sparse checkout limits the working-tree paths populated for a clone while retaining repository history semantics.

Incorrect Answers

A:

A submodule records a commit pointer to another repository, so the superproject pins a chosen revision; selective local working tree population falls outside the scope of separately versioned repository reference.

B:

Pipeline artifacts or package repositories store generated binaries by build or version without inflating source-control history; it contributes to generated build output storage, with selective local working tree population still requiring its own control.

C:

The .gitignore file lists untracked path patterns Git should ignore; previously tracked files need separate untracking; this solves exclude machine-local generated files, leaving selective local working tree population unresolved.

Question 193

A production resource owner needs to reject pipelines that do not extend a designated secure YAML template. What resource check serves this rule?

  1. Pass environment-specific data through parameters
  2. Use extends templates to enforce pipeline structure
  3. Use a required template environment check
  4. Use protected variable groups for secrets

Explanation

Correct Answer

C:

The required template check evaluates whether a pipeline follows an approved extending template before a protected resource is used.

Incorrect Answers

A:

Explicit parameters separate environment configuration from the common deployment logic, avoiding copied YAML definitions; controlled variation of a shared workflow concerns a different control point than enforced shared template adoption.

B:

Extends templates define the outer pipeline structure and can constrain accepted parameters so projects cannot bypass standardized stages casually; here enforced shared template adoption is the target, not governing the entire pipeline scaffold.

D:

Variable groups can be authorized for specific pipelines and supplemented with approvals or checks where supported; enforced shared template adoption cannot be inferred from authorized shared-secret consumption alone.

Question 194

Operators want an escalation when several production promotions fail during a short period, not after every individual nonproduction test failure. What should the alert evaluate?

  1. Use feedback-loop work items for recurring incidents
  2. Alert on a rising failed-deployment ratio
  3. Configure Azure Pipelines build failure subscriptions
  4. Compare reliability before and after release

Explanation

Correct Answer

B:

A deployment outcome metric filtered to production and evaluated over a time window detects a sustained release reliability problem.

Incorrect Answers

A:

Turning incident findings into tracked prioritized work items with ownership and linked operational evidence makes reliability work part of delivery; that changes incident-to-backlog improvement traceability without delivering sustained production promotion failures.

C:

Azure DevOps notifications can subscribe recipients to selected pipeline completion and failure events with appropriate filters; sustained production promotion failures falls outside the scope of filtered Azure Pipelines failure awareness.

D:

Compare latency, error rate, and resource saturation for the candidate against a baseline under similar traffic before expanding exposure; it contributes to risk-based canary expansion decision, with sustained production promotion failures still requiring its own control.

Question 195

A pipeline must wait on an approval-oriented task without reserving a compute agent to sit idle for hours. Which job type can reduce waste when supported tasks permit?

  1. Use a server job for external approval orchestration
  2. Use a matrix strategy for independent test variants
  3. Use job timeout settings for hung processes
  4. Use reusable stages for repeated regional deployments

Explanation

Correct Answer

A:

Agentless server jobs execute supported orchestration tasks on the service, avoiding a long-running reserved worker for approval waits.

Incorrect Answers

B:

A matrix strategy creates related job variants from configuration values, letting each variant run with its own parameters; that acts on parameterized parallel test expansion, whereas the requested outcome is agentless approval waiting.

C:

Job or task timeout settings place an upper limit on execution, allowing stalled runs to fail and free capacity; stalled job resource protection concerns a different control point than agentless approval waiting.

D:

A parameterized stage template lets each regional stage share tested deployment steps while supplying distinct environment values; here agentless approval waiting is the target, not templated regional deployment stages.

Question 196

GitHub Actions deploys into an Azure subscription, and the organization prohibits checking cloud credentials into repository secrets. Which authentication architecture fits?

  1. Restrict federated credential trust to a protected workflow
  2. Use GitHub Actions OIDC federation to Azure
  3. Use a system-assigned managed identity for one Azure resource
  4. Use an Entra service principal for non-Azure automation

Explanation

Correct Answer

B:

GitHub OIDC tokens can be trusted through a federated credential on an Entra application, enabling short-lived Azure tokens.

Incorrect Answers

A:

Federated identity subject and related trust conditions should match the intended protected GitHub workflow context rather than arbitrary jobs; short-lived GitHub cloud authentication cannot be delivered through bounded OIDC trust assertions.

C:

A system-assigned managed identity is tied to the lifecycle of one Azure resource and can obtain Entra tokens without stored passwords; that changes resource-lifecycle-bound workload identity without delivering short-lived GitHub cloud authentication.

D:

An Entra application service principal can represent external automation, with access governed by RBAC and an appropriate credential method; external application access to Azure cannot substitute for short-lived GitHub cloud authentication.

Question 197

A golden self-hosted agent image accidentally contains a cloud service credential and is cloned broadly. Which maintenance redesign prevents this class of leakage?

  1. Use ephemeral self-hosted runners
  2. Use agent demands and capabilities
  3. Use container jobs to normalize build tooling
  4. Keep deployment credentials outside agent images

Explanation

Correct Answer

D:

Inject credentials at job runtime with short-lived identity or protected secrets rather than baking them into reusable machine images.

Incorrect Answers

A:

Ephemeral self-hosted runners are registered for a single job lifecycle, reducing residual cross-job state risks; this option addresses one-job runner lifecycle rather than addressing elimination of image-embedded credentials.

B:

Agent capabilities advertise available tools or attributes, and demands constrain scheduling to matching agents; it handles tool-aware agent placement but cannot by itself deliver elimination of image-embedded credentials.

C:

Container jobs run task steps inside a specified container image, making tool versions more repeatable across compatible hosts; elimination of image-embedded credentials remains outside the responsibility of isolated standardized build environment.

Question 198

An engineering project already uses Azure Deployment Environments and needs developers to provision approved test environments without full subscription administration rights. Which existing capability provides this?

  1. Use Azure Machine Configuration for guest compliance
  2. Use environment expiration or cleanup automation
  3. Use Azure Deployment Environments for self-service
  4. Use desired state configuration for server settings

Explanation

Correct Answer

C:

Azure Deployment Environments supports catalog-based self-service provisioning today, but existing users must migrate before its announced February 2027 retirement.

Incorrect Answers

A:

Azure Machine Configuration evaluates guest operating-system configuration against defined policies and can support enforcement scenarios; controlled developer self-provisioning cannot be inferred from VM guest-state compliance alone.

B:

Automated teardown or time-to-live policies remove short-lived environments once they are no longer required; the distinction is bounded ephemeral environment lifetime versus controlled developer self-provisioning.

D:

Desired State Configuration describes target machine settings so configuration engines can detect or remediate drift; its effect is standardized operating-system state, not controlled developer self-provisioning.

Question 199

A platform group maintains access to twelve repositories and wants role changes to follow group membership automatically. Which GitHub construct scales the process?

  1. Use a fine-grained personal access token when a PAT is unavoidable
  2. Use GitHub organization teams for access management
  3. Limit GitHub App repository installation scope
  4. Use pull requests from forks without exposing repository secrets

Explanation

Correct Answer

B:

Organization teams organize members and assign repository roles consistently rather than maintaining individuals one by one.

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 centralized team-to-repository authorization still requiring its own control.

C:

GitHub App installations can be restricted to selected repositories so tokens cannot access unrelated codebases; this option addresses installation-specific repository allowlisting rather than addressing centralized team-to-repository authorization.

D:

Treat fork PR events as untrusted and avoid privileged contexts that run attacker-controlled code with sensitive secrets; it handles untrusted contribution execution boundary but cannot by itself deliver centralized team-to-repository authorization.

Question 200

A customer incident requires keeping one specific build's logs and artifacts longer than the project's normal cleanup schedule. What retention action helps?

  1. Diagnose self-hosted agent exhaustion
  2. Set artifact retention by compliance category
  3. Identify unreliable external service dependencies
  4. Pin important runs from automatic retention

Explanation

Correct Answer

D:

Retention leases or supported keep-forever controls can protect selected runs and their records from routine expiration.

Incorrect Answers

A:

Agent utilization and queue length reveal whether workload demand exceeds available qualified worker capacity; here exceptional run preservation is the target, not peak worker utilization shortage.

B:

Different retention requirements should be applied to short-lived build outputs and preserved release assets according to compliance needs; although that supports tiered artifact lifecycle, this scenario calls for exceptional run preservation.

C:

Failure categorization by task and external dependency distinguishes platform or network outages from code defects; exceptional run preservation cannot be inferred from external dependency build failures alone.

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