Question 140
Several GitHub repositories need to invoke a shared standardized build workflow as part of their own workflows. Which event enables reuse?
- Use tags-based release triggers
- Configure a workflow_call trigger
- Use batch for overlapping Azure Pipeline CI pushes
- Use Azure Repos build validation instead of YAML PR trigger
Explanation
Correct Answer
B:workflow_call declares a reusable workflow that other workflows invoke with defined inputs and secrets. The called workflow can declare required inputs and secrets, allowing repositories to share a complete job definition.
Incorrect Answers
A:Tag filters on push events allow packaging workflows to run for matching version references while ignoring ordinary branch changes; it handles release-reference-driven publication but cannot by itself deliver cross-workflow reuse invocation.
C:Azure Pipelines CI batching can aggregate changes while a branch build is running, reducing unnecessary intermediate runs; that acts on coalescing frequent branch updates, whereas the requested outcome is cross-workflow reuse invocation.
D:Azure Repos Git PR validation is configured through branch build-validation policies rather than relying on the YAML pr trigger used for other repository providers; Azure Repos target-branch PR validation concerns a different control point than cross-workflow reuse invocation.
Question 141
A legacy release pipeline consumes a tested build artifact; migration must not introduce a second build that changes the payload. Which strategy is safest?
- Migrate classic pipeline tasks to YAML
- Review a migrated pipeline with a comparison run
- Investigate build queue bottlenecks before adding CPUs
- Reuse existing build output during classic-to-YAML migration
Explanation
Correct Answer
D:Pipeline resources and artifact download steps let new YAML deployment stages consume an existing immutable build output.
Incorrect Answers
A:YAML pipelines express jobs and steps as source-controlled definitions, improving change review and reproducibility; the distinction is replacing GUI-only automation with code versus migration without rebuilding the release.
B:Side-by-side dry runs or test deployments compare artifacts, variables, approvals, and outcomes before switching fully to the new definition; migration without rebuilding the release cannot be delivered through evidence-based pipeline migration parity.
C:Queue metrics identify a shortage of parallel execution slots or eligible agents, which faster individual CPUs alone cannot fix; its effect is correcting queue-bound pipeline delay, not migration without rebuilding the release.
Question 142
A release engineer wants the exact source changes introduced from version 2.3 to 2.4, excluding earlier history. What comparison should be run?
- Use git reset on unpublished local work
- Use git diff between release tags
- Rotate exposed credentials immediately
- Restore one tracked file from a previous commit
Explanation
Correct Answer
B:git diff between known tag references shows file content differences across the two releases. Comparing the tag refs isolates the changes between those release snapshots rather than displaying all intervening commit messages.
Incorrect Answers
A:git reset can move the branch reference and optionally change the index and working tree; it should be used carefully on private history; this solves moving an unpublished branch pointer, leaving release-to-release source difference unresolved.
C:Credential revocation or rotation invalidates a secret that may already have been copied; history rewriting alone cannot restore secrecy; it handles containment of leaked authentication material but cannot by itself deliver release-to-release source difference.
D:git restore with a chosen source revision retrieves a file's content from the specified tree into the worktree or index; release-to-release source difference remains outside the responsibility of recovering selected file contents.
Question 143
After a mistaken reset, a developer cannot find a previously reachable local commit; the object may still exist locally. Which Git record should they inspect?
- Use git reflog to recover a lost local tip
- Restore one tracked file from a previous commit
- Use git log with path filtering
- Use git diff between release tags
Explanation
Correct Answer
A:git reflog records local reference updates, often exposing prior commit hashes that can be restored before garbage collection.
Incorrect Answers
B:git restore with a chosen source revision retrieves a file's content from the specified tree into the worktree or index; local reference move recovery cannot be inferred from recovering selected file contents alone.
C:git log with a pathspec filters commit history to changes touching selected paths; the distinction is file-scoped commit history versus local reference move recovery.
D:git diff between known tag references shows file content differences across the two releases; local reference move recovery cannot be delivered through release-to-release source difference.
Question 144
A storage account name is generated by one module and needed by a downstream application configuration stage. What template feature returns it safely?
- Use Bicep outputs for dependent deployment values
- Use explicit dependencies for resource creation order
- Use Azure Policy to check IaC outcomes
- Use what-if before infrastructure deployment
Explanation
Correct Answer
A:Bicep outputs expose explicitly selected deployment values so subsequent steps can consume resolved resource identifiers.
Incorrect Answers
B:ARM/Bicep resource references and explicit dependencies establish provisioning order where one resource relies on another; it contributes to resource-graph provisioning dependencies, with module-produced resource references still requiring its own control.
C:Azure Policy evaluates configured resource compliance and can deny changes that violate assigned policy definitions; this solves enforcement of Azure resource guardrails, leaving module-produced resource references unresolved.
D:ARM what-if previews intended resource-state differences from a template without applying those changes; this option addresses preapply infrastructure delta inspection rather than addressing module-produced resource references.
Question 145
A build must not silently accept a newly released upstream library until a security review approves it. Which consumption practice fits?
- Authenticate restore tasks to Azure Artifacts
- Grant feed Publisher to a dedicated release pipeline
- Publish Universal Packages for arbitrary binaries
- Pin a dependency to an approved internal version
Explanation
Correct Answer
D:Exact dependency versions and lockfiles help consumers restore a reviewed artifact rather than whatever is newest in a range.
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 approved dependency reproducibility.
B:A publishing role permits package additions without granting all owner-level feed configuration capabilities; here approved dependency reproducibility is the target, not least-privilege automated publication.
C:Universal Packages can store and distribute arbitrary files as named versioned packages through Azure Artifacts; although that supports format-agnostic release file packaging, this scenario calls for approved dependency reproducibility.
Question 146
A QA engineer finds an intermittent regression during an Azure Test Plans run and wants future triage to retain the failed step and context. Which action is most useful?
- Short-lived branches merged to main by pull request
- Link test cases to user stories
- Link a pull request to its fixing issue
- Associate pipeline runs with commits
- Link bugs to test failures
Explanation
Correct Answer
E:Creating a bug from the test result establishes a work-item link with reproduction details and test execution evidence.
Incorrect Answers
A:GitHub Flow uses a stable main branch, short-lived topic branches, pull requests, and frequent deployment of reviewed changes; that changes lightweight branch-to-main review without delivering failed-test-to-defect traceability.
B:Azure Test Plans relationships between test cases and work items provide requirement-to-test coverage and execution context; requirement-to-test evidence cannot substitute for failed-test-to-defect traceability.
C:GitHub closing keywords in pull request descriptions link issues to code and can close the referenced issue when the PR merges into the default branch; failed-test-to-defect traceability falls outside the scope of issue closure with code evidence.
D:Pipeline run metadata and immutable source commit identifiers connect produced artifacts to their source revision and build results; it contributes to build-to-source provenance, with failed-test-to-defect traceability still requiring its own control.
Question 147
Operators are monitoring a canary release and want near-real-time changes in incoming request rate and failures while traffic shifts. Which App Insights surface fits?
- Use sampling to control high-volume telemetry
- Inspect exception telemetry with stack context
- Use live metrics for immediate release observation
- Track dependency call duration
- Attach deployment version to application telemetry
Explanation
Correct Answer
C:Live Metrics supports low-latency observation of selected application signals during active incidents or deployments.
Incorrect Answers
A:Telemetry sampling reduces selected event volume while retaining enough context for supported analysis and correlated investigation; immediate application health feedback remains outside the responsibility of cost-aware telemetry volume control.
B:Exception telemetry captures application error details, potentially including stack information and related operation context; that acts on application exception root-cause evidence, whereas the requested outcome is immediate application health feedback.
D:Dependency telemetry records outbound calls, timing, and success state, helping isolate latency outside the request handler itself; here immediate application health feedback is the target, not downstream dependency timing.
E:Recording application version or release identifiers with telemetry enables per-version filtering and regression comparison; although that supports version-specific canary analysis, this scenario calls for immediate application health feedback.
Question 148
A testing workflow only checks out source code and runs tests; it should not be able to open issues or publish releases. Which workflow permissions should be requested?
- Grant a maintain role rather than admin for everyday management
- Use GitHub organization teams for access management
- Grant a triage role rather than write for issue management
- Restrict GITHUB_TOKEN to contents read
Explanation
Correct Answer
D:Declaring contents read while omitting unnecessary write scopes applies least privilege to the automatically issued job token.
Incorrect Answers
A:Maintain is intended for broad repository management tasks without all administrator-only powers; read-only code checkout authorization cannot be delivered through nonsecurity repository maintenance delegation.
B:Organization teams organize members and assign repository roles consistently rather than maintaining individuals one by one; its effect is centralized team-to-repository authorization, not read-only code checkout authorization.
C:The triage role supports issue and pull request management operations without conferring normal code write permissions; that changes backlog triage without code updates without delivering read-only code checkout authorization.
Question 149
Following a production incident, release engineers must determine which exact source revision produced the deployed build. What should the process preserve?
- Associate pipeline runs with commits
- Use Azure Boards delivery plans
- Use GitHub issue forms for structured intake
- Connect an Azure Boards project to GitHub repositories
- Reference pull requests in release notes
Explanation
Correct Answer
A:Pipeline run metadata and immutable source commit identifiers connect produced artifacts to their source revision and build results.
Incorrect Answers
B:Delivery Plans aggregates scheduled work from selected Azure Boards teams into a cross-team timeline for dependency and progress visibility; it handles cross-team work schedule visibility but cannot by itself deliver build-to-source provenance.
C:Issue forms define structured fields for new reports, so maintainers receive consistent triage information from contributors; build-to-source provenance remains outside the responsibility of standardized issue reporting.
D:The Azure Boards GitHub connection associates repository activity with work items without migrating either the code or backlog; that acts on cross-service work-item integration, whereas the requested outcome is build-to-source provenance.
E:Release records linked to merged pull requests and associated commits show the approved changes represented by a published build; release-to-change evidence concerns a different control point than build-to-source provenance.
Question 150
A repository is being polluted by compiler caches and machine-specific files that should never be committed. Which Git configuration prevents future accidental tracking?
- Add .gitignore for local build outputs
- Use repository path-based ownership
- Use Git submodules when pinning a separate repository
- Share code through versioned packages
Explanation
Correct Answer
A:The .gitignore file lists untracked path patterns Git should ignore; previously tracked files need separate untracking.
Incorrect Answers
B:CODEOWNERS maps repository path patterns to responsible reviewers and aids targeted review governance; the distinction is ownership within one large repository versus exclude machine-local generated files.
C:A submodule records a commit pointer to another repository, so the superproject pins a chosen revision; exclude machine-local generated files cannot be delivered through separately versioned repository reference.
D:Publishing a versioned package gives each consumer an explicit dependency contract without forcing shared repository history; its effect is decoupled code-sharing release cadence, not exclude machine-local generated files.