A repository uses three coordinated stages: issue triage, implementation, and validation. The team wants enough evidence to reconstruct what happened after a failed run. Review the workflow configuration.
name: coordinated-agent-run
on:
workflow_dispatch:
inputs:
issue_number:
required: true
type: string
permissions:
contents: read
issues: read
pull-requests: read
actions: read
jobs:
triage:
runs-on: ubuntu-latest
outputs:
scope: ${{ steps.scope.outputs.scope }}
steps:
- id: scope
run: |
mkdir -p evidence/triage
gh issue view "${{ inputs.issue_number }}" \
--json title,body,comments > evidence/triage/issue.json
echo "scope=auth-session-timeout" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4
with:
name: triage-${{ github.run_id }}
path: evidence/triage/
implementation:
needs: triage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
mkdir -p evidence/implementation
echo "${{ needs.triage.outputs.scope }}" > evidence/implementation/triage-scope.txt
git diff --name-only > evidence/implementation/touched-files.txt
- uses: actions/upload-artifact@v4
with:
name: implementation-${{ github.run_id }}
path: evidence/implementation/
validation:
needs: implementation
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: implementation-${{ github.run_id }}
- run: |
echo "Downloaded implementation evidence" >> "$GITHUB_STEP_SUMMARY"
Evaluate the following statements.
1. The workflow preserves triage evidence as a run-specific artifact
2. The implementation job can reference the triage scope through needs
3. The validation job downloads both triage and implementation artifactsChoose 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. The triage job uses actions/upload-artifact@v4 with name: triage-${{ github.runid }} and path: evidence/triage/, which ensures that the triage evidence is uploaded as a run-specific artifact. Statement 2 is correct. The implementation job explicitly declares needs: triage and accesses the output using needs.triage.outputs.scope, demonstrating it can reference the triage scope. Statement 3 is incorrect. The validation job only downloads the implementation-${{ github.runid }} artifact. It does not include a step to download the triage-${{ github.runid }} artifact.
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