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

Question 280

One Azure DevOps release pipeline deploys staging into Azure subscription A and production into subscription B. Each environment requires its own least-privilege workload identity, and only the approved release pipeline may consume either connection. Which design fits?

  1. Use one subscription-wide service connection backed by a shared administrator credential
  2. Place both subscriptions’ long-lived client secrets directly into the shared YAML file
  3. Grant the staging deployment identity Owner at the management-group scope
  4. Create separate scoped Azure Resource Manager service connections and authorize their pipeline consumption

Explanation

Correct Answer

D:

Separate Azure Resource Manager service connections can use independent workload identities scoped to their target subscriptions or resource groups. Explicitly authorizing only the intended release pipeline for each connection separates cloud authority from broad project-wide connection access.

Incorrect Answers

A:

A single broadly privileged credential undermines the requested identity isolation. A connection scoped to one subscription is not a substitute for a separately authorized production identity.

B:

Committing secrets into YAML exposes long-lived material through version control and gives the shared definition access to both environments. It fails both credential hygiene and separation requirements.

C:

An Owner role over a management group gives the lower-trust staging identity unnecessary authority over production resources, contradicting the stated blast-radius boundary.

Question 281

An Entra-backed Azure DevOps Services organization needs to retain permission-change audit events longer than the built-in history and investigate them in Log Analytics. Which integration should be configured?

  1. Separate access level from security permissions
  2. Authorize a service connection only for approved pipelines
  3. Restrict agent pool use to trusted pipelines
  4. Stream Azure DevOps audit events to Azure Monitor Logs

Explanation

Correct Answer

D:

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.

Incorrect Answers

A:

Access level controls feature entitlements while repository and branch permissions govern actions on specific project resources; distinction between entitlement and permission cannot substitute for externally retained DevOps governance event history.

B:

Pipeline permissions on protected service connections control which pipeline definitions may consume the connection; externally retained DevOps governance event history falls outside the scope of protected connection consumer scope.

C:

Agent pools have their own access controls and pipeline permissions, limiting which definitions can execute on sensitive workers; it contributes to protected worker-pool consumption, with externally retained DevOps governance event history still requiring its own control.

Question 282

A package must publish only when a release tag matching a controlled prefix is pushed, not on arbitrary branch commits. Which trigger condition is suitable?

  1. Use a YAML trigger exclude for maintenance branches
  2. Use GitHub Actions concurrency cancellation
  3. Use tags-based release triggers
  4. Configure path-filtered CI triggers

Explanation

Correct Answer

C:

Tag filters on push events allow packaging workflows to run for matching version references while ignoring ordinary branch changes.

Incorrect Answers

A:

Trigger exclude patterns prevent selected branch namespaces from queuing otherwise matching pipeline runs; that acts on branch-pattern exclusion from CI, whereas the requested outcome is release-reference-driven publication.

B:

Concurrency groups with cancel-in-progress can stop superseded workflow runs and conserve capacity; canceling obsolete workflow executions concerns a different control point than release-reference-driven publication.

D:

YAML path include or exclude filters scope CI triggers to changes in specified repository paths; although that supports changed-path CI eligibility, this scenario calls for release-reference-driven publication.

Question 283

A repository wants release automation to identify fixes, features, and breaking changes from commit history consistently. Which commit convention will help?

  1. Generate docs in a CI stage
  2. Use conventional commits for change classification
  3. Publish a runbook alongside deployment assets
  4. Document decisions in architecture decision records

Explanation

Correct Answer

B:

Conventional Commits provides structured prefixes and breaking-change markers that tools can interpret for changelog and version generation.

Incorrect Answers

A:

A documentation build stage creates reference pages from current source or specifications and can fail when generated output is invalid; its effect is documentation freshness on each integration, not parseable semantic commit history.

C:

Packaging or linking version-matched runbooks with the release record makes operational procedures available for the deployed version; incident-ready versioned operating guidance cannot substitute for parseable semantic commit history.

D:

Architecture decision records preserve context, considered alternatives, the chosen decision, and consequences in versioned documentation; parseable semantic commit history falls outside the scope of recorded architectural tradeoffs.

Question 284

A scrum team wants a day-by-day comparison between remaining planned work and the sprint end date. Which chart should it inspect?

  1. Use burndown to assess sprint progress
  2. Measure pull request review wait time
  3. Track escaped defect rate
  4. Track change failure rate

Explanation

Correct Answer

A:

Burndown charts plot remaining scope against time and reveal whether work is being completed at the rate needed for the sprint.

Incorrect Answers

B:

Pull request review latency captures the time a change waits for reviewer attention or approval, isolating a common delivery bottleneck; remaining-sprint-work trend remains outside the responsibility of approval wait time.

C:

Escaped defects identify problems that pass preproduction verification, allowing evaluation of the effectiveness of the testing process; that acts on postrelease defect escape, whereas the requested outcome is remaining-sprint-work trend.

D:

Change failure rate measures the share of production changes that produce degraded service or need restoration actions; production deployment failure impact concerns a different control point than remaining-sprint-work trend.

Question 285

An estate of virtual machines gradually diverges in installed services and registry settings, and operators need consistent declared configurations. Which model helps?

  1. Maintain legacy Azure Automation State Configuration while planning migration
  2. Use environment expiration or cleanup automation
  3. Use desired state configuration for server settings
  4. Use configuration validation in PR checks
  5. Separate secrets from configuration templates

Explanation

Correct Answer

C:

Desired State Configuration describes target machine settings so configuration engines can detect or remediate drift.

Incorrect Answers

A:

Azure Automation State Configuration manages existing DSC node assignments; Microsoft has announced retirement in September 2027 and recommends transition to Azure Machine Configuration; the distinction is legacy DSC node assignment with migration versus standardized operating-system state.

