Question 670
Engineers supporting an analytical equipment developer are investigating this situation: A deployment workflow prints its entire environment for debugging, exposing access tokens in logs. What preventive measure fits this exact failure mode?
- Monitor canceled and pending deployment jobs for unintended impacts.
- Add secret-safe logging review and automated scanning to sensitive workflows.
- Monitor upstream security releases and renew pins after review.
- Flag elevated-event checkout changes for dedicated security review.
Explanation
Correct Answer
B:This control addresses the recurring source of the defect at an analytical equipment developer: Diagnostic logging includes sensitive runtime values without minimization.
Incorrect Answers
A:This control would reduce risk around Duplicate deployment concurrency, but it does not prevent the reported failure from recurring. The fitting safeguard is: Add secret-safe logging review and automated scanning to sensitive workflows.
C:This safeguard protects a different workflow involving Immutable third party sha; the actual root cause requires: Add secret-safe logging review and automated scanning to sensitive workflows.
D:This control would reduce risk around Privileged pull request checkout, but it does not prevent the reported failure from recurring. The fitting safeguard is: Add secret-safe logging review and automated scanning to sensitive workflows.
Question 671
In preparation for a supply-chain evidence audit, engineers supporting an analytical equipment developer notice: A deployment workflow prints its entire environment for debugging, exposing access tokens in logs. Which diagnostic inspection should happen first?
- Inspect whether the PR title is interpolated directly inside the run block.
- Inspect workflow id-token permissions and the cloud federation trust configuration.
- Inspect cache key scopes, trigger permissions and caller cache-mode policy.
- Inspect debug steps and log output around the credential handling code.
Explanation
Correct Answer
D:Checking this first at an analytical equipment developer narrows the fault without prematurely changing settings. The subsequent correction is: Remove broad environment dumps and log only safe redacted diagnostic fields.
Incorrect Answers
A:The proposed check assumes a separate Pull request title injection failure. To narrow this case first: Inspect debug steps and log output around the credential handling code.
B:Investigating Cloud oidc federation would delay diagnosis of the condition at an analytical equipment developer; the direct first check is: Inspect debug steps and log output around the credential handling code.
C:This inspection is useful when investigating Fork cache poisoning, but it is not the first discriminator here. Inspect instead: Inspect debug steps and log output around the credential handling code.
Question 672
An automation change at an analytical equipment developer exposes this failure: A deployment workflow prints its entire environment for debugging, exposing access tokens in logs. What condition should govern whether this change may proceed?
- The cache must never replace dependency signature or lockfile validation.
- A privileged release may use only an action compatible with its trust and permissions requirements.
- Privileged write operations belong in separately protected jobs.
- Never rely solely on mask substitution to make arbitrary secrets dumps acceptable.
Explanation
Correct Answer
D:Applying the boundary prevents the workflow from taking an unsafe shortcut while the remedy is implemented: Remove broad environment dumps and log only safe redacted diagnostic fields.
Incorrect Answers
A:The constraint around Dependency cache cost optimization is not the governing gate for an analytical equipment developer. The original defect makes this condition decisive: Never rely solely on mask substitution to make arbitrary secrets dumps acceptable.
B:This constraint addresses Untrusted action allow policy, whereas the described change must first satisfy: Never rely solely on mask substitution to make arbitrary secrets dumps acceptable.
C:The boundary may be necessary for a separate Default github token scope workflow, not the primary risk here. The relevant constraint is: Never rely solely on mask substitution to make arbitrary secrets dumps acceptable.
Question 673
A review for a pharmaceutical distribution network during a delivery tracking service release records this problem: A production deployment job runs after tests but has no readiness gate or recovery path for a failed rollout. What is the best focused remediation?
- Restrict cache write access for untrusted events and isolate cache keys or restore scopes by trust level.
- Generate a supported artifact attestation tied to the build and verify its provenance before deployment.
- Combine a protected environment approval with a documented rollback step and post-deploy smoke checks.
- Stop executing fork head code in the privileged context and split untrusted tests into read-only jobs.
Explanation
Correct Answer
C:The targeted change is appropriate because deployment completion was treated as release success without controlled acceptance or recovery. It leads directly to a checkable outcome: A simulated bad release is halted or rolled back using the approved workflow.
Incorrect Answers
A:This adjustment addresses Fork cache poisoning instead. For a pharmaceutical distribution network, the reported problem is caused by: Deployment completion was treated as release success without controlled acceptance or recovery.
B:That work belongs to a different failure involving Build artifact attestation. The described workflow needs the narrower change because deployment completion was treated as release success without controlled acceptance or recovery.
D:This adjustment addresses Privileged pull request checkout instead. For a pharmaceutical distribution network, the reported problem is caused by: Deployment completion was treated as release success without controlled acceptance or recovery.
Question 674
A CI/CD readiness check for a pharmaceutical distribution network reveals: A production deployment job runs after tests but has no readiness gate or recovery path for a failed rollout. Which underlying mismatch most directly causes the behavior?
- Marketplace listing is mistaken for a security assessment and unrestricted action execution is allowed.
- Untrusted cache contents can cross into a higher-trust execution path.
- Expression expansion inserted attacker-controlled text into executable shell syntax.
- Deployment completion was treated as release success without controlled acceptance or recovery.
Explanation
Correct Answer
D:The reported symptoms follow from this specific mechanism: Deployment completion was treated as release success without controlled acceptance or recovery. A focused corrective action would be: Combine a protected environment approval with a documented rollback step and post-deploy smoke checks.
Incorrect Answers
A:Although relevant to Untrusted action allow policy, this diagnosis does not match the described failure. The actual causal link is: Deployment completion was treated as release success without controlled acceptance or recovery.
B:This relates to Fork cache poisoning; it would call for different acceptance evidence. For this case, the root cause is: Deployment completion was treated as release success without controlled acceptance or recovery.
C:That explanation predicts a separate Pull request title injection problem. The condition reported by a pharmaceutical distribution network instead follows from: Deployment completion was treated as release success without controlled acceptance or recovery.
Question 675
Engineers supporting a pharmaceutical distribution network are investigating this situation: A production deployment job runs after tests but has no readiness gate or recovery path for a failed rollout. What acceptance evidence should the team require?
- The unreviewed action is blocked until formally approved and pinned to a reviewed commit.
- Repeated runs restore valid dependency caches with the same lockfile and still enforce dependency integrity.
- Repeat runs resolve the approved commit even when upstream tags are moved.
- A simulated bad release is halted or rolled back using the approved workflow.
Explanation
Correct Answer
D:The proposed result demonstrates that the original technical gap is closed: Deployment completion was treated as release success without controlled acceptance or recovery.
Incorrect Answers
A:The metric relates to Untrusted action allow policy and would leave the actual gap untested. A valid check is: A simulated bad release is halted or rolled back using the approved workflow.
B:That result could verify Dependency cache cost optimization, but not the failure reported at a pharmaceutical distribution network. The relevant acceptance result is: A simulated bad release is halted or rolled back using the approved workflow.
C:The proposed signal checks a different behavior involving Immutable third party sha. Here evidence must instead demonstrate: A simulated bad release is halted or rolled back using the approved workflow.
Question 676
In preparation for a delivery tracking service release, engineers supporting a pharmaceutical distribution network notice: A production deployment job runs after tests but has no readiness gate or recovery path for a failed rollout. Which design rule most directly governs this situation?
- Performance optimization must not weaken dependency reproducibility.
- Short-lived federated identity reduces credential rotation and theft exposure.
- Delivery safety requires authorization, acceptance checks and reversibility.
- Untrusted text must remain data at expression-to-shell boundaries.
Explanation
Correct Answer
C:This principle governs the problem at a pharmaceutical distribution network. Applying it leads to the targeted change: Combine a protected environment approval with a documented rollback step and post-deploy smoke checks.
Incorrect Answers
A:This rule governs Dependency cache cost optimization, not the constraint described by a pharmaceutical distribution network. The applicable rule is: Delivery safety requires authorization, acceptance checks and reversibility.
B:That concept may matter in a different Cloud oidc federation design. Here the operational boundary is explained by: Delivery safety requires authorization, acceptance checks and reversibility.
D:This rule governs Pull request title injection, not the constraint described by a pharmaceutical distribution network. The applicable rule is: Delivery safety requires authorization, acceptance checks and reversibility.
Question 677
In preparation for a credential boundary review, engineers supporting a health logistics vendor notice: A production deployment job runs after tests but has no readiness gate or recovery path for a failed rollout. What ongoing guardrail best prevents recurrence?
- Rehearse rollback on representative failures before major releases.
- Add adversarial metadata tests to workflow security linting.
- Periodically revalidate approved actions and retire abandoned dependencies.
- Review token permissions during changes to workflow triggers or job responsibilities.
Explanation
Correct Answer
A:The failure it prevents is: Deployment completion was treated as release success without controlled acceptance or recovery.
Incorrect Answers
B:This safeguard protects a different workflow involving Pull request title injection; the actual root cause requires: Rehearse rollback on representative failures before major releases.
C:This control would reduce risk around Untrusted action allow policy, but it does not prevent the reported failure from recurring. The fitting safeguard is: Rehearse rollback on representative failures before major releases.
D:The proposed routine targets Default github token scope. At a health logistics vendor, recurrence is more directly prevented by: Rehearse rollback on representative failures before major releases.
Question 678
An automation change at a health logistics vendor exposes this failure: A production deployment job runs after tests but has no readiness gate or recovery path for a failed rollout. What should be checked before modifying the workflow?
- Inspect the deployment job environment key and required-reviewer settings.
- Inspect effective workflow and job permissions for GITHUB_TOKEN.
- Inspect environment protection, smoke checks and rollback job dependencies.
- Inspect cache key scopes, trigger permissions and caller cache-mode policy.
Explanation
Correct Answer
C:If confirmed, the appropriate response is: Combine a protected environment approval with a documented rollback step and post-deploy smoke checks.
Incorrect Answers
A:Investigating Protected production environment would delay diagnosis of the condition at a health logistics vendor; the direct first check is: Inspect environment protection, smoke checks and rollback job dependencies.
B:This inspection is useful when investigating Default github token scope, but it is not the first discriminator here. Inspect instead: Inspect environment protection, smoke checks and rollback job dependencies.
D:Investigating Fork cache poisoning would delay diagnosis of the condition at a health logistics vendor; the direct first check is: Inspect environment protection, smoke checks and rollback job dependencies.
Question 679
A workflow review for a health logistics vendor identifies a specific risk: A production deployment job runs after tests but has no readiness gate or recovery path for a failed rollout. Which release or execution constraint matters most here?
- Secret-bearing jobs must never evaluate contributor-controlled strings as shell code.
- Recovery paths require the same credential and environment controls as deployment.
- Pinning a SHA does not replace reviewing dependencies inside that action.
- The cache must never replace dependency signature or lockfile validation.
Explanation
Correct Answer
B:This condition protects the relevant trust or execution boundary at a health logistics vendor. Ignoring it would recreate the defect: Deployment completion was treated as release success without controlled acceptance or recovery.
Incorrect Answers
A:This constraint addresses Pull request title injection, whereas the described change must first satisfy: Recovery paths require the same credential and environment controls as deployment.
C:The constraint around Immutable third party sha is not the governing gate for a health logistics vendor. The original defect makes this condition decisive: Recovery paths require the same credential and environment controls as deployment.
D:This constraint addresses Dependency cache cost optimization, whereas the described change must first satisfy: Recovery paths require the same credential and environment controls as deployment.
Question 680
A CI/CD readiness check for a regional hospital technology unit reveals: Large debug artifacts are retained longer than their operational value, causing unnecessary storage costs and clutter. Which change is the most direct correction for this problem?
- Restrict cache write access for untrusted events and isolate cache keys or restore scopes by trust level.
- Pass the title through a safely quoted environment variable or parameter and validate expected input characters.
- Set artifact retention appropriate to the evidence need and export required audit records separately.
- Configure a protected production environment with required reviewers and ensure deployment jobs target it.
Explanation
Correct Answer
C:For a regional hospital technology unit, this addresses the governing failure: Default artifact retention does not match the short life of ordinary diagnostic files. Success would be demonstrated by: Disposable artifacts expire on schedule while essential release evidence remains available in governed storage.
Incorrect Answers
A:That work belongs to a different failure involving Fork cache poisoning. The described workflow needs the narrower change because default artifact retention does not match the short life of ordinary diagnostic files.
B:The proposal may suit Pull request title injection, but it does not resolve the mechanism visible at a regional hospital technology unit: Default artifact retention does not match the short life of ordinary diagnostic files.
D:That work belongs to a different failure involving Protected production environment. The described workflow needs the narrower change because default artifact retention does not match the short life of ordinary diagnostic files.
GitHub Actions (GH-200) Practice Tests