A repository uses a fan-out/fan-in orchestration pattern for agent-generated pull requests. Separate jobs validate security, tests, and documentation. A final gate should run only after all three specialist validation jobs complete. Which option completes the workflow?
name: multi-agent-gate
on:
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: read
jobs:
security_agent_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./agents/security-review.sh
test_agent_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./agents/test-review.sh
docs_agent_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./agents/docs-review.sh
aggregate_gate:
runs-on: ubuntu-latest
(Missing value 1):
- security_agent_check
- test_agent_check
- docs_agent_check
steps:
- name: Combine specialist findings
(Missing value 2): ./agents/aggregate-findings.sh
- name: Add orchestration summary
(Missing value 3): |
echo "## Multi-agent gate complete" >> $GITHUB_STEP_SUMMARYChoose an answer
Tap an option to check your answer.
Correct answer: Missing value 1 = needs Missing value 2 = run Missing value 3 = run.
Why this is the answer
The needs keyword correctly specifies that the aggregategate job must wait for securityagentcheck, testagentcheck, and docsagentcheck to complete successfully before it starts, implementing the fan-in pattern. The run keyword is used for executing shell commands or scripts directly within a step, making it appropriate for both ./agents/aggregate-findings.sh and the echo command to add a summary. Incorrect options misuse keywords. uses is for actions, not job dependencies or script execution. with is for passing inputs to actions. if is for conditional execution. strategy is for matrix builds. env is for environment variables.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed