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

Question 490

A regulated cluster must deploy the exact image that passed scanning even when registry tags are reassigned. Which image reference is safest?

  1. Build a multi-stage Docker image
  2. Use Kubernetes readiness probes during rollout
  3. Tag an image using a source revision
  4. Deploy images by digest rather than moving tag

Explanation

Correct Answer

D:

Content-addressed image digests tie the deployment manifest to exact image bytes, preserving the tested artifact identity.

Incorrect Answers

A:

Multi-stage builds copy final outputs from a builder stage into a smaller runtime stage without shipping build-only dependencies; that acts on runtime image minimization, whereas the requested outcome is scanned-image immutability.

B:

A readiness probe controls whether a pod is considered ready for Service traffic during startup and ongoing operation; pod readiness before load balancing concerns a different control point than scanned-image immutability.

C:

Including an immutable commit identifier in the image tag helps correlate build output to the exact source change; here scanned-image immutability is the target, not commit-specific container traceability.

Question 491

An integration needs only two repositories but the installer selected all repositories in the organization. What authorization setting should be reduced?

  1. Grant a maintain role rather than admin for everyday management
  2. Replace a departed employee's PAT
  3. Require minimal contents write for automated version bumps
  4. Limit GitHub App repository installation scope

Explanation

Correct Answer

D:

GitHub App installations can be restricted to selected repositories so tokens cannot access unrelated codebases.

Incorrect Answers

A:

Maintain is intended for broad repository management tasks without all administrator-only powers; its effect is nonsecurity repository maintenance delegation, not installation-specific repository allowlisting.

B:

A GitHub App or other nonperson service identity avoids tying essential automation to a departing user's credentials; that changes personnel-independent automation authentication without delivering installation-specific repository allowlisting.

C:

Assign the minimum repository contents write authority needed for the push and avoid granting unrelated token scopes; narrow workflow source modification rights cannot substitute for installation-specific repository allowlisting.

Question 492

Every production deployment has a status, but incident responders also log outages and emergency rollbacks. Which relationship is needed for a useful metric?

  1. Calculate deployment success ratio per environment
  2. Calculate lead time for changes from source and deployment
  3. Configure Azure Pipelines build failure subscriptions
  4. Investigate change failure rate using incident linkage

Explanation

Correct Answer

D:

Linking deployments to service-impacting incidents or remediation events distinguishes risky releases from merely failed jobs.

Incorrect Answers

A:

Filtering deployment records to the production environment and dividing successful attempts by all production attempts isolates its delivery success ratio; it handles production-only deployment success percentage but cannot by itself deliver customer-impacting deployment quality.

B:

Joining source change timestamps with production deployment records yields change lead time across build, review, and release processes; customer-impacting deployment quality remains outside the responsibility of source-to-production delivery latency.

C:

Azure DevOps notifications can subscribe recipients to selected pipeline completion and failure events with appropriate filters; that acts on filtered Azure Pipelines failure awareness, whereas the requested outcome is customer-impacting deployment quality.

Question 493

Platform engineers own YAML templates centrally, while product teams retain small pipeline entry files in their own GitHub repositories. Which mechanism enables this?

  1. Reference a template from another repository
  2. Use the repository commit for PR validation
  3. Use pipeline resource artifact download
  4. Use a GitHub service connection with narrow permissions

Explanation

Correct Answer

A:

An external template repository resource lets pipeline YAML import standardized templates from a separately versioned source.

Incorrect Answers

B:

The pipeline run's source version identifies the precise commit or merge revision that the validation operated on; remote shared YAML composition cannot be delivered through immutable PR validation revision.

C:

Pipeline resources identify producer pipelines and their runs so downstream workflows can download associated build artifacts; its effect is downstream consumption of upstream build output, not remote shared YAML composition.

D:

A repository-scoped GitHub connection authenticates Azure Pipelines to the required source with explicitly limited permissions; that changes restricted source-provider access without delivering remote shared YAML composition.

Question 494

A release pipeline is authorized to download a signing certificate, but policy also requires a human reviewer to approve each use. Which protected-resource check adds this control?

  1. Add a secure-file approval check
  2. Add an Invoke Azure Function check
  3. Add an Evaluate artifact check
  4. Add an approval check to the production environment

Explanation

Correct Answer

A:

A secure file can have an approval check that gates consumption even by an otherwise authorized pipeline. The file remains protected even after the pipeline itself is authorized; the reviewer approves use of the sensitive resource.

Incorrect Answers

B:

The Azure Function check invokes approved external logic as part of a protected resource's predeployment evaluation; this option addresses custom function-based release validation rather than addressing human review of signing-file use.

C:

Evaluate artifact checks assess supported artifact policy information before a stage may consume the protected resource; it handles predeployment artifact policy evaluation but cannot by itself deliver human review of signing-file use.

D:

Environment owners define approvals outside the pipeline YAML, so a stage consuming the protected environment must satisfy them; human review of signing-file use remains outside the responsibility of resource-owner-controlled human approval.

Question 495

Deployments must begin only within the staffed maintenance window even when builds complete at night. Which check expresses the timing policy?

  1. Set an approval-check timeout for unattended releases
  2. Add an approval check to the production environment
  3. Add a business-hours check
  4. Use post-check approval for completion review

Explanation

Correct Answer

C:

Business Hours checks defer resource use until configured local windows rather than relying only on the pipeline queue time.

Incorrect Answers

A:

Check timeout bounds how long a deployment can wait for an approval or condition before a stage is marked unsuccessful; although that supports maximum pending approval duration, this scenario calls for scheduled release window enforcement.

B:

Environment owners define approvals outside the pipeline YAML, so a stage consuming the protected environment must satisfy them; scheduled release window enforcement cannot be inferred from resource-owner-controlled human approval alone.

