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

Question 470

A new feature flag launches to ten percent of users and product owners need counts of actual feature usage rather than page loads. What should the app emit?

  1. Use custom events for feature adoption
  2. Attach deployment version to application telemetry
  3. Instrument the application with Application Insights
  4. Use live metrics for immediate release observation

Explanation

Correct Answer

A:

Custom events can record meaningful application actions with properties needed to measure feature behavior by rollout cohort.

Incorrect Answers

B:

Recording application version or release identifiers with telemetry enables per-version filtering and regression comparison; the distinction is version-specific canary analysis versus business-specific application usage measurement.

C:

Application Insights collects application requests, failures, dependencies, traces, and usage signals through supported instrumentation; business-specific application usage measurement cannot be delivered through code-level service performance observation.

D:

Live Metrics supports low-latency observation of selected application signals during active incidents or deployments; its effect is immediate application health feedback, not business-specific application usage measurement.

Question 471

Build failures cluster around package restore steps when an external registry is unavailable, with source unchanged. What should the health review focus on?

  1. Measure queue time separately from execution time
  2. Track build success rate by pipeline
  3. Audit changed pipeline definitions
  4. Identify unreliable external service dependencies
  5. Set artifact retention by compliance category

Explanation

Correct Answer

D:

Failure categorization by task and external dependency distinguishes platform or network outages from code defects.

Incorrect Answers

A:

Queue delay measures waiting for eligible execution capacity before a job starts, distinct from run duration; it contributes to agent capacity waiting delay, with external dependency build failures still requiring its own control.

B:

Success and failure ratios by pipeline reveal reliability problems in particular delivery definitions over time; this solves pipeline-specific pass rate, leaving external dependency build failures unresolved.

C:

Pull request and Git commit history for pipeline-as-code records who changed the definition and what was approved; this option addresses audit trail for automation changes rather than addressing external dependency build failures.

E:

Different retention requirements should be applied to short-lived build outputs and preserved release assets according to compliance needs; external dependency build failures remains outside the responsibility of tiered artifact lifecycle.

Question 472

A deployment job downloads a signed artifact and has no need for source files; unnecessary repository checkout adds latency. What optimization should be made?

  1. Use a server job for external approval orchestration
  2. Use maxParallel to cap matrix concurrency
  3. Use a matrix strategy for independent test variants
  4. Use reusable stages for repeated regional deployments
  5. Use checkout none for deployment-only jobs

Explanation

Correct Answer

E:

Disabling source checkout for jobs that consume only published artifacts avoids needless Git transfer and agent workspace setup.

Incorrect Answers

A:

Agentless server jobs execute supported orchestration tasks on the service, avoiding a long-running reserved worker for approval waits; here removing unused source checkout is the target, not agentless approval waiting.

B:

maxParallel limits concurrent matrix legs to an explicit maximum, balancing test speed with available agent capacity; although that supports capped test-matrix fanout, this scenario calls for removing unused source checkout.

C:

A matrix strategy creates related job variants from configuration values, letting each variant run with its own parameters; removing unused source checkout cannot be inferred from parameterized parallel test expansion alone.

D:

A parameterized stage template lets each regional stage share tested deployment steps while supplying distinct environment values; the distinction is templated regional deployment stages versus removing unused source checkout.

Question 473

A packaging pipeline should run only after the corresponding upstream CI pipeline finishes successfully, without depending on new Git commits. Which trigger fits?

  1. Use a YAML trigger exclude for maintenance branches
  2. Configure pipeline-completion triggers
  3. Configure a workflow_call trigger
  4. Configure a branch push trigger in Azure Pipelines

Explanation

Correct Answer

B:

Pipeline resource completion triggers can queue downstream runs based on the completion of a specified upstream pipeline.

Incorrect Answers

A:

Trigger exclude patterns prevent selected branch namespaces from queuing otherwise matching pipeline runs; branch-pattern exclusion from CI cannot substitute for upstream-build-driven automation.

C:

workflow_call declares a reusable workflow that other workflows invoke with defined inputs and secrets; it contributes to cross-workflow reuse invocation, with upstream-build-driven automation still requiring its own control.

D:

A CI trigger with branch inclusion for main queues runs on matching pushes while excluding unrelated branches; this solves push-based mainline build selection, leaving upstream-build-driven automation unresolved.

Question 474

A shared template repository changes, but consuming product pipelines should not automatically deploy production from arbitrary template commits. What control should govern this?

  1. Protect external repository resource triggers
  2. Use the repository commit for PR validation
  3. Use a repository resource for another Git repository
  4. Use pipeline checkout credentials only for required operations

Explanation

Correct Answer

A:

Repository resource triggers and release stage conditions should restrict which trusted source revisions may initiate sensitive downstream work.

Incorrect Answers

B:

The pipeline run's source version identifies the precise commit or merge revision that the validation operated on; immutable PR validation revision concerns a different control point than trusted cross-repository activation.

C:

YAML repository resources define additional repositories, their endpoints, and revisions for use in checkout or templates; here trusted cross-repository activation is the target, not cross-repository pipeline inputs.

D:

The job must use an authorized identity with repository write rights and deliberately expose credentials where a push operation is necessary; although that supports controlled writeback from pipeline execution, this scenario calls for trusted cross-repository activation.

Question 475

A legacy repository already uses git-fat and remote object storage for binaries; new maintainers need to keep its external-asset workflow consistent. What mechanism explains the design?

  1. Use Git submodules when pinning a separate repository
  2. Share code through versioned packages
  3. Use git-fat with an explicitly supported backend
  4. Use partial clone for large object histories

Explanation

Correct Answer

C:

