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

Question 480

A release must preserve build/test evidence before deployment starts and apply different approvals to production. Which pipeline structure is most appropriate?

  1. Use separate build and deployment stages
  2. Use checkout none for deployment-only jobs
  3. Use a server job for external approval orchestration
  4. Use pipeline artifacts between stages

Explanation

Correct Answer

A:

Multi-stage YAML pipelines separate build and release phases with independent conditions, dependencies, and environment controls.

Incorrect Answers

B:

Disabling source checkout for jobs that consume only published artifacts avoids needless Git transfer and agent workspace setup; it contributes to removing unused source checkout, with separation of build and delivery boundaries still requiring its own control.

C:

Agentless server jobs execute supported orchestration tasks on the service, avoiding a long-running reserved worker for approval waits; this solves agentless approval waiting, leaving separation of build and delivery boundaries unresolved.

D:

Publish/download pipeline artifacts transfers immutable build output through pipeline-managed storage instead of relying on a shared agent disk; this option addresses cross-agent build output transfer rather than addressing separation of build and delivery boundaries.

Question 481

An external registry briefly becomes unavailable and the team wants previously fetched dependencies to remain available from its internal feed. Which design helps?

  1. Authenticate restore tasks to Azure Artifacts
  2. Use an organization-scoped feed for shared components
  3. Use a package proxy strategy for build continuity
  4. Grant feed Publisher to a dedicated release pipeline

Explanation

Correct Answer

C:

Caching packages through configured upstream sources can preserve availability of previously saved versions when their original source is disrupted.

Incorrect Answers

A:

Package authentication steps and feed permissions provide a job identity with the credentials needed to restore protected dependencies; pipeline identity for private package restore concerns a different control point than resilience to remote registry outages.

B:

Organization-scoped Azure Artifacts feeds support cross-project package reuse through common feed permissions and endpoints; here resilience to remote registry outages is the target, not organization-wide dependency catalog.

D:

A publishing role permits package additions without granting all owner-level feed configuration capabilities; resilience to remote registry outages cannot be inferred from least-privilege automated publication alone.

Question 482

A handbook has multiple pages and sections that maintainers edit in pull requests; which formatting method should connect the pages?

  1. Create a postincident retrospective document
  2. Use Mermaid diagrams in Markdown
  3. Use Markdown links to maintain navigation
  4. Use an Azure DevOps project wiki
  5. Automate changelog generation at tagged releases

Explanation

Correct Answer

C:

Relative Markdown links keep repository documentation navigable and generally survive repository moves better than absolute site URLs.

Incorrect Answers

A:

A blameless retrospective captures timeline, contributing conditions, detection gaps, and assigned follow-up actions for systemic improvement; that changes learning from production incidents without delivering portable internal document navigation.

B:

Mermaid expresses supported diagrams as text in Markdown-friendly contexts, allowing diagram revisions through ordinary code review; text-defined sequence visualization cannot substitute for portable internal document navigation.

D:

Azure DevOps wikis give teams Markdown-based project documentation with collaborative editing and navigation inside the project; it contributes to native project knowledge repository, with portable internal document navigation still requiring its own control.

E:

Comparing commits or merged pull requests between release tags establishes a bounded change set for each published version; this solves release-bound change interval, leaving portable internal document navigation unresolved.

Question 483

Developers sometimes commit access tokens, and the organization wants automated alerts for recognizable credentials in repositories. Which capability addresses that exposure?

  1. Enable GitHub Advanced Security for Azure DevOps
  2. Require secret scan checks before publishing
  3. Enable secret scanning in GitHub Advanced Security
  4. Use least-privilege tokens for security scanners

Explanation

Correct Answer

C:

Secret scanning identifies supported secret patterns and can alert on exposed credentials in repository content.

Incorrect Answers

A:

GitHub Advanced Security for Azure DevOps brings supported code, dependency, and secret scanning capabilities to Azure DevOps repositories; credential pattern detection in source remains outside the responsibility of advanced scanning on Azure Repos.

B:

Secret detection applied to source and built artifacts can block distribution when sensitive credential patterns are found; that acts on prepublication credential leakage gate, whereas the requested outcome is credential pattern detection in source.

D:

Grant only the API permissions necessary to retrieve code and publish assessment results, keeping repository administration separate; here credential pattern detection in source is the target, not narrow automation scanner identity.

Question 484

Validation succeeded but deployment failed, and evidence is lost because the workspace was removed. Which result-handling strategy is correct?

  1. Keep test reports when a later stage fails
  2. Require a production-like predeployment validation environment
  3. Use Azure Monitor alert evaluation as a release check
  4. Use a manual approval before a regulated deployment

Explanation

Correct Answer

A:

Publish test and coverage artifacts during the verification stage so later stage failures do not erase already collected evidence.

Incorrect Answers

B:

A staging environment closely matching production configuration reveals deployment and integration issues before customer exposure; its effect is production configuration rehearsal, not independent validation evidence retention.

C:

An Azure Monitor alert query check can block resource consumption while relevant monitored conditions violate deployment criteria; that changes operational health gating before rollout without delivering independent validation evidence retention.

D:

An environment approval check blocks the deployment stage until the designated approver grants authorization; controlled human release approval cannot substitute for independent validation evidence retention.

Question 485

CI retains every diagnostic archive indefinitely, but only releases require long-term preservation. Which operating change reduces waste?

  1. Use selective test execution for monorepo changes
  2. Use retention policies to constrain storage cost
  3. Move repeated setup into a prebuilt image
  4. Reduce redundant source checkout
  5. Shard a long test suite across workers

Explanation

Correct Answer

B:

Targeted run and artifact retention policies delete disposable build data while preserving defined compliance evidence.

Incorrect Answers

A:

Path-aware test selection can run affected verification suites while retaining full broader checks at appropriate release gates; this option addresses change-impact-based verification rather than addressing bounded nonrelease artifact storage.

C:

A maintained prebuilt worker or container image provides standard toolchains without repeating their installation in each job; bounded nonrelease artifact storage remains outside the responsibility of preprovisioned build dependencies.

D:

Skipping unnecessary checkout saves network transfer and startup time when source files are not consumed; that acts on elimination of unused Git fetch, whereas the requested outcome is bounded nonrelease artifact storage.

E:

Test sharding partitions cases among concurrent workers and combines their reports, reducing the duration of an otherwise serial test job; distributed test-case execution concerns a different control point than bounded nonrelease artifact storage.

Question 486

An Azure VM executes deployment automation, and its Azure identity should be created and deleted with that VM. Which identity type is appropriate?

  1. Scope service principal RBAC at the resource group
  2. Use a system-assigned managed identity for one Azure resource
  3. Use least-privilege role assignment instead of Owner
  4. Disable stale automation identities

Explanation

Correct Answer

B:

A system-assigned managed identity is tied to the lifecycle of one Azure resource and can obtain Entra tokens without stored passwords.

Incorrect Answers

A:

Azure RBAC assigned to the deployment identity at the target resource group limits actions to that scope and inherited children; resource-lifecycle-bound workload identity cannot be inferred from resource-group-bounded deployment privilege alone.

C:

Contributor can manage most resources without Azure role-assignment powers that broader access-administration roles may grant; resource-lifecycle-bound workload identity cannot be delivered through deployment without RBAC delegation.

D:

Removing unused role assignments and disabling or deleting obsolete workload identities closes abandoned access paths; its effect is elimination of dormant deployment authority, not resource-lifecycle-bound workload identity.

Question 487

A Windows-heavy engineering organization has an oversized monorepo and wants coordinated Git performance settings and maintenance. Which tool can help?

  1. Use a binary artifact repository rather than Git history
  2. Use Git subtree for vendor source snapshots
  3. Add .gitignore for local build outputs
  4. Use Scalar for very large Git repositories

Explanation

Correct Answer

D:

Scalar manages Git settings and background maintenance features designed to improve large-repository experience.

Incorrect Answers

A:

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 large-repository Git maintenance still requiring its own control.

B:

A subtree imports and maintains another codebase within a subdirectory, making the source present in normal clones; this solves embedded external source tree, leaving large-repository Git maintenance unresolved.

C:

The .gitignore file lists untracked path patterns Git should ignore; previously tracked files need separate untracking; this option addresses exclude machine-local generated files rather than addressing large-repository Git maintenance.

Question 488

Documentation becomes stale because changes merge without regenerating API reference pages; which pipeline activity should be added?

  1. Use Mermaid diagrams in Markdown
  2. Document decisions in architecture decision records
  3. Publish build provenance and release version
  4. Generate docs in a CI stage

Explanation

Correct Answer

D:

A documentation build stage creates reference pages from current source or specifications and can fail when generated output is invalid.

Incorrect Answers

A:

Mermaid expresses supported diagrams as text in Markdown-friendly contexts, allowing diagram revisions through ordinary code review; here documentation freshness on each integration is the target, not text-defined sequence visualization.

B:

Architecture decision records preserve context, considered alternatives, the chosen decision, and consequences in versioned documentation; although that supports recorded architectural tradeoffs, this scenario calls for documentation freshness on each integration.

C:

Release metadata connecting artifact digest, build ID, commit SHA, and environment supports reproducibility and operational audit trails; documentation freshness on each integration cannot be inferred from deployable artifact origin and destination alone.

Question 489

Initial cloning is slow because many historical blobs are unnecessary; the team wants objects fetched on demand from a capable Git server. Which optimization fits?

  1. Use repository path-based ownership
  2. Use partial clone for large object histories
  3. Use a binary artifact repository rather than Git history
  4. Use Git submodules when pinning a separate repository

Explanation

Correct Answer

B:

Partial clone filters selected Git objects from the initial transfer and retrieves missing objects as required.

Incorrect Answers

A:

CODEOWNERS maps repository path patterns to responsible reviewers and aids targeted review governance; ownership within one large repository cannot substitute for on-demand historical object retrieval.

C:

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 on-demand historical object retrieval still requiring its own control.

D:

A submodule records a commit pointer to another repository, so the superproject pins a chosen revision; this solves separately versioned repository reference, leaving on-demand historical object retrieval unresolved.

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.

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