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

Question 80

A security auditor must later identify which container build was scanned even if human-readable image tags are reassigned. What version identifier should the release record retain?

  1. Use a unique build ID for pipeline artifacts
  2. Increment the minor version for backward-compatible features
  3. Use CalVer for date-oriented platform releases
  4. Include commit SHA in artifact provenance
  5. Record an OCI digest in the release manifest

Explanation

Correct Answer

E:

Storing the image content digest with release metadata preserves the exact artifact identity for later provenance verification despite tag movement.

Incorrect Answers

A:

A pipeline run or build ID supplies a unique execution identity that can be combined with artifact names and retention rules; historic image provenance identity falls outside the scope of per-run artifact disambiguation.

B:

SemVer minor versions describe backward-compatible functionality additions without treating the update as a breaking change; it contributes to additive nonbreaking release signal, with historic image provenance identity still requiring its own control.

C:

Calendar versioning encodes release time using a defined calendar scheme and suits time-driven delivery policies; this solves calendar-anchored release identity, leaving historic image provenance identity unresolved.

D:

A commit SHA uniquely identifies the source snapshot used by a build and supports traceability from deployment to repository state; this option addresses source snapshot identity for each build rather than addressing historic image provenance identity.

Question 81

A product owner needs to see whether the team finishes bugs at the expense of new features over several iterations. Which chart should be configured?

  1. Use deployment duration trends
  2. Track rollback count by release
  3. Use a vulnerability severity dashboard
  4. Analyze backlog throughput by work item type

Explanation

Correct Answer

D:

Completed work items grouped by type and iteration reveal throughput composition rather than an undifferentiated completed-task count.

Incorrect Answers

A:

Deployment duration by stage and environment identifies slower pipeline activities and supports targeted release-process optimization; environment rollout elapsed time concerns a different control point than bug-versus-feature delivery mix.

B:

Rollback frequency counts production deployments that are reverted and indicates a release quality problem not visible in build pass rates; here bug-versus-feature delivery mix is the target, not reversal rate after delivery.

C:

Vulnerability reporting should group detected findings by severity, affected asset, and remediation status rather than only build totals; although that supports risk-ranked outstanding findings, this scenario calls for bug-versus-feature delivery mix.

Question 82

A CI identity needs to deploy resources only within one application resource group, not modify every subscription workload. Which authorization arrangement is most restrictive?

  1. Restrict federated credential trust to a protected workflow
  2. Scope service principal RBAC at the resource group
  3. Use an Entra service principal for non-Azure automation
  4. Use a system-assigned managed identity for one Azure resource

Explanation

Correct Answer

B:

Azure RBAC assigned to the deployment identity at the target resource group limits actions to that scope and inherited children.

Incorrect Answers

A:

Federated identity subject and related trust conditions should match the intended protected GitHub workflow context rather than arbitrary jobs; that changes bounded OIDC trust assertions without delivering resource-group-bounded deployment privilege.

C:

An Entra application service principal can represent external automation, with access governed by RBAC and an appropriate credential method; resource-group-bounded deployment privilege falls outside the scope of external application access to Azure.

D:

A system-assigned managed identity is tied to the lifecycle of one Azure resource and can obtain Entra tokens without stored passwords; it contributes to resource-lifecycle-bound workload identity, with resource-group-bounded deployment privilege still requiring its own control.

Question 83

A DevOps dashboard must report both the time that work spends in active development and the time from a code change to production. Which TWO measures provide these distinct views? Choose TWO.

  1. Distinguish deployment frequency from build frequency
  2. Track work in progress limits
  3. Measure cycle time from work start to completion
  4. Measure lead time for changes
  5. Track change failure rate

Explanation

Correct Answers

C:

Cycle time tracks elapsed time once work starts until completion, exposing delays within the active delivery workflow.

D:

Lead time for changes measures elapsed time from a change entering the delivery stream to successful production deployment; paired with cycle time, this measure helps separate active work duration from the broader commit-to-production delay.

Incorrect Answers

A:

