Question 440
A pipeline rerun often passes without code changes; which metric helps isolate nondeterministic tests rather than genuine regressions?
- Use deployment duration trends
- Track code coverage trend
- Track flaky-test frequency
- Track rollback count by release
Explanation
Correct Answer
C:Flaky-test metrics identify tests with inconsistent outcomes across comparable runs and help prioritize stabilization work.
Incorrect Answers
A:Deployment duration by stage and environment identifies slower pipeline activities and supports targeted release-process optimization; here inconsistent test result frequency is the target, not environment rollout elapsed time.
B:Code coverage measures which instrumented lines or branches run during tests; trends reveal changes in tested code surface; although that supports automated test execution coverage, this scenario calls for inconsistent test result frequency.
D:Rollback frequency counts production deployments that are reverted and indicates a release quality problem not visible in build pass rates; the distinction is reversal rate after delivery versus inconsistent test result frequency.
Question 441
A service owner suspects a new rollout cadence coincides with more production faults and wants evidence before changing policy. What comparison should be made?
- Correlate incident counts with releases
- Track rollback count by release
- Track code coverage trend
- Analyze backlog throughput by work item type
Explanation
Correct Answer
A:Time-aligning deployment events with incident counts reveals associations worth investigating without asserting deployment caused every incident.
Incorrect Answers
B:Rollback frequency counts production deployments that are reverted and indicates a release quality problem not visible in build pass rates; release-and-incident temporal relationship falls outside the scope of reversal rate after delivery.
C:Code coverage measures which instrumented lines or branches run during tests; trends reveal changes in tested code surface; it contributes to automated test execution coverage, with release-and-incident temporal relationship still requiring its own control.
D:Completed work items grouped by type and iteration reveal throughput composition rather than an undifferentiated completed-task count; this solves bug-versus-feature delivery mix, leaving release-and-incident temporal relationship unresolved.
Question 442
A service authenticates as a GitHub App but must perform repository operations under a particular installation's authorization. Which token should it request?
- Use GitHub organization teams for access management
- Use a fine-grained personal access token when a PAT is unavoidable
- Use installation access tokens for GitHub App API calls
- Use protected environments to gate secret access
Explanation
Correct Answer
C:An installation access token provides time-limited API authority according to the app's installed repositories and permissions.
Incorrect Answers
A:Organization teams organize members and assign repository roles consistently rather than maintaining individuals one by one; that acts on centralized team-to-repository authorization, whereas the requested outcome is operational GitHub App installation identity.
B:Fine-grained personal access tokens can narrow repository selection, permissions, and expiration compared with broad classic tokens; limited user-backed integration access concerns a different control point than operational GitHub App installation identity.
D:GitHub environment protection rules can gate job execution and access to environment-scoped secrets; although that supports guarded production secret exposure, this scenario calls for operational GitHub App installation identity.
Question 443
Five regions deploy the same workload with different parameters, and copying entire stages has caused drift. Which composition pattern should be used?
- Use a deployment environment resource reference
- Use explicit cross-stage dependencies
- Use reusable stages for repeated regional deployments
- Use workspace clean before state-sensitive builds
- Use checkout none for deployment-only jobs
Explanation
Correct Answer
C:A parameterized stage template lets each regional stage share tested deployment steps while supplying distinct environment values.
Incorrect Answers
A:Environment resource selection narrows the deployment target while preserving environment-level history and checks; its effect is per-resource deployment targeting, not templated regional deployment stages.
B:Stage dependencies encode prerequisite success across earlier stages, preventing premature promotion when multiple checks are required; that changes multi-stage release prerequisite graph without delivering templated regional deployment stages.
D:Workspace cleaning deletes selected previous contents before work starts, reducing contamination on persistent agents; templated regional deployment stages falls outside the scope of self-hosted workspace hygiene.
E: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 templated regional deployment stages still requiring its own control.
Question 444
Developers say code is finished but features stall before merge; managers need to separate reviewer delays from coding time. What should they analyze?
- Use velocity for iteration capacity forecasting
- Measure pull request review wait time
- Measure cycle time from work start to completion
- Track change failure rate
Explanation
Correct Answer
B:Pull request review latency captures the time a change waits for reviewer attention or approval, isolating a common delivery bottleneck.
Incorrect Answers
A:Velocity summarizes work completed in prior iterations and can inform capacity planning for the same team when estimation stays consistent; it handles historical sprint throughput but cannot by itself deliver approval wait time.
C:Cycle time tracks elapsed time once work starts until completion, exposing delays within the active delivery workflow; that acts on active-work duration, whereas the requested outcome is approval wait time.
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 approval wait time.
Question 445
A defective commit was already pushed and pulled by other developers; the team needs a safe undo that retains published history. Which command is preferred?
- Use git revert for a bad shared commit
- Use git bisect to locate a regression
- Use git diff between release tags
- Rotate exposed credentials immediately
Explanation
Correct Answer
A:git revert creates a new inverse commit, avoiding rewritten shared ancestry and preserving an auditable correction.
Incorrect Answers
B:git bisect performs a binary search through commit history using good/bad test results to isolate the first failing change; undo without rewriting shared history cannot be delivered through identifying the first faulty commit.
C:git diff between known tag references shows file content differences across the two releases; its effect is release-to-release source difference, not undo without rewriting shared history.
D:Credential revocation or rotation invalidates a secret that may already have been copied; history rewriting alone cannot restore secrecy; that changes containment of leaked authentication material without delivering undo without rewriting shared history.
Question 446
Project staff should manage code but only a smaller governance group may delete repositories or change destructive settings. What should be controlled?
- Protect default branch from deletion
- Use annotated Git tags for audited releases
- Restrict force pushes on protected branches
- Restrict repository deletion
Explanation
Correct Answer
D:Administrative permissions govern destructive repository operations and should be limited independently from ordinary code contribution.
Incorrect Answers
A:Branch protection or restricted delete permissions prevent unauthorized removal of important branch references; this solves safeguarding main branch existence, leaving destructive repository administration rights unresolved.
B:Annotated tags create dedicated Git tag objects with metadata and are useful for durable release identification; this option addresses metadata-rich release markers rather than addressing destructive repository administration rights.
C:Force push permissions govern rewriting and deletion of branches or tags, a higher-risk action than ordinary contribution; it handles prevention of shared-history replacement but cannot by itself deliver destructive repository administration rights.
Question 447
Consumers need to verify which trusted workflow built a distributed binary rather than trust only a filename. Which GitHub supply-chain feature can help?
- Use GitHub Actions job needs for execution order
- Use artifact attestations for release provenance
- Use composite actions for repeated step logic
- Use environments with required reviewers in GitHub
Explanation
Correct Answer
B:Artifact attestations associate verifiable provenance statements with build outputs, improving downstream verification of their origin.
Incorrect Answers
A:The needs key creates explicit GitHub Actions job dependencies so downstream jobs wait for required predecessors; although that supports dependency-ordered GitHub workflow jobs, this scenario calls for verifiable GitHub-generated artifact provenance.
C:Composite actions bundle related steps into a callable action usable within an existing job; the distinction is portable in-job step assembly versus verifiable GitHub-generated artifact provenance.
D:GitHub environments can apply protection rules such as required reviewers before guarded deployment jobs proceed; verifiable GitHub-generated artifact provenance cannot be delivered through protected GitHub deployment approval.
Question 448
Documentation and unrelated services change frequently; rerunning every integration suite makes PR feedback slow. What optimization helps if dependency mapping is trustworthy?
- Investigate build queue bottlenecks before adding CPUs
- Move repeated setup into a prebuilt image
- Use selective test execution for monorepo changes
- Create separate fast PR and full nightly verification
Explanation
Correct Answer
C:Path-aware test selection can run affected verification suites while retaining full broader checks at appropriate release gates.
Incorrect Answers
A:Queue metrics identify a shortage of parallel execution slots or eligible agents, which faster individual CPUs alone cannot fix; change-impact-based verification falls outside the scope of correcting queue-bound pipeline delay.
B:A maintained prebuilt worker or container image provides standard toolchains without repeating their installation in each job; it contributes to preprovisioned build dependencies, with change-impact-based verification still requiring its own control.
D:A fast deterministic PR gate plus broader scheduled or prerelease suites preserves frequent feedback without abandoning comprehensive validation; this option addresses tiered verification latency rather than addressing change-impact-based verification.
Question 449
A hosted test agent is destroyed after a failed run, leaving developers unable to reproduce the failure cause. Which pipeline behavior helps?
- Collect failing test logs and artifacts
- Run unit tests before packaging
- Use contract tests between producer and consumer
- Include database migration tests before rollout
Explanation
Correct Answer
A:Publishing diagnostic logs and test-result artifacts preserves failure evidence independently of the agent workspace lifecycle.
Incorrect Answers
B:Unit tests exercise small components in isolation and are usually fast enough to provide immediate feedback during continuous integration; here durable failed-run diagnostics is the target, not low-cost component correctness.
C:Contract tests verify that producers and consumers satisfy agreed interface expectations before integration breaks at runtime; although that supports cross-team API compatibility, this scenario calls for durable failed-run diagnostics.
D:Migration tests exercise schema changes against representative database states and help detect incompatible or irreversible transformations; durable failed-run diagnostics cannot be inferred from database evolution compatibility checks alone.
Question 450
A pull request was approved, then new unreviewed commits were pushed; the team wants prior approval re-evaluated. What reviewer-policy option should be used?
- Reset votes when source changes
- Automatically include required path owners
- Require linked work items on pull requests
- Restrict direct pushes to the default branch
Explanation
Correct Answer
A:Vote reset or approval restrictions after new pushes prevent stale approvals from authorizing substantially changed code.
Incorrect Answers
B:Automatically included reviewer rules can match changed paths and request or require the designated code owners for those files; folder-specific expert review cannot substitute for review freshness after new commits.
C:The linked work item check enforces or evaluates traceability between a pull request and work items according to branch-policy configuration; review freshness after new commits falls outside the scope of verified backlog reference at merge.
D:Protected branch rules and targeted permissions can stop direct updates and require approved pull request workflows; it contributes to enforcing reviewed branch updates, with review freshness after new commits still requiring its own control.