git-fat tracks lightweight references in Git while synchronizing actual binary assets to an external storage backend.

Incorrect Answers

A:

A submodule records a commit pointer to another repository, so the superproject pins a chosen revision; its effect is separately versioned repository reference, not alternative external binary asset management.

B:

Publishing a versioned package gives each consumer an explicit dependency contract without forcing shared repository history; that changes decoupled code-sharing release cadence without delivering alternative external binary asset management.

D:

Partial clone filters selected Git objects from the initial transfer and retrieves missing objects as required; alternative external binary asset management falls outside the scope of on-demand historical object retrieval.

Question 476

Occasionally a test process hangs forever and exhausts hosted agent capacity; how should the pipeline bound execution?

  1. Use deployment jobs for tracked environments
  2. Use reusable stages for repeated regional deployments
  3. Use job timeout settings for hung processes
  4. Use a matrix strategy for independent test variants

Explanation

Correct Answer

C:

Job or task timeout settings place an upper limit on execution, allowing stalled runs to fail and free capacity.

Incorrect Answers

A:

Deployment jobs target environments and support deployment strategies, environment history, and resource-based approvals; it handles environment-aware deployment execution but cannot by itself deliver stalled job resource protection.

B:

A parameterized stage template lets each regional stage share tested deployment steps while supplying distinct environment values; stalled job resource protection remains outside the responsibility of templated regional deployment stages.

D:

A matrix strategy creates related job variants from configuration values, letting each variant run with its own parameters; parameterized parallel test expansion concerns a different control point than stalled job resource protection.

Question 477

Production Azure Pipelines automation must use no stored deployment password, modify only its application resource group, and remain isolated from development deployment authority. Which THREE design decisions satisfy all requirements? Choose THREE.

  1. Separate production and development deployment identities
  2. Use workload identity federation for Azure Pipelines
  3. Use a user-assigned managed identity across workloads
  4. Scope service principal RBAC at the resource group
  5. Use a system-assigned managed identity for one Azure resource
  6. Prefer a certificate credential over an unmanaged shared password when required

Explanation

Correct Answers

A:

Distinct workload identities and scoped RBAC separate lower-trust development automation from production deployment authority; separating identities prevents a development pipeline from borrowing production authority, independent of the token-exchange mechanism.

B:

Workload identity federation exchanges trusted short-lived pipeline assertions for Azure access tokens without storing a client secret.

D:

Azure RBAC assigned to the deployment identity at the target resource group limits actions to that scope and inherited children; even a short-lived federated token must be constrained by RBAC so that production access cannot spread outside the application resource group.

Incorrect Answers

C:

User-assigned managed identities are independent Azure resources that can be attached to multiple supported workloads and retain their own lifecycle; its effect is reusable independent Azure identity, not secretless Azure DevOps-to-Azure authentication.

E:

A system-assigned managed identity is tied to the lifecycle of one Azure resource and can obtain Entra tokens without stored passwords; resource-lifecycle-bound workload identity cannot substitute for secretless Azure DevOps-to-Azure authentication.

F:

Certificate credentials support asymmetric authentication and rotation, avoiding broad reuse of a plaintext shared client secret; secretless Azure DevOps-to-Azure authentication falls outside the scope of certificate-backed application identity.

Question 478

A critical production defect must be patched without waiting for the next scheduled full release, but review and traceability still matter. Which workflow is sound?

  1. Configure slot-sticky settings
  2. Deploy an urgent hotfix through a controlled fast path
  3. Use a rollback-ready previous artifact
  4. Apply expand-and-contract database migration

Explanation

Correct Answer

B:

A hotfix branch or targeted change can pass abbreviated risk-based checks and controlled promotion while preserving audit links and a merge-back plan.

Incorrect Answers

A:

Deployment slot settings remain tied to their designated slot during swaps, preserving environment-specific configuration; this solves retaining environment credentials across swaps, leaving expedited traceable emergency release unresolved.

C:

Retaining the previously approved immutable artifact permits rapid redeployment of already tested bits; it handles fast return to a known release but cannot by itself deliver expedited traceable emergency release.

D:

Expand-and-contract migrations introduce backward-compatible schema changes first, transition consumers, and remove old structures only after compatibility is no longer needed; expedited traceable emergency release remains outside the responsibility of schema compatibility during version overlap.

Question 479

An Azure Pipelines organization needs deployment jobs that reach a private Azure network while keeping untrusted pull request jobs away from that network and production secrets. Which TWO agent decisions support the design? Choose TWO.

  1. Use a self-hosted agent for a private network target
  2. Use a Microsoft-hosted agent for standard builds
  3. Use container jobs to normalize build tooling
  4. Use agent demands and capabilities
  5. Use a dedicated pool for untrusted pull requests

Explanation

Correct Answers

A:

A self-hosted agent placed on a reachable network can execute deployment steps against private resources using outbound service connectivity.

E:

Segregating untrusted workloads onto tightly scoped ephemeral workers limits credential and network exposure to attacker-controlled build scripts; the isolated pool should lack private-network access and production credentials that the trusted deployment pool requires.

Incorrect Answers

B:

Microsoft-hosted agents provide managed ephemeral build environments with common tools, reducing self-hosted patching and cleanup work; private network execution reachability cannot be inferred from low-maintenance disposable CI execution alone.

C:

Container jobs run task steps inside a specified container image, making tool versions more repeatable across compatible hosts; the distinction is isolated standardized build environment versus private network execution reachability.

D:

Agent capabilities advertise available tools or attributes, and demands constrain scheduling to matching agents; private network execution reachability cannot be delivered through tool-aware agent placement.

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.

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