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.
Question 151
Engineers supporting an online retail marketplace are investigating this situation: A workflow has both branch and path filters, but maintainers expect a run when only one of those filters matches. Which engineering principle should guide this decision?
- Reporting and cleanup conditions should be evaluated separately from success-only deployment conditions.
- A workflow dependency graph should encode safety-critical sequencing.
- Explicit output channels are needed to exchange computed data between workflow steps.
- Multiple event filters define a combined eligibility boundary.
Explanation
Correct Answer
D:This principle governs the problem at an online retail marketplace. Applying it leads to the targeted change: Review both trigger filters and make a change that satisfies the required branch and changed-path criteria.
Incorrect Answers
A:This rule governs Conditional job status, not the constraint described by an online retail marketplace. The applicable rule is: Multiple event filters define a combined eligibility boundary.
B:That concept may matter in a different Job needs dependency design. Here the operational boundary is explained by: Multiple event filters define a combined eligibility boundary.
C:This principle does not account for the observed behavior; it belongs to Step output env file. The relevant one is: Multiple event filters define a combined eligibility boundary.
Question 152
Engineers supporting a wholesale commerce platform are investigating this situation: A workflow has both branch and path filters, but maintainers expect a run when only one of those filters matches. How can the team reduce the chance that this failure returns?
- Keep release-job dependency checks in workflow code review.
- Add a security review for changes to pull_request_target and checkout ref handling.
- Include branch-and-path filter combinations in trigger tests.
- Review concurrency naming and cancellation behavior during deployment pipeline changes.
Explanation
Correct Answer
C:The failure it prevents is: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
Incorrect Answers
A:The proposed routine targets Job needs dependency. At a wholesale commerce platform, recurrence is more directly prevented by: Include branch-and-path filter combinations in trigger tests.
B:This safeguard protects a different workflow involving Fork pull request target; the actual root cause requires: Include branch-and-path filter combinations in trigger tests.
D:The proposed routine targets Workflow concurrency group. At a wholesale commerce platform, recurrence is more directly prevented by: Include branch-and-path filter combinations in trigger tests.
Question 153
In preparation for a patch deployment review, engineers supporting a wholesale commerce platform notice: A workflow has both branch and path filters, but maintainers expect a run when only one of those filters matches. What first investigation step is most appropriate?
- Inspect the upload/download artifact names and the job dependency graph.
- Compare the caller's with keys against the callee's workflow_call input definitions.
- Inspect the service logs, health status and test connection endpoint.
- Inspect the changed files and branch against both declared filters.
Explanation
Correct Answer
D:If confirmed, the appropriate response is: Review both trigger filters and make a change that satisfies the required branch and changed-path criteria.
Incorrect Answers
A:Investigating Cross job artifact handoff would delay diagnosis of the condition at a wholesale commerce platform; the direct first check is: Inspect the changed files and branch against both declared filters.
B:This inspection is useful when investigating Reusable workflow input contract, but it is not the first discriminator here. Inspect instead: Inspect the changed files and branch against both declared filters.
C:The proposed check assumes a separate PostgreSQL service container failure. To narrow this case first: Inspect the changed files and branch against both declared filters.
Question 154
An automation change at a wholesale commerce platform exposes this failure: A workflow has both branch and path filters, but maintainers expect a run when only one of those filters matches. Which prerequisite or trust boundary must be satisfied?
- Required checks must be designed so skipped workflows do not strand protected merges.
- Concurrency keys must separate unrelated environments while serializing the same target.
- The output must not contain secrets or untrusted executable text.
- A production destination requires its separate environment protection controls.
Explanation
Correct Answer
A:This condition protects the relevant trust or execution boundary at a wholesale commerce platform. Ignoring it would recreate the defect: Branch and path filters for a given event are both applied rather than automatically combined as an OR condition.
Incorrect Answers
B:The boundary may be necessary for a separate Workflow concurrency group workflow, not the primary risk here. The relevant constraint is: Required checks must be designed so skipped workflows do not strand protected merges.
C:The constraint around Step output env file is not the governing gate for a wholesale commerce platform. The original defect makes this condition decisive: Required checks must be designed so skipped workflows do not strand protected merges.
D:This constraint addresses Typed manual dispatch, whereas the described change must first satisfy: Required checks must be designed so skipped workflows do not strand protected merges.
Question 155
A review for a municipal public services provider during a citizen portal integration test records this problem: Duplicate environment mappings drift across several jobs even though the workflow already declares a common YAML anchor. Which implementation step best addresses this exact issue?
- Configure environment protection rules and required reviewers for the production target.
- Keep the privileged event on trusted base code and separate any untrusted checkout into an isolated read-only workflow.
- Disable fail-fast for the diagnostic matrix run so other legs can finish and report their results.
- Reference the shared mapping with an alias and validate the expanded YAML where supported.
Explanation
Correct Answer
D:For a municipal public services provider, this addresses the governing failure: A duplicated mapping was edited independently instead of reusing the anchor consistently. Success would be demonstrated by: The parsed workflow shows the intended common environment configuration in each referencing job.
Incorrect Answers
A:That work belongs to a different failure involving Protected environment approval. The described workflow needs the narrower change because a duplicated mapping was edited independently instead of reusing the anchor consistently.
B:The proposal may suit Fork pull request target, but it does not resolve the mechanism visible at a municipal public services provider: A duplicated mapping was edited independently instead of reusing the anchor consistently.
C:This adjustment addresses Matrix failfast triage instead. For a municipal public services provider, the reported problem is caused by: A duplicated mapping was edited independently instead of reusing the anchor consistently.
Question 156
A CI/CD readiness check for a municipal public services provider reveals: Duplicate environment mappings drift across several jobs even though the workflow already declares a common YAML anchor. Which root cause should guide the correction?
- Naming an environment in YAML alone does not establish a human approval gate.
- github.ref points at a pull request merge reference rather than the contributor branch name.
- The pull request trigger does not distinguish documentation-only changes from application changes.
- A duplicated mapping was edited independently instead of reusing the anchor consistently.
Explanation
Correct Answer
D:The root mismatch connects the observed symptom to the missing configuration or trust boundary: A duplicated mapping was edited independently instead of reusing the anchor consistently. It can be tested using this evidence: The parsed workflow shows the intended common environment configuration in each referencing job.
Incorrect Answers
A:This relates to Protected environment approval; it would call for different acceptance evidence. For this case, the root cause is: A duplicated mapping was edited independently instead of reusing the anchor consistently.
B:That explanation predicts a separate Ref vs head ref problem. The condition reported by a municipal public services provider instead follows from: A duplicated mapping was edited independently instead of reusing the anchor consistently.
C:Although relevant to Pull request path filter, this diagnosis does not match the described failure. The actual causal link is: A duplicated mapping was edited independently instead of reusing the anchor consistently.
Question 157
Engineers supporting a municipal public services provider are investigating this situation: Duplicate environment mappings drift across several jobs even though the workflow already declares a common YAML anchor. Which test result best establishes that the issue is corrected?
- The parsed workflow shows the intended common environment configuration in each referencing job.
- Deployment waits for an approved review and denied runs do not proceed.
- The test connection succeeds using the service name while localhost remains reserved for the job container.
- A dependent step resolves the expected version value from the step output context.
Explanation
Correct Answer
A:This tests the actual failure mode at a municipal public services provider rather than merely showing that a configuration changed. A duplicated mapping was edited independently instead of reusing the anchor consistently.
Incorrect Answers
B:The proposed signal checks a different behavior involving Protected environment approval. Here evidence must instead demonstrate: The parsed workflow shows the intended common environment configuration in each referencing job.
C:The metric relates to Container job networking and would leave the actual gap untested. A valid check is: The parsed workflow shows the intended common environment configuration in each referencing job.
D:That result could verify Step output env file, but not the failure reported at a municipal public services provider. The relevant acceptance result is: The parsed workflow shows the intended common environment configuration in each referencing job.
Question 158
In preparation for a citizen portal integration test, engineers supporting a municipal public services provider notice: Duplicate environment mappings drift across several jobs even though the workflow already declares a common YAML anchor. What operational principle best describes the safe approach?
- A workflow dependency graph should encode safety-critical sequencing.
- YAML anchors reduce within-file duplication but do not create cross-file workflow reuse.
- Explicit output channels are needed to exchange computed data between workflow steps.
- Test dependencies need explicit readiness and network configuration.
Explanation
Correct Answer
B:Here the triggering gap is: A duplicated mapping was edited independently instead of reusing the anchor consistently.
Incorrect Answers
A:That concept may matter in a different Job needs dependency design. Here the operational boundary is explained by: YAML anchors reduce within-file duplication but do not create cross-file workflow reuse.
C:This rule governs Step output env file, not the constraint described by a municipal public services provider. The applicable rule is: YAML anchors reduce within-file duplication but do not create cross-file workflow reuse.
D:That concept may matter in a different PostgreSQL service container design. Here the operational boundary is explained by: YAML anchors reduce within-file duplication but do not create cross-file workflow reuse.
Question 159
In preparation for an accessibility release check, engineers supporting a county IT support organization notice: Duplicate environment mappings drift across several jobs even though the workflow already declares a common YAML anchor. What preventive measure fits this exact failure mode?
- Test the approval hold and denial path during release readiness reviews.
- Validate expanded YAML after changing shared anchors or merged mappings.
- Exercise both success and failure branches in workflow acceptance tests.
- Maintain separate diagnostic and cost-optimized matrix policies.
Explanation
Correct Answer
B:Applying this preventive check to future changes helps ensure the verified condition continues to hold: The parsed workflow shows the intended common environment configuration in each referencing job.
Incorrect Answers
A:This safeguard protects a different workflow involving Protected environment approval; the actual root cause requires: Validate expanded YAML after changing shared anchors or merged mappings.
C:The proposed routine targets Conditional job status. At a county IT support organization, recurrence is more directly prevented by: Validate expanded YAML after changing shared anchors or merged mappings.
D:This safeguard protects a different workflow involving Matrix failfast triage; the actual root cause requires: Validate expanded YAML after changing shared anchors or merged mappings.
Question 160
An automation change at a county IT support organization exposes this failure: Duplicate environment mappings drift across several jobs even though the workflow already declares a common YAML anchor. Which diagnostic inspection should happen first?
- Inspect the event type and printed sanitized ref metadata from the run.
- Inspect the anchor declaration and each alias reference in the same YAML file.
- Inspect the service logs, health status and test connection endpoint.
- Inspect the producing step id, output-file write and consumer expression.
Explanation
Correct Answer
B:The key mechanism is: A duplicated mapping was edited independently instead of reusing the anchor consistently.
Incorrect Answers
A:This inspection is useful when investigating Ref vs head ref, but it is not the first discriminator here. Inspect instead: Inspect the anchor declaration and each alias reference in the same YAML file.
C:Investigating PostgreSQL service container would delay diagnosis of the condition at a county IT support organization; the direct first check is: Inspect the anchor declaration and each alias reference in the same YAML file.
D:This inspection is useful when investigating Step output env file, but it is not the first discriminator here. Inspect instead: Inspect the anchor declaration and each alias reference in the same YAML file.
GitHub Actions (GH-200) Practice Tests