Deployment frequency counts successful releases to the target production environment rather than CI runs or commits; active-work duration remains outside the responsibility of production release cadence.

B:

Work-in-progress limits cap concurrent items in a workflow state, reducing context switching and highlighting constrained stages; that acts on limiting concurrent work, whereas the requested outcome is active-work duration.

E:

Change failure rate measures the share of production changes that produce degraded service or need restoration actions; although that supports production deployment failure impact, this scenario calls for active-work duration.

Question 84

Independent teams deploy APIs on different schedules and need to detect incompatible response changes without a full browser test suite. Which test method helps?

  1. Run stress tests beyond expected capacity
  2. Run integration tests against dependent services
  3. Use contract tests between producer and consumer
  4. Run unit tests before packaging
  5. Separate flaky tests from product regressions

Explanation

Correct Answer

C:

Contract tests verify that producers and consumers satisfy agreed interface expectations before integration breaks at runtime.

Incorrect Answers

A:

Stress tests deliberately exceed normal capacity to identify breaking points, failure modes, and recovery behavior; cross-team API compatibility cannot be delivered through overload failure characterization.

B:

Integration tests exercise interactions between actual components or representative dependencies and detect contract and configuration mismatches; its effect is real component interaction verification, not cross-team API compatibility.

D:

Unit tests exercise small components in isolation and are usually fast enough to provide immediate feedback during continuous integration; low-cost component correctness cannot substitute for cross-team API compatibility.

E:

Identify and quarantine or stabilize nondeterministic tests while recording their outcomes, rather than hiding instability with unlimited retries; cross-team API compatibility falls outside the scope of nondeterministic-test root cause management.

Question 85

A Java container needs two minutes to warm up and is repeatedly restarted by liveness checks before it becomes healthy. Which probe configuration helps?

  1. Use Kubernetes readiness probes during rollout
  2. Use Kubernetes secrets or external secret providers for credentials
  3. Use Kubernetes startup probes for slow initialization
  4. Use Kubernetes liveness probes to restart stuck containers

Explanation

Correct Answer

C:

A startup probe provides an initialization grace period before other health probes begin enforcing normal thresholds.

Incorrect Answers

A:

A readiness probe controls whether a pod is considered ready for Service traffic during startup and ongoing operation; this option addresses pod readiness before load balancing rather than addressing protected slow application startup.

B:

Kubernetes Secret references or an integrated external secret provider keep credentials out of plain repository manifests and support controlled runtime delivery; it handles decoupled container credential distribution but cannot by itself deliver protected slow application startup.

D:

A liveness probe detects unhealthy containers and can trigger restarts according to Kubernetes probe behavior; that acts on automatic recovery of hung container, whereas the requested outcome is protected slow application startup.

Question 86

An automated pipeline deploys Azure resources every day, but its security policy prohibits long-lived service principal passwords. What identity approach can authenticate deployment?

  1. Use managed identity for IaC execution
  2. Use template validation before deploying resources
  3. Use Bicep modules for reusable resource groups
  4. Use Bicep parameters for environment differences

Explanation

Correct Answer

A:

Federated or managed workload identities enable Azure authentication without embedding reusable credential secrets in source or task configuration.

Incorrect Answers

B:

Template compilation and validation detect authoring errors before deployment attempts affect live resources; the distinction is predeployment declarative syntax checking versus credentialless deployment identity.

C:

Bicep modules package resource declarations behind parameters and outputs so common infrastructure patterns can be reused; credentialless deployment identity cannot be delivered through modular Azure resource definitions.

D:

Template parameters keep environment-specific values separate from common resource declarations and support controlled reuse; its effect is externalized IaC environment settings, not credentialless deployment identity.

Question 87

A new project pipeline automatically obtained access to a powerful production connection because access was overly broad. Which setting should be restricted?

  1. Separate access level from security permissions
  2. Use an Azure Resource Manager service connection
  3. Stream Azure DevOps audit events to Azure Monitor Logs
  4. Authorize a service connection only for approved pipelines
  5. Restrict personal access token scope and expiration

Explanation

Correct Answer

D:

Pipeline permissions on protected service connections control which pipeline definitions may consume the connection.

Incorrect Answers

A:

Access level controls feature entitlements while repository and branch permissions govern actions on specific project resources; it contributes to distinction between entitlement and permission, with protected connection consumer scope still requiring its own control.

B:

Azure Resource Manager service connections provide controlled Azure authentication and target scope to pipeline tasks; this solves authorized pipeline Azure connection, leaving protected connection consumer scope unresolved.

C:

Azure DevOps audit streaming forwards supported organization events to Azure Monitor Logs, where retention can be configured independently of the platform’s native audit history; this option addresses externally retained DevOps governance event history rather than addressing protected connection consumer scope.

E:

Reducing PAT scopes, allowed organizations, and lifetimes limits damage if a token is disclosed; protected connection consumer scope remains outside the responsibility of minimal Azure DevOps PAT authority.

Question 88

A team stores source and CI in GitHub and wants packages governed alongside its GitHub organization without introducing another package platform. What product fits?

  1. Create an Azure Artifacts feed for internal libraries
  2. Use project-scoped feeds for narrow ownership
  3. Use GitHub Packages with repository permissions
  4. Grant feed Reader to download without publishing

Explanation

Correct Answer

C:

GitHub Packages supports publishing and retrieving supported package formats while tying packages to GitHub access models where applicable.

Incorrect Answers

A:

Azure Artifacts feeds store and distribute supported package types with access controls and integration into build tasks; here GitHub-native package hosting is the target, not centralized private dependency distribution.

B:

Project-scoped feeds align package access with project boundaries and can authorize external projects explicitly; although that supports project-bounded package administration, this scenario calls for GitHub-native package hosting.

D:

Reader-level Azure Artifacts permissions allow package consumption while reserving publication and promotion for higher-privileged roles; the distinction is download-only package access versus GitHub-native package hosting.

Question 89

A required environment approval is left unanswered for days, but the service owner requires unresolved deployments to fail within a configured interval. Which check setting should change?

  1. Add branch control to a protected resource
  2. Add a business-hours check
  3. Add an approval check to the production environment
  4. Add an Invoke Azure Function check
  5. Set an approval-check timeout for unattended releases

Explanation

Correct Answer

E:

Check timeout bounds how long a deployment can wait for an approval or condition before a stage is marked unsuccessful.

Incorrect Answers

A:

Branch control checks validate the source branch against an allowed list and can consider whether protection is present; approved branch origin gate cannot substitute for maximum pending approval duration.

B:

Business Hours checks defer resource use until configured local windows rather than relying only on the pipeline queue time; maximum pending approval duration falls outside the scope of scheduled release window enforcement.

C:

Environment owners define approvals outside the pipeline YAML, so a stage consuming the protected environment must satisfy them; it contributes to resource-owner-controlled human approval, with maximum pending approval duration still requiring its own control.

D:

The Azure Function check invokes approved external logic as part of a protected resource's predeployment evaluation; this solves custom function-based release validation, leaving maximum pending approval duration unresolved.

Question 90

Developers use differing local environments, but the pipeline must run compilation in a consistent Linux toolchain version. What job model helps?

  1. Use container jobs to normalize build tooling
  2. Use an agent pool for shared self-hosted capacity
  3. Size parallel jobs to actual entitlements
  4. Configure private DNS for restricted deployment endpoints

Explanation

Correct Answer

A:

Container jobs run task steps inside a specified container image, making tool versions more repeatable across compatible hosts.

Incorrect Answers

B:

Agent pools group self-hosted workers with controlled project permissions, enabling shared execution capacity; centralized managed worker fleet concerns a different control point than isolated standardized build environment.

C:

Azure DevOps parallel-job capacity or entitlements can limit concurrency independently of the physical number of agents; here isolated standardized build environment is the target, not licensed job concurrency ceiling.

D:

Private DNS resolution maps the service hostname to its private endpoint IP, keeping agent traffic on the approved internal route; although that supports private endpoint name resolution, this scenario calls for isolated standardized build environment.

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