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

Question 240

Maintainers are overwhelmed by all repository activity and want notifications only for threads they participate in or subscribe to. Which GitHub mechanism helps?

  1. Create targeted GitHub issue notifications
  2. Use Azure DevOps work item mentions
  3. Use GitHub Discussions for open-ended community topics
  4. Configure a GitHub repository webhook

Explanation

Correct Answer

A:

GitHub notification subscriptions let users follow relevant issue or pull request conversations while reducing unrelated alerts.

Incorrect Answers

B:

Mentioning a colleague in a work item comment notifies that person and preserves discussion context with the tracked work; it contributes to contextual backlog discussion notification, with participation-based discussion awareness still requiring its own control.

C:

GitHub Discussions supports community conversations, questions, and ideas without treating every exchange as a trackable issue; this solves exploratory community conversation, leaving participation-based discussion awareness unresolved.

D:

GitHub webhooks send selected repository event payloads to an HTTPS endpoint; a webhook secret supports signature verification; this option addresses signed GitHub event notifications rather than addressing participation-based discussion awareness.

Question 241

An internal platform publishes timeboxed monthly tool bundles and stakeholders identify release age by calendar period rather than API compatibility. Which scheme fits?

  1. Prevent republishing the same version with different bytes
  2. Include commit SHA in artifact provenance
  3. Generate a software bill of materials with releases
  4. Use CalVer for date-oriented platform releases

Explanation

Correct Answer

D:

Calendar versioning encodes release time using a defined calendar scheme and suits time-driven delivery policies.

Incorrect Answers

A:

Immutable package versions ensure that a given package name and version cannot silently acquire different contents; stable package name-version mapping concerns a different control point than calendar-anchored release identity.

B:

A commit SHA uniquely identifies the source snapshot used by a build and supports traceability from deployment to repository state; here calendar-anchored release identity is the target, not source snapshot identity for each build.

C:

A software bill of materials records software components and versions used in a build, supporting later dependency risk analysis; although that supports shipped dependency inventory, this scenario calls for calendar-anchored release identity.

Question 242

A production outage requires a one-line fix, but main contains untested features; where should the emergency change begin?

  1. Merge an integration branch while preserving its history
  2. Use feature flags for incomplete trunk work
  3. Squash commits when completing a pull request
  4. Use a hotfix branch from the production revision

Explanation

Correct Answer

D:

Branching from the deployed release commit isolates an urgent correction from unrelated unshipped changes. After validating the fix, merge or cherry-pick it back to the active development line to avoid future regression.

Incorrect Answers

A:

A merge commit can preserve branch topology and the context of integrating a completed branch; that changes retained branch integration topology without delivering production-specific patch isolation.

B:

Feature flags gate runtime behavior independently from source integration, permitting frequent merges before release exposure; hidden unfinished behavior on main cannot substitute for production-specific patch isolation.

C:

Squash merging combines the pull request's commits into a single new commit on the target branch; production-specific patch isolation falls outside the scope of one logical commit per reviewed feature.

Question 243

A pull request adds a new direct package that violates security policy, and the team wants risk information during review. What control is useful?

  1. Use least-privilege tokens for security scanners
  2. Use dependency review before merging
  3. Configure Dependabot security updates
  4. Require secret scan checks before publishing
  5. Enable GitHub Advanced Security for Azure DevOps

Explanation

Correct Answer

B:

Dependency review examines introduced or changed dependencies in a pull request and can flag known risks before merge.

Incorrect Answers

A:

Grant only the API permissions necessary to retrieve code and publish assessment results, keeping repository administration separate; package risk introduced by a PR remains outside the responsibility of narrow automation scanner identity.

C:

Dependabot security updates can generate upgrade pull requests for vulnerable dependencies when compatible fixes exist; automated vulnerable-package remediation PR concerns a different control point than package risk introduced by a PR.

D:

Secret detection applied to source and built artifacts can block distribution when sensitive credential patterns are found; here package risk introduced by a PR is the target, not prepublication credential leakage gate.

E:

GitHub Advanced Security for Azure DevOps brings supported code, dependency, and secret scanning capabilities to Azure DevOps repositories; although that supports advanced scanning on Azure Repos, this scenario calls for package risk introduced by a PR.

Question 244

A workflow deploys to both test and production, but the production token must be available only in approved production jobs. Which secret scope is appropriate?

  1. Avoid echoing command-line credentials
  2. Use GitHub environment secrets for production
  3. Keep secrets out of generated artifacts
  4. Restrict permissions to download signing secure files

Explanation

Correct Answer

B:

Environment-scoped secrets integrate with deployment environment protection and narrow credential exposure to intended jobs.

Incorrect Answers

A:

Supply credentials through protected inputs or supported environment mechanisms rather than exposing them in printed arguments; deployment-environment secret boundary cannot be delivered through nonlogged secret delivery to tools.

C:

Artifact content inspection and secret scanning can detect sensitive files included in release payloads before distribution; that changes avoiding credentials in distributed binaries without delivering deployment-environment secret boundary.

D:

Secure-file pipeline permissions limit which definitions may download protected file assets during runs; signing file consumer allowlist cannot substitute for deployment-environment secret boundary.

Question 245

