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

Question 250

A stage needs authorization from a centralized change-management platform, and the platform returns its decision through an HTTP interface. Which dynamic check is appropriate?

  1. Use post-check approval for completion review
  2. Add an Evaluate artifact check
  3. Add branch control to a protected resource
  4. Add an Invoke REST API check

Explanation

Correct Answer

D:

REST API checks integrate an external policy decision with the resource approval lifecycle before deployment begins.

Incorrect Answers

A:

Post-check approvals are evaluated after eligible dynamic checks according to the resource check order, providing an additional approval point; that acts on late-stage protected-resource approval, whereas the requested outcome is external change-control API evaluation.

B:

Evaluate artifact checks assess supported artifact policy information before a stage may consume the protected resource; predeployment artifact policy evaluation concerns a different control point than external change-control API evaluation.

C:

Branch control checks validate the source branch against an allowed list and can consider whether protection is present; here external change-control API evaluation is the target, not approved branch origin gate.

Question 251

A developer needs to push code and review pull requests but should not administer repository rules or membership. Which authorization principle applies?

  1. Use GitHub repository roles for least privilege
  2. Require approvals from CODEOWNERS in GitHub
  3. Grant Contribute only to selected Azure Repos repositories
  4. Use annotated Git tags for audited releases
  5. Restrict force pushes on protected branches

Explanation

Correct Answer

A:

Assign the least powerful repository role that supports code contribution, keeping administration privileges separate.

Incorrect Answers

B:

CODEOWNERS identifies responsible reviewers, and branch protection can require code owner review before merging; that changes protected ownership approval without delivering contributor versus administrator separation.

C:

Apply repository-specific permissions and group membership instead of broad project-level write entitlements; least-privilege repo write scope cannot substitute for contributor versus administrator separation.

D:

Annotated tags create dedicated Git tag objects with metadata and are useful for durable release identification; contributor versus administrator separation falls outside the scope of metadata-rich release markers.

E:

Force push permissions govern rewriting and deletion of branches or tags, a higher-risk action than ordinary contribution; it contributes to prevention of shared-history replacement, with contributor versus administrator separation still requiring its own control.

Question 252

Old and new application instances run simultaneously during canary deployment; a required column is being renamed. Which sequence minimizes breakage?

  1. Back up production data before high-risk release
  2. Use backward-compatible stored procedure changes
  3. Use a migration ordering gate before application startup
  4. Apply additive schema changes before removing fields

Explanation

Correct Answer

D:

Adding compatible schema structures before switching consumers and later removing old ones allows overlapping application versions to function.

Incorrect Answers

A:

A verified backup or restore point provides recoverability for destructive data operations that an application rollback cannot undo; it handles prechange data recovery point but cannot by itself deliver coexistence-safe schema transformation.

B:

Compatible procedure interfaces or parallel versions allow old and new clients to operate during the transition; coexistence-safe schema transformation remains outside the responsibility of stable database API for multiple versions.

C:

Running compatible schema additions before deploying consumers prevents application startup against an unsupported database contract; that acts on schema-before-dependent-code ordering, whereas the requested outcome is coexistence-safe schema transformation.

Question 253

A platform team governs twenty repositories and needs consistent push and merge controls applied centrally rather than manually copied. Which mechanism best fits?

  1. Enforce a required GitHub ruleset across repositories
  2. Reset votes when source changes
  3. Require signed commits on a protected branch
  4. Require successful GitHub checks before merging

Explanation

Correct Answer

A:

Organization-level GitHub rulesets can apply coordinated policy conditions to selected repositories and branches.

Incorrect Answers

B:

Vote reset or approval restrictions after new pushes prevent stale approvals from authorizing substantially changed code; centrally governed repository protections cannot be delivered through review freshness after new commits.

C:

GitHub commit-signature protection can require verified signatures on commits entering protected branches; its effect is verifiable commit provenance, not centrally governed repository protections.

D:

GitHub branch protection or rulesets can require specified status checks to pass on the protected target branch; that changes GitHub merge blocked by CI without delivering centrally governed repository protections.

Question 254

A post-test step should upload a debugging dump only after the preceding execution has failed, not after successful runs. Which condition matches?

  1. Use runtime expressions for dynamic job conditions
  2. Use output variables across jobs
  3. Use dependsOn to order jobs
  4. Use failed() to capture error diagnostics

Explanation

Correct Answer

D:

failed() gates the diagnostic step on a failure state so collection is targeted at broken runs. That condition captures evidence for broken executions while avoiding large diagnostic uploads after healthy jobs.

Incorrect Answers

A:

Runtime expressions evaluate runtime variable context and can support dynamic values or conditions unavailable during template compilation; this solves execution-time expression evaluation, leaving failure-specific evidence collection unresolved.

B:

Output variables marked for downstream use can be referenced through dependency syntax across job boundaries with suitable dependencies; this option addresses downstream value propagation rather than addressing failure-specific evidence collection.

C:

A dependsOn relationship establishes an execution dependency between jobs or stages, enabling controlled ordering and status evaluation; it handles explicit job prerequisite ordering but cannot by itself deliver failure-specific evidence collection.

Question 255

A user has Basic access but cannot push to a protected repository; which two authorization dimensions explain the issue?

  1. Use project-scoped groups rather than organization-wide admins
  2. Set specific service connection scope
  3. Separate access level from security permissions
  4. Use an Azure Resource Manager service connection

Explanation

Correct Answer

C:

Access level controls feature entitlements while repository and branch permissions govern actions on specific project resources.

Incorrect Answers

A:

Project-level group membership limits administrative reach compared with organization or collection-wide administrative roles; although that supports scoped Azure DevOps project administration, this scenario calls for distinction between entitlement and permission.

B:

Limit connection identity role assignments and resource scope to the resources required for deployment; distinction between entitlement and permission cannot be inferred from narrow cloud authorization behind DevOps connection alone.

D:

Azure Resource Manager service connections provide controlled Azure authentication and target scope to pipeline tasks; distinction between entitlement and permission cannot be delivered through authorized pipeline Azure connection.

Question 256

Security engineers need open dependency findings grouped by severity and repository so they can prioritize remediation. What should a dashboard summarize?

  1. Track mean time to detect
  2. Track flaky-test frequency
  3. Use a vulnerability severity dashboard
  4. Use pull request size distribution

Explanation

Correct Answer

C:

Vulnerability reporting should group detected findings by severity, affected asset, and remediation status rather than only build totals.

Incorrect Answers

A:

Mean time to detect measures detection latency and indicates how effectively monitoring surfaces incidents after they begin; risk-ranked outstanding findings falls outside the scope of incident detection delay.

B:

Flaky-test metrics identify tests with inconsistent outcomes across comparable runs and help prioritize stabilization work; it contributes to inconsistent test result frequency, with risk-ranked outstanding findings still requiring its own control.

D:

Changed lines or files per pull request expose review batch size and help teams find a healthier incremental change size; this option addresses code review change batch size rather than addressing risk-ranked outstanding findings.

Question 257

Untrusted pipeline definitions can currently run jobs on a self-hosted pool connected to private systems. Which Azure DevOps permission boundary should be tightened?

  1. Use an Azure Resource Manager service connection
  2. Use a project security group for developer access
  3. Restrict agent pool use to trusted pipelines
  4. Authorize a service connection only for approved pipelines

Explanation

Correct Answer

C:

Agent pools have their own access controls and pipeline permissions, limiting which definitions can execute on sensitive workers.

Incorrect Answers

A:

Azure Resource Manager service connections provide controlled Azure authentication and target scope to pipeline tasks; authorized pipeline Azure connection concerns a different control point than protected worker-pool consumption.

B:

Azure DevOps security groups consolidate permissions and propagate membership-based access to project resources; here protected worker-pool consumption is the target, not group-managed project privilege.

D:

Pipeline permissions on protected service connections control which pipeline definitions may consume the connection; protected worker-pool consumption cannot be inferred from protected connection consumer scope alone.

Question 258

An application update introduces a schema migration that may fail on production-like data even if the application compiles. Which additional verification is essential?

  1. Run integration tests against dependent services
  2. Run stress tests beyond expected capacity
  3. Run end-to-end tests on a deployed application
  4. Include database migration tests before rollout

Explanation

Correct Answer

D:

Migration tests exercise schema changes against representative database states and help detect incompatible or irreversible transformations.

Incorrect Answers

A:

Integration tests exercise interactions between actual components or representative dependencies and detect contract and configuration mismatches; that changes real component interaction verification without delivering database evolution compatibility checks.

B:

Stress tests deliberately exceed normal capacity to identify breaking points, failure modes, and recovery behavior; overload failure characterization cannot substitute for database evolution compatibility checks.

C:

End-to-end tests validate a complete user journey through deployed components, detecting failures hidden from isolated tests; database evolution compatibility checks falls outside the scope of full workflow behavior verification.

Question 259

Incident responders cannot correlate a new latency spike with the application version rolled out an hour earlier. What telemetry should delivery automation emit?

  1. Use alert processing rules for maintenance windows
  2. Route pipeline deployment events into observability
  3. Configure diagnostic settings on an Azure resource
  4. Configure activity log alerts for control-plane changes
  5. Use Azure Monitor workbooks for incident views

Explanation

Correct Answer

B:

Deployment annotations or custom events associate release timing and versions with operational metrics and traces.

Incorrect Answers

A:

Alert processing rules can apply routing or action suppression under specified scope and timing conditions; release-and-runtime event correlation remains outside the responsibility of maintenance-specific notification suppression.

C:

Resource diagnostic settings send supported log and metric categories to destinations such as a Log Analytics workspace; forwarding resource telemetry concerns a different control point than release-and-runtime event correlation.

D:

Azure Activity Log records subscription control-plane events that can be targeted by activity-log alert rules; here release-and-runtime event correlation is the target, not Azure administrative operation detection.

E:

Azure Monitor workbooks combine supported queries, metrics, and visual components into reusable operational investigation views; although that supports parameterized cross-telemetry dashboard, this scenario calls for release-and-runtime event correlation.

Question 260

Consumers require machine-readable endpoint schemas and reproducible human-facing API documentation with every release. Which source format should be maintained?

  1. Publish API specifications from OpenAPI
  2. Generate release notes from labeled pull requests
  3. Publish a runbook alongside deployment assets
  4. Use an Azure DevOps project wiki

Explanation

Correct Answer

A:

An OpenAPI specification describes endpoints, operations, schemas, and responses and can generate reference documentation and client tooling.

Incorrect Answers

B:

Structured pull request labels and merged change metadata can be transformed into categorized release notes by a release workflow; its effect is categorized change summary automation, not contract-driven API documentation.

C:

Packaging or linking version-matched runbooks with the release record makes operational procedures available for the deployed version; that changes incident-ready versioned operating guidance without delivering contract-driven API documentation.

D:

Azure DevOps wikis give teams Markdown-based project documentation with collaborative editing and navigation inside the project; native project knowledge repository cannot substitute for contract-driven API documentation.

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