Question 140
Engineers supporting a health logistics vendor are investigating this situation: A pull request workflow uses github.ref as if it were the source branch name, producing an invalid preview namespace. Which release or execution constraint matters most here?
- The output must not contain secrets or untrusted executable text.
- Only artifacts from the approved successful run should be deployable.
- Untrusted branch names must be sanitized before use in shell commands.
- Anchor reuse must preserve valid workflow syntax and intended job-level overrides.
Explanation
Correct Answer
C:It follows from this engineering principle: Workflow context values depend on the triggering event and should not be interchanged blindly.
Incorrect Answers
A:The boundary may be necessary for a separate Step output env file workflow, not the primary risk here. The relevant constraint is: Untrusted branch names must be sanitized before use in shell commands.
B:The constraint around Cross job artifact handoff is not the governing gate for a health logistics vendor. The original defect makes this condition decisive: Untrusted branch names must be sanitized before use in shell commands.
D:The boundary may be necessary for a separate YAML anchor reuse workflow, not the primary risk here. The relevant constraint is: Untrusted branch names must be sanitized before use in shell commands.
Question 141
A workflow review for a regional hospital technology unit identifies a specific risk: A caller job cannot consume a deployment URL returned by a reusable workflow even though an internal step produced it. Which change is the most direct correction for this problem?
- Write the SDK path into GITHUB_ENV for subsequent steps in the same job.
- Map the step output to a job output and then to a workflow_call output in the called workflow.
- Add a needs dependency on the test job and gate deployment on successful completion.
- Write the named step output to GITHUB_OUTPUT and reference it using the step's declared id.
Explanation
Correct Answer
B:The reusable workflow does not export the internal value through all required output layers. Verify the result by checking that the caller's needs output contains the intended deployment URL after a successful call.
Incorrect Answers
A:The proposal may suit Environment variable propagation, but it does not resolve the mechanism visible at a regional hospital technology unit: The reusable workflow does not export the internal value through all required output layers.
C:That work belongs to a different failure involving Job needs dependency. The described workflow needs the narrower change because the reusable workflow does not export the internal value through all required output layers.
D:The proposal may suit Step output env file, but it does not resolve the mechanism visible at a regional hospital technology unit: The reusable workflow does not export the internal value through all required output layers.
Question 142
During a release readiness rehearsal at a regional hospital technology unit, engineers observe the following: A caller job cannot consume a deployment URL returned by a reusable workflow even though an internal step produced it. What technical cause best explains the reported failure?
- The workflow crosses a trust boundary by executing fork-controlled code with base-repository privileges.
- Unvalidated manual inputs are treated as trusted environment selectors.
- The reusable workflow does not export the internal value through all required output layers.
- The cartesian-product matrix expands into an invalid pair without exclusion.
Explanation
Correct Answer
C:This explains the observed behavior at a regional hospital technology unit: The reusable workflow does not export the internal value through all required output layers. The appropriate correction is: Map the step output to a job output and then to a workflow_call output in the called workflow.
Incorrect Answers
A:That explanation predicts a separate Fork pull request target problem. The condition reported by a regional hospital technology unit instead follows from: The reusable workflow does not export the internal value through all required output layers.
B:Although relevant to Typed manual dispatch, this diagnosis does not match the described failure. The actual causal link is: The reusable workflow does not export the internal value through all required output layers.
D:That explanation predicts a separate Matrix exclude unsupported problem. The condition reported by a regional hospital technology unit instead follows from: The reusable workflow does not export the internal value through all required output layers.
Question 143
A review for a regional hospital technology unit during a release readiness rehearsal records this problem: A caller job cannot consume a deployment URL returned by a reusable workflow even though an internal step produced it. Which observation is the most meaningful proof of repair?
- A test job can clone approved sources but cannot push changes through its token.
- Only the intended release run proceeds for the protected target at a time.
- The expanded jobs contain only supported OS/runtime pairs and tests still cover each required platform.
- The caller's needs output contains the intended deployment URL after a successful call.
Explanation
Correct Answer
D:The observation is a direct acceptance condition for a regional hospital technology unit. It verifies the action: Map the step output to a job output and then to a workflow_call output in the called workflow.
Incorrect Answers
A:The proposed signal checks a different behavior involving Job scoped token permissions. Here evidence must instead demonstrate: The caller's needs output contains the intended deployment URL after a successful call.
B:The metric relates to Workflow concurrency group and would leave the actual gap untested. A valid check is: The caller's needs output contains the intended deployment URL after a successful call.
C:That result could verify Matrix exclude unsupported, but not the failure reported at a regional hospital technology unit. The relevant acceptance result is: The caller's needs output contains the intended deployment URL after a successful call.
Question 144
A CI/CD readiness check for a regional hospital technology unit reveals: A caller job cannot consume a deployment URL returned by a reusable workflow even though an internal step produced it. What principle should the team apply when judging solutions?
- Outputs need explicit propagation across step, job and reusable-workflow boundaries.
- Reporting and cleanup conditions should be evaluated separately from success-only deployment conditions.
- Test dependencies need explicit readiness and network configuration.
- Schedules must be defined with explicit time-zone semantics and daylight-saving expectations.
Explanation
Correct Answer
A:The principle explains the reported failure: The reusable workflow does not export the internal value through all required output layers. The acceptance evidence is: The caller's needs output contains the intended deployment URL after a successful call.
Incorrect Answers
B:This rule governs Conditional job status, not the constraint described by a regional hospital technology unit. The applicable rule is: Outputs need explicit propagation across step, job and reusable-workflow boundaries.
C:That concept may matter in a different PostgreSQL service container design. Here the operational boundary is explained by: Outputs need explicit propagation across step, job and reusable-workflow boundaries.
D:This principle does not account for the observed behavior; it belongs to Cron utc timezone. The relevant one is: Outputs need explicit propagation across step, job and reusable-workflow boundaries.
Question 145
A CI/CD readiness check for a specialist clinic platform team reveals: A caller job cannot consume a deployment URL returned by a reusable workflow even though an internal step produced it. Which repeatable process control should be adopted?
- Add a small workflow test that asserts required step outputs are populated.
- Validate output mappings in reusable workflow contract tests.
- Test caller-to-callee input compatibility before updating shared workflows.
- Exercise both success and failure branches in workflow acceptance tests.
Explanation
Correct Answer
B:This control addresses the recurring source of the defect at a specialist clinic platform team: The reusable workflow does not export the internal value through all required output layers.
Incorrect Answers
A:This control would reduce risk around Step output env file, but it does not prevent the reported failure from recurring. The fitting safeguard is: Validate output mappings in reusable workflow contract tests.
C:This safeguard protects a different workflow involving Reusable workflow input contract; the actual root cause requires: Validate output mappings in reusable workflow contract tests.
D:This control would reduce risk around Conditional job status, but it does not prevent the reported failure from recurring. The fitting safeguard is: Validate output mappings in reusable workflow contract tests.
Question 146
Engineers supporting a specialist clinic platform team are investigating this situation: A caller job cannot consume a deployment URL returned by a reusable workflow even though an internal step produced it. Which observation most quickly narrows the cause?
- Inspect the cache key inputs and the changed lockfile hash.
- Inspect the service logs, health status and test connection endpoint.
- Inspect the step, job and workflow_call output declarations in the callee.
- Inspect the summary job if expression and the upstream job conclusions.
Explanation
Correct Answer
C:Checking this first at a specialist clinic platform team narrows the fault without prematurely changing settings. The subsequent correction is: Map the step output to a job output and then to a workflow_call output in the called workflow.
Incorrect Answers
A:The proposed check assumes a separate Dependency cache key failure. To narrow this case first: Inspect the step, job and workflow_call output declarations in the callee.
B:Investigating PostgreSQL service container would delay diagnosis of the condition at a specialist clinic platform team; the direct first check is: Inspect the step, job and workflow_call output declarations in the callee.
D:The proposed check assumes a separate Conditional job status failure. To narrow this case first: Inspect the step, job and workflow_call output declarations in the callee.
Question 147
In preparation for an access-control audit, engineers supporting a specialist clinic platform team notice: A caller job cannot consume a deployment URL returned by a reusable workflow even though an internal step produced it. What constraint must remain true for a safe outcome?
- Concurrency keys must separate unrelated environments while serializing the same target.
- A later publishing job should receive separate narrowly scoped permissions.
- External production database credentials must never be used for this CI service.
- The exported URL must be non-sensitive and must come from the called run.
Explanation
Correct Answer
D:Applying the boundary prevents the workflow from taking an unsafe shortcut while the remedy is implemented: Map the step output to a job output and then to a workflow_call output in the called workflow.
Incorrect Answers
A:The constraint around Workflow concurrency group is not the governing gate for a specialist clinic platform team. The original defect makes this condition decisive: The exported URL must be non-sensitive and must come from the called run.
B:This constraint addresses Job scoped token permissions, whereas the described change must first satisfy: The exported URL must be non-sensitive and must come from the called run.
C:The boundary may be necessary for a separate PostgreSQL service container workflow, not the primary risk here. The relevant constraint is: The exported URL must be non-sensitive and must come from the called run.
Question 148
During a seasonal traffic test at an online retail marketplace, engineers observe the following: A workflow has both branch and path filters, but maintainers expect a run when only one of those filters matches. What should the engineer change to resolve the reported behavior?
- Declare the typed workflow_call input in the called workflow and map it from the caller's with values.
- Apply supported pull request path filters that include relevant source and configuration paths.
- Use the appropriate status-check expression to run the reporting job after failure while preserving needed dependencies.
- Review both trigger filters and make a change that satisfies the required branch and changed-path criteria.
Explanation
Correct Answer
D:The targeted change is appropriate because branch and path filters for a given event are both applied rather than automatically combined as an OR condition. It leads directly to a checkable outcome: Matching branch plus matching file change starts the workflow while a mismatch on either filter does not.
Incorrect Answers
A:This adjustment addresses Reusable workflow input contract instead. For an online retail marketplace, the reported problem is caused by: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
B:That work belongs to a different failure involving Pull request path filter. The described workflow needs the narrower change because branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
C:The proposal may suit Conditional job status, but it does not resolve the mechanism visible at an online retail marketplace: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
Question 149
A review for an online retail marketplace during a seasonal traffic test records this problem: A workflow has both branch and path filters, but maintainers expect a run when only one of those filters matches. What explains why the automation behaves this way?
- The team assumed the cron time matched local wall-clock time without accounting for time zone changes.
- Shell output was never published as a structured step output.
- Multiple workflow runs for the same release target are allowed to overlap without serialization.
- Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
Explanation
Correct Answer
D:The reported symptoms follow from this specific mechanism: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition. A focused corrective action would be: Review both trigger filters and make a change that satisfies the required branch and changed-path criteria.
Incorrect Answers
A:Although relevant to Cron utc timezone, this diagnosis does not match the described failure. The actual causal link is: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
B:This relates to Step output env file; it would call for different acceptance evidence. For this case, the root cause is: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
C:That explanation predicts a separate Workflow concurrency group problem. The condition reported by an online retail marketplace instead follows from: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
Question 150
A CI/CD readiness check for an online retail marketplace reveals: A workflow has both branch and path filters, but maintainers expect a run when only one of those filters matches. What would verify that the original condition is resolved?
- Invalid destination values are rejected and approved values map to the intended protected environment.
- The deployment job downloads the exact bundle produced by its successful dependency.
- A deliberately failing test still produces a summary with failure details.
- Matching branch plus matching file change starts the workflow while a mismatch on either filter does not.
Explanation
Correct Answer
D:The proposed result demonstrates that the original technical gap is closed: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
Incorrect Answers
A:The metric relates to Typed manual dispatch and would leave the actual gap untested. A valid check is: Matching branch plus matching file change starts the workflow while a mismatch on either filter does not.
B:That result could verify Cross job artifact handoff, but not the failure reported at an online retail marketplace. The relevant acceptance result is: Matching branch plus matching file change starts the workflow while a mismatch on either filter does not.
C:The proposed signal checks a different behavior involving Conditional job status. Here evidence must instead demonstrate: Matching branch plus matching file change starts the workflow while a mismatch on either filter does not.
GitHub Actions (GH-200) Practice Tests