Repeated jobs spend most of their time downloading unchanged tool dependencies, while actual source compilation is fast. Which acceleration should be measured?

  1. Cache compiler or package dependencies
  2. Translate classic release approvals to environment checks
  3. Investigate build queue bottlenecks before adding CPUs
  4. Use selective test execution for monorepo changes

Explanation

Correct Answer

A:

Pipeline caching reuses eligible dependency or tool directories keyed by their inputs, reducing repeated setup without replacing artifact publication.

Incorrect Answers

B:

Resource approvals and checks on YAML environments enforce authorization outside developer-controlled pipeline logic; it handles preserved release governance after migration but cannot by itself deliver reducing repeatable job setup work.

C:

Queue metrics identify a shortage of parallel execution slots or eligible agents, which faster individual CPUs alone cannot fix; reducing repeatable job setup work remains outside the responsibility of correcting queue-bound pipeline delay.

D:

Path-aware test selection can run affected verification suites while retaining full broader checks at appropriate release gates; that acts on change-impact-based verification, whereas the requested outcome is reducing repeatable job setup work.

Question 246

A canary passes technical startup checks but live error rates rise sharply; which control should stop promotion and initiate recovery?

  1. Use a kill switch for risky functionality
  2. Use Azure App Configuration Feature Manager
  3. Use percentage-based feature targeting
  4. Separate rollout from rollback triggers

Explanation

Correct Answer

D:

Rollout gates should watch production health indicators and initiate rollback or halt when configured thresholds are violated.

Incorrect Answers

A:

A remotely controlled feature flag can disable the affected path quickly while leaving the running binary unchanged; health-based rollout abort cannot be inferred from instant reversible feature disablement alone.

B:

App Configuration feature management stores flag definitions and enables supported application frameworks to evaluate feature state; the distinction is centralized application feature controls versus health-based rollout abort.

C:

Percentage targeting can expose a flag to a configured user share using consistent targeting rules where supported; health-based rollout abort cannot be delivered through stable fractional feature audience.

Question 247

A deployment pipeline is rejected when attempting to use an existing Azure Resource Manager service connection owned by another team. Which configuration must be verified?

  1. Use pipeline resource artifact download
  2. Define secure service connection authorization
  3. Use multiple checkout steps
  4. Protect external repository resource triggers
  5. Select the correct GitHub repository in an Azure Pipeline

Explanation

Correct Answer

B:

Service connections are protected resources; a pipeline requires explicit authorization or appropriate resource permissions before use.

Incorrect Answers

A:

Pipeline resources identify producer pipelines and their runs so downstream workflows can download associated build artifacts; it contributes to downstream consumption of upstream build output, with controlled pipeline access to cloud connection still requiring its own control.

C:

Multiple checkout steps fetch the primary and declared secondary repositories into the job workspace; this option addresses simultaneous workspace repository access rather than addressing controlled pipeline access to cloud connection.

D:

Repository resource triggers and release stage conditions should restrict which trusted source revisions may initiate sensitive downstream work; it handles trusted cross-repository activation but cannot by itself deliver controlled pipeline access to cloud connection.

E:

The pipeline's repository configuration and authorized GitHub connection determine which source repository and branch are used; controlled pipeline access to cloud connection remains outside the responsibility of exact source repository selection.

Question 248

After moving from classic releases to YAML, production settings sometimes differ despite a green build. What acceptance method can expose migration errors?

  1. Shard a long test suite across workers
  2. Review a migrated pipeline with a comparison run
  3. Migrate classic pipeline tasks to YAML
  4. Translate classic release approvals to environment checks

Explanation

Correct Answer

B:

Side-by-side dry runs or test deployments compare artifacts, variables, approvals, and outcomes before switching fully to the new definition.

Incorrect Answers

A:

Test sharding partitions cases among concurrent workers and combines their reports, reducing the duration of an otherwise serial test job; here evidence-based pipeline migration parity is the target, not distributed test-case execution.

C:

YAML pipelines express jobs and steps as source-controlled definitions, improving change review and reproducibility; evidence-based pipeline migration parity cannot be inferred from replacing GUI-only automation with code alone.

D:

Resource approvals and checks on YAML environments enforce authorization outside developer-controlled pipeline logic; the distinction is preserved release governance after migration versus evidence-based pipeline migration parity.

Question 249

A Teams bridge is missing occasional events even though the source records show the action happened. Which diagnostic step should be done first?

  1. Use Azure DevOps work item mentions
  2. Verify webhook delivery logs and retry failures
  3. Subscribe a Teams channel to GitHub events
  4. Create targeted GitHub issue notifications

Explanation

Correct Answer

B:

Webhook delivery history exposes request outcomes and payload attempts, helping distinguish destination failures from missing source events.

Incorrect Answers

A:

Mentioning a colleague in a work item comment notifies that person and preserves discussion context with the tracked work; contextual backlog discussion notification cannot substitute for webhook transport troubleshooting.

C:

GitHub integration with Microsoft Teams surfaces repository activity in a selected channel based on subscription configuration; it contributes to GitHub-to-Teams collaboration events, with webhook transport troubleshooting still requiring its own control.

D:

GitHub notification subscriptions let users follow relevant issue or pull request conversations while reducing unrelated alerts; this solves participation-based discussion awareness, leaving webhook transport troubleshooting unresolved.

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.

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