D:

Post-check approvals are evaluated after eligible dynamic checks according to the resource check order, providing an additional approval point; scheduled release window enforcement cannot be delivered through late-stage protected-resource approval.

Question 496

A lead needs routine repository administration but should not change highly sensitive access and destructive security controls. Which role boundary should be reviewed?

  1. Use a GitHub App for organization-wide automation
  2. Use pull requests from forks without exposing repository secrets
  3. Grant a maintain role rather than admin for everyday management
  4. Require minimal contents write for automated version bumps

Explanation

Correct Answer

C:

Maintain is intended for broad repository management tasks without all administrator-only powers. Maintain supports many daily repository-management tasks while reserving administrator-only security controls for trusted owners.

Incorrect Answers

A:

GitHub Apps use installation-scoped permissions and short-lived access tokens, separating integration identity from individual users; nonsecurity repository maintenance delegation falls outside the scope of app-scoped multi-repository automation.

B:

Treat fork PR events as untrusted and avoid privileged contexts that run attacker-controlled code with sensitive secrets; it contributes to untrusted contribution execution boundary, with nonsecurity repository maintenance delegation still requiring its own control.

D:

Assign the minimum repository contents write authority needed for the push and avoid granting unrelated token scopes; this option addresses narrow workflow source modification rights rather than addressing nonsecurity repository maintenance delegation.

Question 497

Engineers should publish prerelease libraries freely, but only a trusted release workflow may expose versions to production consumers. Which two-stage governance model works?

  1. Separate feed publication from feed promotion
  2. Use an organization-scoped feed for shared components
  3. Authenticate restore tasks to Azure Artifacts
  4. Pin a dependency to an approved internal version
  5. Use project-scoped feeds for narrow ownership

Explanation

Correct Answer

A:

Publishing to the feed and independently promoting selected versions to a release view separates creation from trust decisions.

Incorrect Answers

B:

Organization-scoped Azure Artifacts feeds support cross-project package reuse through common feed permissions and endpoints; here package release authorization step is the target, not organization-wide dependency catalog.

C:

Package authentication steps and feed permissions provide a job identity with the credentials needed to restore protected dependencies; although that supports pipeline identity for private package restore, this scenario calls for package release authorization step.

D:

Exact dependency versions and lockfiles help consumers restore a reviewed artifact rather than whatever is newest in a range; package release authorization step cannot be inferred from approved dependency reproducibility alone.

E:

Project-scoped feeds align package access with project boundaries and can authorize external projects explicitly; the distinction is project-bounded package administration versus package release authorization step.

Question 498

A GitHub Actions build requires an isolated, reproducible environment for CodeQL analysis where specialized analyzer dependencies must not alter the host runner. Which execution design helps?

  1. Run CodeQL analysis inside a controlled container
  2. Use dependency review before merging
  3. Use least-privilege tokens for security scanners
  4. Enable CodeQL code scanning for supported repositories

Explanation

Correct Answer

A:

Running the supported CodeQL analysis workflow in a managed container isolates scanner tooling and makes its runtime dependencies repeatable across builds.

Incorrect Answers

B:

Dependency review examines introduced or changed dependencies in a pull request and can flag known risks before merge; package risk introduced by a PR cannot substitute for isolated static-analysis execution environment.

C:

Grant only the API permissions necessary to retrieve code and publish assessment results, keeping repository administration separate; isolated static-analysis execution environment falls outside the scope of narrow automation scanner identity.

D:

CodeQL analyzes code using language-aware queries and can surface findings through GitHub code scanning; it contributes to static code vulnerability analysis, with isolated static-analysis execution environment still requiring its own control.

Question 499

A workflow currently deploys before its integration test job finishes, even though both jobs exist in one workflow. Which YAML key fixes the dependency?

  1. Upload workflow artifacts for later jobs
  2. Use runner labels to route jobs
  3. Use GitHub Actions job needs for execution order
  4. Use a GitHub-hosted runner for disposable jobs

Explanation

Correct Answer

C:

The needs key creates explicit GitHub Actions job dependencies so downstream jobs wait for required predecessors.

Incorrect Answers

A:

Artifact upload stores files associated with a workflow run outside the temporary runner filesystem; dependency-ordered GitHub workflow jobs remains outside the responsibility of durable GitHub test attachments.

B:

Labels identify runner characteristics and the runs-on selector can target machines with required labels; that acts on capability-specific GitHub job scheduling, whereas the requested outcome is dependency-ordered GitHub workflow jobs.

D:

GitHub-hosted runners provide managed disposable execution environments with common tooling and no persistent team-managed agent; here dependency-ordered GitHub workflow jobs is the target, not managed workflow job execution.

Question 500

A new self-hosted worker cannot register because the firewall blocks outbound connections to required Azure DevOps endpoints. Which network direction should be addressed?

  1. Keep deployment credentials outside agent images
  2. Use container jobs to normalize build tooling
  3. Configure private DNS for restricted deployment endpoints
  4. Configure outbound access from self-hosted agents

Explanation

Correct Answer

D:

Self-hosted Azure Pipelines agents initiate outbound communication to the service; necessary HTTPS egress must be available.

Incorrect Answers

A:

Inject credentials at job runtime with short-lived identity or protected secrets rather than baking them into reusable machine images; agent registration outbound network path cannot be delivered through elimination of image-embedded credentials.

B:

Container jobs run task steps inside a specified container image, making tool versions more repeatable across compatible hosts; its effect is isolated standardized build environment, not agent registration outbound network path.

C:

Private DNS resolution maps the service hostname to its private endpoint IP, keeping agent traffic on the approved internal route; that changes private endpoint name resolution without delivering agent registration outbound network path.

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