Question 290
A workflow review for a public university identifies a specific risk: A workflow remains pending even though unused runners are visible, while an older run uses the same concurrency key. Which test result best establishes that the issue is corrected?
- Only the intended failed variant reruns and the final run record retains its history.
- The run proceeds when the prior group member finishes or is deliberately canceled.
- New retained evidence can be downloaded within the documented approval window.
- The reporting job runs in expected skip cases without allowing unauthorized deployment.
Explanation
Correct Answer
B:The proposed result demonstrates that the original technical gap is closed: The run is serialized by its group rather than blocked by a lack of runner capacity.
Incorrect Answers
A:The metric relates to Targeted rerun selection and would leave the actual gap untested. A valid check is: The run proceeds when the prior group member finishes or is deliberately canceled.
C:The proposed signal checks a different behavior involving Artifact expiration. Here evidence must instead demonstrate: The run proceeds when the prior group member finishes or is deliberately canceled.
D:The metric relates to Skipped dependent job and would leave the actual gap untested. A valid check is: The run proceeds when the prior group member finishes or is deliberately canceled.
Question 291
During a student services application launch at a public university, engineers observe the following: A workflow remains pending even though unused runners are visible, while an older run uses the same concurrency key. What operational principle best describes the safe approach?
- Workflow artifacts have lifetimes and should not be treated as permanent compliance archives.
- Source definitions and execution permissions are separate lifecycle states.
- Observability depends on retrieving the appropriate evidence layer with correct authorization.
- Scheduling controls and runner capacity are distinct bottlenecks.
Explanation
Correct Answer
D:This principle governs the problem at a public university. Applying it leads to the targeted change: Inspect pending-run concurrency groups before provisioning more runners.
Incorrect Answers
A:This rule governs Artifact expiration, not the constraint described by a public university. The applicable rule is: Scheduling controls and runner capacity are distinct bottlenecks.
B:That concept may matter in a different Disabled vs deleted workflow design. Here the operational boundary is explained by: Scheduling controls and runner capacity are distinct bottlenecks.
C:This principle does not account for the observed behavior; it belongs to Workflow logs API. The relevant one is: Scheduling controls and runner capacity are distinct bottlenecks.
Question 292
During a course platform modernization at a community college development team, engineers observe the following: A workflow remains pending even though unused runners are visible, while an older run uses the same concurrency key. What preventive measure fits this exact failure mode?
- Validate third-party action refs before merging workflow changes.
- Add skipped-upstream cases to workflow regression tests.
- Configure retention consistent with release approvals and long-term records policy.
- Monitor pending reasons separately from actual runner saturation.
Explanation
Correct Answer
D:The failure it prevents is: The run is serialized by its group rather than blocked by a lack of runner capacity.
Incorrect Answers
A:The proposed routine targets Unavailable action ref. At a community college development team, recurrence is more directly prevented by: Monitor pending reasons separately from actual runner saturation.
B:This safeguard protects a different workflow involving Skipped dependent job; the actual root cause requires: Monitor pending reasons separately from actual runner saturation.
C:This control would reduce risk around Artifact expiration, but it does not prevent the reported failure from recurring. The fitting safeguard is: Monitor pending reasons separately from actual runner saturation.
Question 293
A review for a community college development team during a course platform modernization records this problem: A workflow remains pending even though unused runners are visible, while an older run uses the same concurrency key. Which diagnostic inspection should happen first?
- Examine log masking annotations and compare nonsecret execution markers.
- Inspect the run age, artifact list and applicable retention settings.
- Inspect the active concurrency group and related run states.
- Compare needs results and the downstream job if expression.
Explanation
Correct Answer
C:If confirmed, the appropriate response is: Inspect pending-run concurrency groups before provisioning more runners.
Incorrect Answers
A:Investigating Secret mask side effect would delay diagnosis of the condition at a community college development team; the direct first check is: Inspect the active concurrency group and related run states.
B:This inspection is useful when investigating Artifact expiration, but it is not the first discriminator here. Inspect instead: Inspect the active concurrency group and related run states.
D:Investigating Skipped dependent job would delay diagnosis of the condition at a community college development team; the direct first check is: Inspect the active concurrency group and related run states.
Question 294
A CI/CD readiness check for a community college development team reveals: A workflow remains pending even though unused runners are visible, while an older run uses the same concurrency key. What condition should govern whether this change may proceed?
- Protected release verification must not be accidentally canceled by unrelated branches.
- Security-sensitive dependent jobs must still fail closed after a verification skip.
- Canceling an active deployment requires explicit release-owner authorization.
- Production deployment requires the complete required check policy, not an isolated green retry alone.
Explanation
Correct Answer
C:This condition protects the relevant trust or execution boundary at a community college development team. Ignoring it would recreate the defect: The run is serialized by its group rather than blocked by a lack of runner capacity.
Incorrect Answers
A:This constraint addresses Canceled concurrent run, whereas the described change must first satisfy: Canceling an active deployment requires explicit release-owner authorization.
B:The boundary may be necessary for a separate Skipped dependent job workflow, not the primary risk here. The relevant constraint is: Canceling an active deployment requires explicit release-owner authorization.
D:This constraint addresses Targeted rerun selection, whereas the described change must first satisfy: Canceling an active deployment requires explicit release-owner authorization.
Question 295
A CI/CD readiness check for a regional transport operator reveals: A reusable sequence of lint and formatting commands is stored in a directory but GitHub cannot run it with a local uses path. Which implementation step best addresses this exact issue?
- Add valid action.yml metadata declaring a composite run using and the required steps.
- Use the supported GITHUB_OUTPUT environment-file mechanism for output exchange.
- Declare an output in action.yml and map its value from the producing step's output.
- Supply valid action metadata and complete the Marketplace publishing requirements for the release.
Explanation
Correct Answer
A:The directory contains shell scripts but no action definition for the Actions runner to interpret. Verify the result by checking that a consumer job invokes the local action and executes the declared composite steps successfully.
Incorrect Answers
B:This adjustment addresses Workflow command usage instead. For a regional transport operator, the reported problem is caused by: The directory contains shell scripts but no action definition for the Actions runner to interpret.
C:That work belongs to a different failure involving Action output declaration. The described workflow needs the narrower change because the directory contains shell scripts but no action definition for the Actions runner to interpret.
D:The proposal may suit Marketplace listing metadata, but it does not resolve the mechanism visible at a regional transport operator: The directory contains shell scripts but no action definition for the Actions runner to interpret.
Question 296
Engineers supporting a regional transport operator are investigating this situation: A reusable sequence of lint and formatting commands is stored in a directory but GitHub cannot run it with a local uses path. Which root cause should guide the correction?
- The action omits a documented input contract and ignores the caller's with configuration.
- The release artifact lacks packages referenced by its action entry file.
- Action-relative files were resolved against the repository workspace instead of the action package.
- The directory contains shell scripts but no action definition for the Actions runner to interpret.
Explanation
Correct Answer
D:This explains the observed behavior at a regional transport operator: The directory contains shell scripts but no action definition for the Actions runner to interpret. The appropriate correction is: Add valid action.yml metadata declaring a composite run using and the required steps.
Incorrect Answers
A:That explanation predicts a separate Action input metadata problem. The condition reported by a regional transport operator instead follows from: The directory contains shell scripts but no action definition for the Actions runner to interpret.
B:Although relevant to Bundled JavaScript dependencies, this diagnosis does not match the described failure. The actual causal link is: The directory contains shell scripts but no action definition for the Actions runner to interpret.
C:This relates to Action working directory; it would call for different acceptance evidence. For this case, the root cause is: The directory contains shell scripts but no action definition for the Actions runner to interpret.
Question 297
In preparation for a mobility app rollout, engineers supporting a regional transport operator notice: A reusable sequence of lint and formatting commands is stored in a directory but GitHub cannot run it with a local uses path. Which test result best establishes that the issue is corrected?
- A fresh consumer of the tag executes without running npm install in the caller job.
- A workflow run resolves to the reviewed commit even after upstream tags move.
- The action's release passes the Marketplace validation and its listing references an approved version.
- A consumer job invokes the local action and executes the declared composite steps successfully.
Explanation
Correct Answer
D:The observation is a direct acceptance condition for a regional transport operator. It verifies the action: Add valid action.yml metadata declaring a composite run using and the required steps.
Incorrect Answers
A:The proposed signal checks a different behavior involving Bundled JavaScript dependencies. Here evidence must instead demonstrate: A consumer job invokes the local action and executes the declared composite steps successfully.
B:The metric relates to Action version tag drift and would leave the actual gap untested. A valid check is: A consumer job invokes the local action and executes the declared composite steps successfully.
C:That result could verify Marketplace listing metadata, but not the failure reported at a regional transport operator. The relevant acceptance result is: A consumer job invokes the local action and executes the declared composite steps successfully.
Question 298
An automation change at a regional transport operator exposes this failure: A reusable sequence of lint and formatting commands is stored in a directory but GitHub cannot run it with a local uses path. What operational principle best describes the safe approach?
- Inputs originating outside the trusted repository are never safe shell programs by default.
- Composite steps communicate by explicitly declared outputs, not shell-local variables.
- Action dependency identity should be reproducible and auditable.
- A composite action is a step-level reusable component with explicit metadata.
Explanation
Correct Answer
D:The principle explains the reported failure: The directory contains shell scripts but no action definition for the Actions runner to interpret. The acceptance evidence is: A consumer job invokes the local action and executes the declared composite steps successfully.
Incorrect Answers
A:This principle does not account for the observed behavior; it belongs to Untrusted action input. The relevant one is: A composite action is a step-level reusable component with explicit metadata.
B:This rule governs Composite step output file, not the constraint described by a regional transport operator. The applicable rule is: A composite action is a step-level reusable component with explicit metadata.
C:That concept may matter in a different Action version tag drift design. Here the operational boundary is explained by: A composite action is a step-level reusable component with explicit metadata.
Question 299
An automation change at a nationwide fleet service exposes this failure: A reusable sequence of lint and formatting commands is stored in a directory but GitHub cannot run it with a local uses path. What preventive measure fits this exact failure mode?
- Validate action metadata and a sample local consumer on every release.
- Run Marketplace metadata checks before marking a public release ready.
- Keep action output tests aligned with supported runner interfaces.
- Validate action.yml schema in CI for each release.
Explanation
Correct Answer
A:This control addresses the recurring source of the defect at a nationwide fleet service: The directory contains shell scripts but no action definition for the Actions runner to interpret.
Incorrect Answers
B:The proposed routine targets Marketplace listing metadata. At a nationwide fleet service, recurrence is more directly prevented by: Validate action metadata and a sample local consumer on every release.
C:This safeguard protects a different workflow involving Workflow command usage; the actual root cause requires: Validate action metadata and a sample local consumer on every release.
D:This control would reduce risk around Composite shell declaration, but it does not prevent the reported failure from recurring. The fitting safeguard is: Validate action metadata and a sample local consumer on every release.
Question 300
A workflow review for a nationwide fleet service identifies a specific risk: A reusable sequence of lint and formatting commands is stored in a directory but GitHub cannot run it with a local uses path. Which diagnostic inspection should happen first?
- Inspect the interpolation boundary between expression evaluation and shell parsing.
- Inspect exception handlers, setFailed calls and process exit code.
- Inspect the target action directory for action.yml and a valid runs block.
- Inspect file paths and the github.action_path context where appropriate.
Explanation
Correct Answer
C:Checking this first at a nationwide fleet service narrows the fault without prematurely changing settings. The subsequent correction is: Add valid action.yml metadata declaring a composite run using and the required steps.
Incorrect Answers
A:The proposed check assumes a separate Untrusted action input failure. To narrow this case first: Inspect the target action directory for action.yml and a valid runs block.
B:Investigating Action failure exit code would delay diagnosis of the condition at a nationwide fleet service; the direct first check is: Inspect the target action directory for action.yml and a valid runs block.
D:The proposed check assumes a separate Action working directory failure. To narrow this case first: Inspect the target action directory for action.yml and a valid runs block.
GitHub Actions (GH-200) Practice Tests