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

Question 40

Changes pass local tests but fail when platform configuration differs from production; what testing stage improves confidence?

  1. Validate release evidence before promotion
  2. Require a production-like predeployment validation environment
  3. Gate deployment on artifact signature verification
  4. Separate gating tests from exploratory tests

Explanation

Correct Answer

B:

A staging environment closely matching production configuration reveals deployment and integration issues before customer exposure.

Incorrect Answers

A:

A custom release validation step checks required evidence files and identities, failing promotion if mandatory documentation is absent; here production configuration rehearsal is the target, not completeness of signed release evidence.

C:

Signature verification confirms that the artifact was signed by an expected identity and has not been modified since signing; production configuration rehearsal cannot be inferred from trusted binary provenance enforcement alone.

D:

Maintain a deterministic release-gating suite while separately running broader exploratory tests and tracking their findings; the distinction is predictable promotion signal versus production configuration rehearsal.

Question 41

Integration tests from two feature branches interfere because both mutate the same shared staging database. What environment strategy should be introduced?

  1. Run integration tests against dependent services
  2. Use ephemeral test environments for parallel pull requests
  3. Run stress tests beyond expected capacity
  4. Use contract tests between producer and consumer

Explanation

Correct Answer

B:

Isolated short-lived test environments give each validation run independent dependencies and reduce cross-branch test contamination.

Incorrect Answers

A:

Integration tests exercise interactions between actual components or representative dependencies and detect contract and configuration mismatches; real component interaction verification cannot substitute for test dependency isolation per change.

C:

Stress tests deliberately exceed normal capacity to identify breaking points, failure modes, and recovery behavior; it contributes to overload failure characterization, with test dependency isolation per change still requiring its own control.

D:

Contract tests verify that producers and consumers satisfy agreed interface expectations before integration breaks at runtime; this solves cross-team API compatibility, leaving test dependency isolation per change unresolved.

Question 42

An AKS Deployment with multiple replicas must replace pods without dropping all instances at once. Which native workload behavior helps?

  1. Use Kubernetes rolling updates for deployment
  2. Use Kubernetes startup probes for slow initialization
  3. Use Kubernetes readiness probes during rollout
  4. Scan container images before promotion

Explanation

Correct Answer

A:

Kubernetes Deployment rolling updates replace pods incrementally according to readiness and surge/unavailable limits.

Incorrect Answers

B:

A startup probe provides an initialization grace period before other health probes begin enforcing normal thresholds; protected slow application startup concerns a different control point than orchestrator-managed gradual pod replacement.

C:

A readiness probe controls whether a pod is considered ready for Service traffic during startup and ongoing operation; here orchestrator-managed gradual pod replacement is the target, not pod readiness before load balancing.

D:

Container image vulnerability scanning inspects packaged layers and known component vulnerabilities before production use; although that supports image-layer vulnerability screening, this scenario calls for orchestrator-managed gradual pod replacement.

Question 43

A team must decide whether rapid feature releases are acceptable given current reliability risk. Which operational signal should inform the decision?

  1. Use Azure Boards query clauses for state and area path
  2. Compare availability SLO and error budget burn
  3. Use a vulnerability severity dashboard
  4. Use Azure Boards shared queries for team reporting

Explanation

Correct Answer

B:

Error budget consumption compares observed service failures with the tolerance implied by an SLO, guiding delivery-versus-reliability tradeoffs.

Incorrect Answers

A:

Query filters on State and Area Path scope the returned work items to lifecycle status and ownership hierarchy; its effect is backlog scope and state filtering, not allowable service failure consumption.

C:

Vulnerability reporting should group detected findings by severity, affected asset, and remediation status rather than only build totals; risk-ranked outstanding findings cannot substitute for allowable service failure consumption.

D:

Shared queries are accessible to authorized project members and can power work item query results on team dashboards; allowable service failure consumption falls outside the scope of reusable project-wide work queries.

Question 44

A pipeline needs read access to a private GitHub repository, and organization policy forbids broad personal tokens. What connection design should be selected?

  1. Use pipeline resource artifact download
  2. Protect external repository resource triggers
  3. Use a GitHub service connection with narrow permissions
  4. Use a repository resource for another Git repository

Explanation

Correct Answer

C:

A repository-scoped GitHub connection authenticates Azure Pipelines to the required source with explicitly limited permissions.

Incorrect Answers

A:

Pipeline resources identify producer pipelines and their runs so downstream workflows can download associated build artifacts; it handles downstream consumption of upstream build output but cannot by itself deliver restricted source-provider access.

B:

Repository resource triggers and release stage conditions should restrict which trusted source revisions may initiate sensitive downstream work; restricted source-provider access remains outside the responsibility of trusted cross-repository activation.

D:

YAML repository resources define additional repositories, their endpoints, and revisions for use in checkout or templates; cross-repository pipeline inputs concerns a different control point than restricted source-provider access.

Question 45

Several builds share the latest tag and teams cannot tell which commit produced a deployed container. What tagging policy improves provenance?

  1. Use Kubernetes liveness probes to restart stuck containers
  2. Use Helm charts for reusable Kubernetes configuration
  3. Use Kubernetes startup probes for slow initialization
  4. Tag an image using a source revision

Explanation

Correct Answer

D:

Including an immutable commit identifier in the image tag helps correlate build output to the exact source change.

Incorrect Answers

A:

A liveness probe detects unhealthy containers and can trigger restarts according to Kubernetes probe behavior; the distinction is automatic recovery of hung container versus commit-specific container traceability.

B:

Helm charts template related Kubernetes manifests and supply versioned configurable releases through values; commit-specific container traceability cannot be delivered through reusable Kubernetes manifest packaging.

C:

A startup probe provides an initialization grace period before other health probes begin enforcing normal thresholds; its effect is protected slow application startup, not commit-specific container traceability.

Question 46

Developers report slow feedback, yet build steps themselves are fast; jobs sit waiting for agents. Which metric isolates the issue?

  1. Check agent tool versions during environment drift
  2. Monitor retry-induced flaky tests
  3. Measure queue time separately from execution time
  4. Diagnose self-hosted agent exhaustion

Explanation

Correct Answer

C:

Queue delay measures waiting for eligible execution capacity before a job starts, distinct from run duration. Comparing this delay with agent availability distinguishes scheduling capacity problems from slow build commands.

Incorrect Answers

A:

Inspecting capabilities, installed runtimes, and agent image versions exposes toolchain drift between workers; this solves inconsistent host tooling diagnosis, leaving agent capacity waiting delay unresolved.

B:

Per-attempt test outcomes show instability hidden by final-pass status and support targeted flaky-test repair; this option addresses retry-masked test instability rather than addressing agent capacity waiting delay.

D:

Agent utilization and queue length reveal whether workload demand exceeds available qualified worker capacity; agent capacity waiting delay remains outside the responsibility of peak worker utilization shortage.

Question 47

A service's VM CPU utilization should notify operators within minutes when it exceeds a defined threshold. Which Azure Monitor rule type is suitable?

  1. Route pipeline deployment events into observability
  2. Configure diagnostic settings on an Azure resource
  3. Create a metric alert for high CPU
  4. Create a log search alert for correlated failures
  5. Set appropriate workspace data retention

Explanation

Correct Answer

C:

Metric alerts evaluate numerical time-series signals at configured frequency and thresholds for timely operational detection.

Incorrect Answers

A:

Deployment annotations or custom events associate release timing and versions with operational metrics and traces; although that supports release-and-runtime event correlation, this scenario calls for threshold detection from numeric metrics.

B:

Resource diagnostic settings send supported log and metric categories to destinations such as a Log Analytics workspace; threshold detection from numeric metrics cannot be inferred from forwarding resource telemetry alone.

D:

Log search alerts periodically evaluate KQL results from Azure Monitor Logs against configured alert conditions; threshold detection from numeric metrics cannot be delivered through query-based error-pattern alerting.

E:

Log Analytics retention and archive settings govern how long ingested records remain available for interactive queries and longer-term retrieval; its effect is policy-compliant telemetry lifetime, not threshold detection from numeric metrics.

Question 48

A new database schema will ship with an API update. The release team must detect actual component-integration faults and incompatibilities in the migration itself. Which TWO test approaches are necessary? Choose TWO.

  1. Include database migration tests before rollout
  2. Run integration tests against dependent services
  3. Run stress tests beyond expected capacity
  4. Run unit tests before packaging
  5. Use a test matrix for supported runtimes

Explanation

Correct Answers

A:

Migration tests exercise schema changes against representative database states and help detect incompatible or irreversible transformations; here the migration test checks the schema operation itself; a separate integration test checks communication with dependent services.

B:

Integration tests exercise interactions between actual components or representative dependencies and detect contract and configuration mismatches.

Incorrect Answers

C:

Stress tests deliberately exceed normal capacity to identify breaking points, failure modes, and recovery behavior; this solves overload failure characterization, leaving real component interaction verification unresolved.

D:

Unit tests exercise small components in isolation and are usually fast enough to provide immediate feedback during continuous integration; this option addresses low-cost component correctness rather than addressing real component interaction verification.

E:

Matrix execution expands a job over selected versions and operating systems, testing the product across supported combinations; it handles cross-platform runtime coverage but cannot by itself deliver real component interaction verification.

Question 49

An SRE team wants to shorten the period between an actual production fault and the first detection or alert. Which metric should it record?

  1. Use Azure Boards query clauses for state and area path
  2. Use a query-based Azure Boards chart
  3. Track mean time to detect
  4. Correlate incident counts with releases

Explanation

Correct Answer

C:

Mean time to detect measures detection latency and indicates how effectively monitoring surfaces incidents after they begin.

Incorrect Answers

A:

Query filters on State and Area Path scope the returned work items to lifecycle status and ownership hierarchy; backlog scope and state filtering concerns a different control point than incident detection delay.

B:

Charts built from supported work item queries visualize live result groupings and can be added to Azure DevOps dashboards; here incident detection delay is the target, not dynamic priority distribution.

D:

Time-aligning deployment events with incident counts reveals associations worth investigating without asserting deployment caused every incident; incident detection delay cannot be inferred from release-and-incident temporal relationship alone.

Question 50

An external service principal still uses a certificate that expires next week and has no automated renewal. Which operational control should be prioritized?

  1. Use a system-assigned managed identity for one Azure resource
  2. Assign only data-plane access for Key Vault secret retrieval
  3. Separate production and development deployment identities
  4. Rotate expiring application credentials before outage

Explanation

Correct Answer

D:

Credential expiry monitoring and planned rotation prevent authentication failures while maintaining auditability of replacement keys.

Incorrect Answers

A:

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 noninteractive identity credential continuity.

B:

Key Vault data-plane roles or access policies grant secret retrieval without general resource management authority; secret-read without infrastructure administration cannot substitute for noninteractive identity credential continuity.

C:

Distinct workload identities and scoped RBAC separate lower-trust development automation from production deployment authority; noninteractive identity credential continuity falls outside the scope of environment identity isolation.

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