A team adds repository instructions for autonomous coding tasks and a pull request workflow that uploads agent evidence. The branch rule requires the check agent-observability / inspect. Evaluate the following statements. 1. The workflow can persist the agent output after the run. 2. The instructions alone prove Copilot followed the process. 3. The required check can block merge when files are missing.
# .github/copilot-instructions.md
For autonomous coding tasks:
- Create agent-output/plan.md before modifying code.
- Create agent-output/validation.md with commands and results.
- Do not include secrets, tokens, or customer data in agent-output/.
- Reference the generated inspection artifact in the pull request body.
name: agent-observability
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
inspect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify agent output exists
run: |
test -f agent-output/plan.md
test -f agent-output/validation.md
- name: Upload agent output
uses: actions/upload-artifact@v4
with:
name: agent-output-${{ github.event.pull_request.number }}
path: agent-output/
if-no-files-found: errorChoose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=No 3=Yes.
Why this is the answer
Statement 1 is correct because the actions/upload-artifact@v4 action is used in the workflow to upload the agent-output/ directory, which persists the agent's output as an artifact after the workflow run completes. Statement 2 is incorrect because the instructions are merely guidelines; they do not inherently prove that Copilot (or any agent) followed them. Verification steps, such as those in the workflow, are needed for proof. Statement 3 is correct because the test -f agent-output/plan.md and test -f agent-output/validation.md commands will fail if the specified files are missing. Since agent-observability / inspect is a required check, its failure will block the pull request from being merged.
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