B:

Automated teardown or time-to-live policies remove short-lived environments once they are no longer required; standardized operating-system state cannot be delivered through bounded ephemeral environment lifetime.

D:

Template linting and validation with representative parameter inputs detect missing settings before a promotion run; that changes configuration input completeness without delivering standardized operating-system state.

E:

Configuration code should reference protected secret delivery rather than embedding sensitive values in reusable templates; safe parameterization of infrastructure secrets cannot substitute for standardized operating-system state.

Question 286

A pipeline authenticates to Azure and can support federated identity assertions; which approach removes routine client-secret rotation?

  1. Use an Azure Pipelines Key Vault-linked variable group
  2. Keep secrets out of generated artifacts
  3. Prefer workload federation over stored cloud secrets
  4. Avoid echoing command-line credentials

Explanation

Correct Answer

C:

OIDC or workload identity federation exchanges short-lived trust assertions for cloud tokens without long-lived stored application secrets.

Incorrect Answers

A:

A Key Vault-linked variable group maps selected vault secrets into authorized pipelines at runtime; this solves reusable protected vault references, leaving short-lived token-based cloud trust unresolved.

B:

Artifact content inspection and secret scanning can detect sensitive files included in release payloads before distribution; this option addresses avoiding credentials in distributed binaries rather than addressing short-lived token-based cloud trust.

D:

Supply credentials through protected inputs or supported environment mechanisms rather than exposing them in printed arguments; short-lived token-based cloud trust remains outside the responsibility of nonlogged secret delivery to tools.

Question 287

Security scanning flags many unnecessary OS utilities in a production application image. Which base-image decision reduces exposure?

  1. Use a minimal runtime base image
  2. Build a multi-stage Docker image
  3. Push build images to Azure Container Registry
  4. Use Kubernetes rolling updates for deployment

Explanation

Correct Answer

A:

Selecting a minimal compatible base image limits installed packages and potential vulnerabilities while retaining required runtime libraries.

Incorrect Answers

B:

Multi-stage builds copy final outputs from a builder stage into a smaller runtime stage without shipping build-only dependencies; smaller container attack surface cannot be inferred from runtime image minimization alone.

C:

Azure Container Registry stores private container images and artifacts with Azure-integrated identity and access controls; the distinction is Azure-native private image storage versus smaller container attack surface.

D:

Kubernetes Deployment rolling updates replace pods incrementally according to readiness and surge/unavailable limits; smaller container attack surface cannot be delivered through orchestrator-managed gradual pod replacement.

Question 288

A migration succeeds against an empty test database but may fail against millions of existing records. Which preproduction test improves confidence?

  1. Separate application and database rollback strategies
  2. Use transactional migrations where supported
  3. Prevent secret exposure in migration logs
  4. Validate schema changes on a production-like dataset

Explanation

Correct Answer

D:

Rehearsing migrations on realistic data volumes exposes locking, performance, and compatibility problems absent from trivial test fixtures.

Incorrect Answers

A:

Database changes need explicit recovery or forward-fix handling because code rollback alone does not reverse mutated stored data; representative migration execution falls outside the scope of independent data rollback planning.

B:

Wrapping supported migration operations in a transaction allows atomic commit or rollback if a step fails; it contributes to all-or-nothing database change, with representative migration execution still requiring its own control.

C:

Protected secret injection and logging controls avoid writing database credentials to console output or retained artifacts; this solves migration credential confidentiality, leaving representative migration execution unresolved.

Question 289

A designer needs an engineer notified in the context of a specific backlog discussion, rather than sending a disconnected email thread. What feature should they use?

  1. Use Azure DevOps work item mentions
  2. Use GitHub Discussions for open-ended community topics
  3. Verify webhook delivery logs and retry failures
  4. Filter service-hook subscriptions by event

Explanation

Correct Answer

A:

Mentioning a colleague in a work item comment notifies that person and preserves discussion context with the tracked work.

Incorrect Answers

B:

GitHub Discussions supports community conversations, questions, and ideas without treating every exchange as a trackable issue; here contextual backlog discussion notification is the target, not exploratory community conversation.

C:

Webhook delivery history exposes request outcomes and payload attempts, helping distinguish destination failures from missing source events; although that supports webhook transport troubleshooting, this scenario calls for contextual backlog discussion notification.

D:

Event type and available subscription filters narrow Azure DevOps service-hook traffic before payload delivery; contextual backlog discussion notification cannot be inferred from event selection before webhook dispatch alone.

Question 290

A JavaScript repository includes an old transitive package with a newly disclosed vulnerability; maintainers need an alert tied to dependency data. Which GitHub feature fits?

  1. Connect Azure DevOps to Microsoft Defender for Cloud DevOps security
  2. Run CodeQL analysis inside a controlled container
  3. Run scanning on pull requests and scheduled baselines
  4. Enable Dependabot alerts for vulnerable dependencies

Explanation

Correct Answer

D:

Dependabot alerts compare dependency information with vulnerability advisories and identify affected package versions.

Incorrect Answers

A:

Connecting supported Azure DevOps organizations to Defender for Cloud DevOps security brings repository posture and findings into a code-to-cloud governance view; that changes cloud-correlated Azure Repos security posture without delivering known vulnerable dependency notification.

B:

Running the supported CodeQL analysis workflow in a managed container isolates scanner tooling and makes its runtime dependencies repeatable across builds; isolated static-analysis execution environment cannot substitute for known vulnerable dependency notification.

C:

Change-triggered and recurring scans together detect introduced vulnerabilities and subsequently disclosed issues in stable dependencies; known vulnerable dependency notification falls outside the scope of continuous risk detection beyond code changes.

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