Question 60
In preparation for a multi-region staging run, engineers supporting a cloud software vendor notice: The build matrix schedules a runtime and operating-system combination that the application does not support. What principle should the team apply when judging solutions?
- Reusable workflow calls depend on explicit, versioned input contracts.
- Test dependencies need explicit readiness and network configuration.
- Matrix dimensions and combinations must reflect supported test environments.
- YAML anchors reduce within-file duplication but do not create cross-file workflow reuse.
Explanation
Correct Answer
C:The principle explains the reported failure: The cartesian-product matrix expands into an invalid pair without exclusion. The acceptance evidence is: The expanded jobs contain only supported OS/runtime pairs and tests still cover each required platform.
Incorrect Answers
A:This principle does not account for the observed behavior; it belongs to Reusable workflow input contract. The relevant one is: Matrix dimensions and combinations must reflect supported test environments.
B:This rule governs PostgreSQL service container, not the constraint described by a cloud software vendor. The applicable rule is: Matrix dimensions and combinations must reflect supported test environments.
D:This principle does not account for the observed behavior; it belongs to YAML anchor reuse. The relevant one is: Matrix dimensions and combinations must reflect supported test environments.
Question 61
In preparation for a production promotion review, engineers supporting a B2B API provider notice: The build matrix schedules a runtime and operating-system combination that the application does not support. Which repeatable process control should be adopted?
- Include network-address checks when moving jobs between VM and container execution.
- Recheck matrix exclusions when operating-system images or runtimes change.
- Review dispatch input contracts whenever environments are added or renamed.
- Include summary generation and safe content filtering in the test reporting workflow.
Explanation
Correct Answer
B:This control addresses the recurring source of the defect at a B2B API provider: The cartesian-product matrix expands into an invalid pair without exclusion.
Incorrect Answers
A:This control would reduce risk around Container job networking, but it does not prevent the reported failure from recurring. The fitting safeguard is: Recheck matrix exclusions when operating-system images or runtimes change.
C:This safeguard protects a different workflow involving Typed manual dispatch; the actual root cause requires: Recheck matrix exclusions when operating-system images or runtimes change.
D:This control would reduce risk around Job summary publication, but it does not prevent the reported failure from recurring. The fitting safeguard is: Recheck matrix exclusions when operating-system images or runtimes change.
Question 62
An automation change at a B2B API provider exposes this failure: The build matrix schedules a runtime and operating-system combination that the application does not support. Which observation most quickly narrows the cause?
- Inspect the cache key inputs and the changed lockfile hash.
- Inspect the expanded matrix jobs and the include/exclude configuration.
- Inspect the producing step id, output-file write and consumer expression.
- Inspect the service logs, health status and test connection endpoint.
Explanation
Correct Answer
B:Checking this first at a B2B API provider narrows the fault without prematurely changing settings. The subsequent correction is: Exclude the unsupported combination from the strategy matrix and retain supported coverage.
Incorrect Answers
A:The proposed check assumes a separate Dependency cache key failure. To narrow this case first: Inspect the expanded matrix jobs and the include/exclude configuration.
C:This inspection is useful when investigating Step output env file, but it is not the first discriminator here. Inspect instead: Inspect the expanded matrix jobs and the include/exclude configuration.
D:The proposed check assumes a separate PostgreSQL service container failure. To narrow this case first: Inspect the expanded matrix jobs and the include/exclude configuration.
Question 63
A workflow review for a B2B API provider identifies a specific risk: The build matrix schedules a runtime and operating-system combination that the application does not support. What constraint must remain true for a safe outcome?
- Only non-sensitive results and approved artifact links should be displayed.
- Removing a combination must not silently eliminate a supported platform requirement.
- The value should be a nonsecret configuration path and not be assumed to cross job boundaries.
- Only artifacts from the approved successful run should be deployable.
Explanation
Correct Answer
B:Applying the boundary prevents the workflow from taking an unsafe shortcut while the remedy is implemented: Exclude the unsupported combination from the strategy matrix and retain supported coverage.
Incorrect Answers
A:The constraint around Job summary publication is not the governing gate for a B2B API provider. The original defect makes this condition decisive: Removing a combination must not silently eliminate a supported platform requirement.
C:The boundary may be necessary for a separate Environment variable propagation workflow, not the primary risk here. The relevant constraint is: Removing a combination must not silently eliminate a supported platform requirement.
D:The constraint around Cross job artifact handoff is not the governing gate for a B2B API provider. The original defect makes this condition decisive: Removing a combination must not silently eliminate a supported platform requirement.
Question 64
A CI/CD readiness check for a public research institute reveals: One unstable matrix leg cancels unrelated test variants, obscuring whether the failure is platform-specific. What should the engineer change to resolve the reported behavior?
- Disable fail-fast for the diagnostic matrix run so other legs can finish and report their results.
- Add a needs dependency on the test job and gate deployment on successful completion.
- Declare least-privilege job permissions such as contents read and remove unneeded write scopes.
- Define constrained dispatch inputs with appropriate types and validate allowed destinations before deployment.
Explanation
Correct Answer
A:The targeted change is appropriate because the matrix default cancellation behavior stops queued or running siblings after a failure. It leads directly to a checkable outcome: A controlled failure in one leg still yields results for the other selected variants.
Incorrect Answers
B:That work belongs to a different failure involving Job needs dependency. The described workflow needs the narrower change because the matrix default cancellation behavior stops queued or running siblings after a failure.
C:The proposal may suit Job scoped token permissions, but it does not resolve the mechanism visible at a public research institute: The matrix default cancellation behavior stops queued or running siblings after a failure.
D:This adjustment addresses Typed manual dispatch instead. For a public research institute, the reported problem is caused by: The matrix default cancellation behavior stops queued or running siblings after a failure.
Question 65
Engineers supporting a public research institute are investigating this situation: One unstable matrix leg cancels unrelated test variants, obscuring whether the failure is platform-specific. What explains why the automation behaves this way?
- The workflow crosses a trust boundary by executing fork-controlled code with base-repository privileges.
- The matrix default cancellation behavior stops queued or running siblings after a failure.
- Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
- Workflow or repository defaults are broader than the test job requires.
Explanation
Correct Answer
B:The reported symptoms follow from this specific mechanism: The matrix default cancellation behavior stops queued or running siblings after a failure. A focused corrective action would be: Disable fail-fast for the diagnostic matrix run so other legs can finish and report their results.
Incorrect Answers
A:Although relevant to Fork pull request target, this diagnosis does not match the described failure. The actual causal link is: The matrix default cancellation behavior stops queued or running siblings after a failure.
C:That explanation predicts a separate Path filter combination problem. The condition reported by a public research institute instead follows from: The matrix default cancellation behavior stops queued or running siblings after a failure.
D:Although relevant to Job scoped token permissions, this diagnosis does not match the described failure. The actual causal link is: The matrix default cancellation behavior stops queued or running siblings after a failure.
Question 66
In preparation for a data services build rehearsal, engineers supporting a public research institute notice: One unstable matrix leg cancels unrelated test variants, obscuring whether the failure is platform-specific. What would verify that the original condition is resolved?
- The deployment job downloads the exact bundle produced by its successful dependency.
- Matching branch plus matching file change starts the workflow while a mismatch on either filter does not.
- The caller's needs output contains the intended deployment URL after a successful call.
- A controlled failure in one leg still yields results for the other selected variants.
Explanation
Correct Answer
D:The proposed result demonstrates that the original technical gap is closed: The matrix default cancellation behavior stops queued or running siblings after a failure.
Incorrect Answers
A:The metric relates to Cross job artifact handoff and would leave the actual gap untested. A valid check is: A controlled failure in one leg still yields results for the other selected variants.
B:That result could verify Path filter combination, but not the failure reported at a public research institute. The relevant acceptance result is: A controlled failure in one leg still yields results for the other selected variants.
C:The proposed signal checks a different behavior involving Reusable output plumbing. Here evidence must instead demonstrate: A controlled failure in one leg still yields results for the other selected variants.
Question 67
An automation change at a public research institute exposes this failure: One unstable matrix leg cancels unrelated test variants, obscuring whether the failure is platform-specific. Which engineering principle should guide this decision?
- Human-triggered automation still requires input validation and authorization.
- Failure handling should preserve the evidence needed for cross-platform diagnosis.
- Multiple event filters define a combined eligibility boundary.
- Workflow environment files bridge step boundaries within their defined scope.
Explanation
Correct Answer
B:This principle governs the problem at a public research institute. Applying it leads to the targeted change: Disable fail-fast for the diagnostic matrix run so other legs can finish and report their results.
Incorrect Answers
A:This rule governs Typed manual dispatch, not the constraint described by a public research institute. The applicable rule is: Failure handling should preserve the evidence needed for cross-platform diagnosis.
C:This principle does not account for the observed behavior; it belongs to Path filter combination. The relevant one is: Failure handling should preserve the evidence needed for cross-platform diagnosis.
D:This rule governs Environment variable propagation, not the constraint described by a public research institute. The applicable rule is: Failure handling should preserve the evidence needed for cross-platform diagnosis.
Question 68
An automation change at a bioinformatics team exposes this failure: One unstable matrix leg cancels unrelated test variants, obscuring whether the failure is platform-specific. How can the team reduce the chance that this failure returns?
- Review scheduled time mapping around regional clock changes.
- Test critical step-to-step environment propagation after runner image updates.
- Add a security review for changes to pull_request_target and checkout ref handling.
- Maintain separate diagnostic and cost-optimized matrix policies.
Explanation
Correct Answer
D:The failure it prevents is: The matrix default cancellation behavior stops queued or running siblings after a failure.
Incorrect Answers
A:The proposed routine targets Cron utc timezone. At a bioinformatics team, recurrence is more directly prevented by: Maintain separate diagnostic and cost-optimized matrix policies.
B:This safeguard protects a different workflow involving Environment variable propagation; the actual root cause requires: Maintain separate diagnostic and cost-optimized matrix policies.
C:This control would reduce risk around Fork pull request target, but it does not prevent the reported failure from recurring. The fitting safeguard is: Maintain separate diagnostic and cost-optimized matrix policies.
Question 69
A workflow review for a bioinformatics team identifies a specific risk: One unstable matrix leg cancels unrelated test variants, obscuring whether the failure is platform-specific. What first investigation step is most appropriate?
- Check the strategy fail-fast setting and the canceled job conclusions.
- Inspect the anchor declaration and each alias reference in the same YAML file.
- Compare the caller's with keys against the callee's workflow_call input definitions.
- Inspect the step, job and workflow_call output declarations in the callee.
Explanation
Correct Answer
A:If confirmed, the appropriate response is: Disable fail-fast for the diagnostic matrix run so other legs can finish and report their results.
Incorrect Answers
B:This inspection is useful when investigating YAML anchor reuse, but it is not the first discriminator here. Inspect instead: Check the strategy fail-fast setting and the canceled job conclusions.
C:The proposed check assumes a separate Reusable workflow input contract failure. To narrow this case first: Check the strategy fail-fast setting and the canceled job conclusions.
D:Investigating Reusable output plumbing would delay diagnosis of the condition at a bioinformatics team; the direct first check is: Check the strategy fail-fast setting and the canceled job conclusions.
Question 70
During a reproducible release review at a bioinformatics team, engineers observe the following: One unstable matrix leg cancels unrelated test variants, obscuring whether the failure is platform-specific. Which prerequisite or trust boundary must be satisfied?
- Release packaging may proceed only for the authorized release ref.
- A later publishing job should receive separate narrowly scoped permissions.
- Anchor reuse must preserve valid workflow syntax and intended job-level overrides.
- Broader diagnostic execution should be scoped to avoid unnecessary expensive runs.
Explanation
Correct Answer
D:This condition protects the relevant trust or execution boundary at a bioinformatics team. Ignoring it would recreate the defect: The matrix default cancellation behavior stops queued or running siblings after a failure.
Incorrect Answers
A:This constraint addresses Branch filtered push, whereas the described change must first satisfy: Broader diagnostic execution should be scoped to avoid unnecessary expensive runs.
B:The boundary may be necessary for a separate Job scoped token permissions workflow, not the primary risk here. The relevant constraint is: Broader diagnostic execution should be scoped to avoid unnecessary expensive runs.
C:The constraint around YAML anchor reuse is not the governing gate for a bioinformatics team. The original defect makes this condition decisive: Broader diagnostic execution should be scoped to avoid unnecessary expensive runs.
GitHub Actions (GH-200) Practice Tests