A team adds a Copilot-assisted documentation agent to an existing workflow that already includes planner, build, and test agents. The new agent should run on pull requests after tests, leave review findings on the PR, and become a required check after it has been validated in the repository. Evaluate the following statements. 1. A new agent job can use needs to run after the test agent. 2. Making the new check required before it has a successful run can leave pull requests blocked. 3. A Copilot-created draft pull request should be treated as ready to merge when the new agent passes.
Choose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=Yes 3=No.
Why this is the answer
Statement 1 is correct. In GitHub Actions, the needs keyword specifies that a job must complete successfully before another job can run. This ensures the documentation agent runs only after the test agent has finished, fulfilling the requirement. Statement 2 is correct. If a new required check is enabled before it has successfully run at least once, it can prevent all pull requests from merging, even if the code is otherwise ready. This is because the check's status will be pending or failed until it runs successfully, blocking merges. Statement 3 is incorrect. While a Copilot-created draft PR might pass the new documentation agent, passing one automated check does not automatically make a PR "ready to merge." Draft PRs typically require further human review, additional checks, or manual approval before they are considered complete and ready for integration.
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