A repository owner is adding new agents to an existing workflow and needs to map each lifecycle decision to the correct GitHub mechanism. Match each item to the correct meaning. Which mapping is correct?
1. jobs.docs-agent.uses
2. needs: test-agent
3. pull-requests: write
4. Required status check for new agent
A. Blocks merging until the agent check passes
B. Calls a reusable workflow as an agent job
C. Lets the agent update pull request data
D. Orders the agent after a prerequisite job
E. Starts the workflow only from the Actions tab
F. Gives shell access inside a local CLI sessionChoose an answer
Tap an option to check your answer.
Correct answer: 1-B, 2-D, 3-C, 4-A.
Why this is the answer
Option 1-B is correct because jobs.<jobid.uses specifies that a job will execute a reusable workflow or action, effectively calling it as an agent job. Option 2-D is correct because needs: <jobid defines a dependency, ensuring the current job (agent) runs only after the specified prerequisite job completes successfully. Option 3-C is correct because pull-requests: write is a permission setting that grants the workflow the ability to modify pull request data, allowing an agent to update PRs. Option 4-A is correct because a "Required status check" prevents a pull request from being merged until the specified check (e.g., an agent's successful run) has passed, thus blocking merging.
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