A Copilot-generated pull request changes an Actions workflow to add retry handling. The workflow is a required check for main. The PR author says the retry worked because the job conclusion is success. Which option best explains the defect? Select one answer.
Workflow: agent-ci
Event: pull_request
Actor: github-copilot[bot]
Run npm ci with retry
attempt 1: npm ci
npm ERR! 503 Service Unavailable
attempt 2: npm ci
npm ERR! 503 Service Unavailable
attempt 3: npm ci
npm ERR! 503 Service Unavailable
completed retry loop
Step configuration:
continue-on-error: true
Run npm test
Error: Cannot find module '@org/service-client'
npm test failed
Job conclusion: success
Check conclusion: success
Branch protection:
Required check "agent-ci" passedChoose an answer
Tap an option to check your answer.
Correct answer: The retry step masks a blocking failure.
Why this is the answer
The correct answer is that the retry step masks a blocking failure. The continue-on-error: true setting for the npm ci step allowed the workflow to proceed despite repeated failures to install dependencies. This masked the underlying issue (a 503 Service Unavailable error) and permitted the subsequent npm test step to run, which then failed due to missing modules. Even though npm test failed, the job's overall conclusion was success because continue-on-error prevented the initial failures from marking the job as failed. This allowed the required check to pass, despite a critical problem. The other options are incorrect: The workflow should use mergegroup instead: While mergegroup is a valid event, it's not relevant to the defect described. The issue is with the workflow's logic, not its trigger. The Copilot actor cancelled the required check: The output clearly states the check passed, and there's no indication of cancellation. The test command needs a schedule trigger: A schedule trigger is for periodic runs, not for pull request checks, and wouldn't address the masking of errors.
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