Question 50
During a customer onboarding deployment at a subscription media service, engineers observe the following: An incident-summary job configured with a default condition disappears when an earlier test job fails, leaving no failure report. What is the best focused remediation?
- Use the appropriate pull request head-ref context when constructing the preview branch identifier.
- Write the named step output to GITHUB_OUTPUT and reference it using the step's declared id.
- Apply a release-specific concurrency group and a deliberate cancel-in-progress policy.
- Use the appropriate status-check expression to run the reporting job after failure while preserving needed dependencies.
Explanation
Correct Answer
D:For a subscription media service, this addresses the governing failure: The default success requirement prevents the summary job from running after an upstream failure. Success would be demonstrated by: A deliberately failing test still produces a summary with failure details.
Incorrect Answers
A:That work belongs to a different failure involving Ref vs head ref. The described workflow needs the narrower change because the default success requirement prevents the summary job from running after an upstream failure.
B:The proposal may suit Step output env file, but it does not resolve the mechanism visible at a subscription media service: The default success requirement prevents the summary job from running after an upstream failure.
C:This adjustment addresses Workflow concurrency group instead. For a subscription media service, the reported problem is caused by: The default success requirement prevents the summary job from running after an upstream failure.
Question 51
A review for a subscription media service during a customer onboarding deployment records this problem: An incident-summary job configured with a default condition disappears when an earlier test job fails, leaving no failure report. Which underlying mismatch most directly causes the behavior?
- The default success requirement prevents the summary job from running after an upstream failure.
- The workflow never publishes the computed results through its job-summary channel.
- The reusable workflow does not export the internal value through all required output layers.
- Shell output was never published as a structured step output.
Explanation
Correct Answer
A:The root mismatch connects the observed symptom to the missing configuration or trust boundary: The default success requirement prevents the summary job from running after an upstream failure. It can be tested using this evidence: A deliberately failing test still produces a summary with failure details.
Incorrect Answers
B:That explanation predicts a separate Job summary publication problem. The condition reported by a subscription media service instead follows from: The default success requirement prevents the summary job from running after an upstream failure.
C:Although relevant to Reusable output plumbing, this diagnosis does not match the described failure. The actual causal link is: The default success requirement prevents the summary job from running after an upstream failure.
D:This relates to Step output env file; it would call for different acceptance evidence. For this case, the root cause is: The default success requirement prevents the summary job from running after an upstream failure.
Question 52
A CI/CD readiness check for a subscription media service reveals: An incident-summary job configured with a default condition disappears when an earlier test job fails, leaving no failure report. What acceptance evidence should the team require?
- A controlled caller run resolves the declared input and deploys to the intended nonproduction region.
- The preview environment name is based on the intended source branch and remains sanitized.
- An untrusted pull request cannot execute its own scripts with repository-write permissions or deployment secrets.
- A deliberately failing test still produces a summary with failure details.
Explanation
Correct Answer
D:This tests the actual failure mode at a subscription media service rather than merely showing that a configuration changed. The default success requirement prevents the summary job from running after an upstream failure.
Incorrect Answers
A:That result could verify Reusable workflow input contract, but not the failure reported at a subscription media service. The relevant acceptance result is: A deliberately failing test still produces a summary with failure details.
B:The proposed signal checks a different behavior involving Ref vs head ref. Here evidence must instead demonstrate: A deliberately failing test still produces a summary with failure details.
C:The metric relates to Fork pull request target and would leave the actual gap untested. A valid check is: A deliberately failing test still produces a summary with failure details.
Question 53
Engineers supporting a subscription media service are investigating this situation: An incident-summary job configured with a default condition disappears when an earlier test job fails, leaving no failure report. Which design rule most directly governs this situation?
- Workflow summaries are for human-facing outcomes rather than full artifact storage.
- Reporting and cleanup conditions should be evaluated separately from success-only deployment conditions.
- Event filters are admission controls for workflow runs, not substitutes for later deployment approval.
- Workflow environment files bridge step boundaries within their defined scope.
Explanation
Correct Answer
B:Here the triggering gap is: The default success requirement prevents the summary job from running after an upstream failure.
Incorrect Answers
A:That concept may matter in a different Job summary publication design. Here the operational boundary is explained by: Reporting and cleanup conditions should be evaluated separately from success-only deployment conditions.
C:This rule governs Branch filtered push, not the constraint described by a subscription media service. The applicable rule is: Reporting and cleanup conditions should be evaluated separately from success-only deployment conditions.
D:That concept may matter in a different Environment variable propagation design. Here the operational boundary is explained by: Reporting and cleanup conditions should be evaluated separately from success-only deployment conditions.
Question 54
Engineers supporting a content delivery business are investigating this situation: An incident-summary job configured with a default condition disappears when an earlier test job fails, leaving no failure report. What ongoing guardrail best prevents recurrence?
- Include branch-trigger regression checks whenever release branch naming changes.
- Add a small workflow test that asserts required step outputs are populated.
- Add a security review for changes to pull_request_target and checkout ref handling.
- Exercise both success and failure branches in workflow acceptance tests.
Explanation
Correct Answer
D:Applying this preventive check to future changes helps ensure the verified condition continues to hold: A deliberately failing test still produces a summary with failure details.
Incorrect Answers
A:This safeguard protects a different workflow involving Branch filtered push; the actual root cause requires: Exercise both success and failure branches in workflow acceptance tests.
B:This control would reduce risk around Step output env file, but it does not prevent the reported failure from recurring. The fitting safeguard is: Exercise both success and failure branches in workflow acceptance tests.
C:The proposed routine targets Fork pull request target. At a content delivery business, recurrence is more directly prevented by: Exercise both success and failure branches in workflow acceptance tests.
Question 55
In preparation for a streaming infrastructure review, engineers supporting a content delivery business notice: An incident-summary job configured with a default condition disappears when an earlier test job fails, leaving no failure report. What should be checked before modifying the workflow?
- Inspect workflow-level concurrency expressions and overlapping run histories.
- Inspect the workflow_dispatch input types, defaults and input consumption.
- Inspect whether the producer exports a shell variable or appends to GITHUB_ENV.
- Inspect the summary job if expression and the upstream job conclusions.
Explanation
Correct Answer
D:The key mechanism is: The default success requirement prevents the summary job from running after an upstream failure.
Incorrect Answers
A:This inspection is useful when investigating Workflow concurrency group, but it is not the first discriminator here. Inspect instead: Inspect the summary job if expression and the upstream job conclusions.
B:The proposed check assumes a separate Typed manual dispatch failure. To narrow this case first: Inspect the summary job if expression and the upstream job conclusions.
C:Investigating Environment variable propagation would delay diagnosis of the condition at a content delivery business; the direct first check is: Inspect the summary job if expression and the upstream job conclusions.
Question 56
An automation change at a content delivery business exposes this failure: An incident-summary job configured with a default condition disappears when an earlier test job fails, leaving no failure report. Which release or execution constraint matters most here?
- Failure reporting must not grant permission to deploy a failed build.
- Release packaging may proceed only for the authorized release ref.
- The output must not contain secrets or untrusted executable text.
- Untrusted branch names must be sanitized before use in shell commands.
Explanation
Correct Answer
A:It follows from this engineering principle: Reporting and cleanup conditions should be evaluated separately from success-only deployment conditions.
Incorrect Answers
B:The constraint around Branch filtered push is not the governing gate for a content delivery business. The original defect makes this condition decisive: Failure reporting must not grant permission to deploy a failed build.
C:This constraint addresses Step output env file, whereas the described change must first satisfy: Failure reporting must not grant permission to deploy a failed build.
D:The boundary may be necessary for a separate Ref vs head ref workflow, not the primary risk here. The relevant constraint is: Failure reporting must not grant permission to deploy a failed build.
Question 57
A review for a cloud software vendor during a multi-region staging run records this problem: The build matrix schedules a runtime and operating-system combination that the application does not support. Which change is the most direct correction for this problem?
- Write the SDK path into GITHUB_ENV for subsequent steps in the same job.
- Restrict the push trigger to the approved branch pattern and validate the release-ref condition.
- Exclude the unsupported combination from the strategy matrix and retain supported coverage.
- Keep the privileged event on trusted base code and separate any untrusted checkout into an isolated read-only workflow.
Explanation
Correct Answer
C:The cartesian-product matrix expands into an invalid pair without exclusion. Verify the result by checking that the expanded jobs contain only supported OS/runtime pairs and tests still cover each required platform.
Incorrect Answers
A:The proposal may suit Environment variable propagation, but it does not resolve the mechanism visible at a cloud software vendor: The cartesian-product matrix expands into an invalid pair without exclusion.
B:This adjustment addresses Branch filtered push instead. For a cloud software vendor, the reported problem is caused by: The cartesian-product matrix expands into an invalid pair without exclusion.
D:The proposal may suit Fork pull request target, but it does not resolve the mechanism visible at a cloud software vendor: The cartesian-product matrix expands into an invalid pair without exclusion.
Question 58
A CI/CD readiness check for a cloud software vendor reveals: The build matrix schedules a runtime and operating-system combination that the application does not support. What technical cause best explains the reported failure?
- The cartesian-product matrix expands into an invalid pair without exclusion.
- The reusable workflow interface omits an input required by its caller.
- The job container and database service have distinct network identities.
- Workflow or repository defaults are broader than the test job requires.
Explanation
Correct Answer
A:This explains the observed behavior at a cloud software vendor: The cartesian-product matrix expands into an invalid pair without exclusion. The appropriate correction is: Exclude the unsupported combination from the strategy matrix and retain supported coverage.
Incorrect Answers
B:Although relevant to Reusable workflow input contract, this diagnosis does not match the described failure. The actual causal link is: The cartesian-product matrix expands into an invalid pair without exclusion.
C:This relates to Container job networking; it would call for different acceptance evidence. For this case, the root cause is: The cartesian-product matrix expands into an invalid pair without exclusion.
D:That explanation predicts a separate Job scoped token permissions problem. The condition reported by a cloud software vendor instead follows from: The cartesian-product matrix expands into an invalid pair without exclusion.
Question 59
Engineers supporting a cloud software vendor are investigating this situation: The build matrix schedules a runtime and operating-system combination that the application does not support. Which observation is the most meaningful proof of repair?
- A test job can clone approved sources but cannot push changes through its token.
- The caller's needs output contains the intended deployment URL after a successful call.
- Commits on feature branches skip release packaging while approved release-branch commits start it.
- The expanded jobs contain only supported OS/runtime pairs and tests still cover each required platform.
Explanation
Correct Answer
D:The observation is a direct acceptance condition for a cloud software vendor. It verifies the action: Exclude the unsupported combination from the strategy matrix and retain supported coverage.
Incorrect Answers
A:The proposed signal checks a different behavior involving Job scoped token permissions. Here evidence must instead demonstrate: The expanded jobs contain only supported OS/runtime pairs and tests still cover each required platform.
B:The metric relates to Reusable output plumbing and would leave the actual gap untested. A valid check is: The expanded jobs contain only supported OS/runtime pairs and tests still cover each required platform.
C:That result could verify Branch filtered push, but not the failure reported at a cloud software vendor. The relevant acceptance result is: The expanded jobs contain only supported OS/runtime pairs and tests still cover each required platform.
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.
GitHub Actions (GH-200) Practice Tests