A team adds a lightweight CODEOWNERS rule and a conflict-detection workflow for Copilot-created pull requests. The goal is to identify overlapping changes in shared modules and require the platform team to review shared infrastructure updates. Evaluate the following statements. 1. CODEOWNERS can help route shared-file changes to the platform team. 2. The artifact can preserve overlap evidence for pull request review. 3. The workflow automatically prevents two agents from editing the same file.
# .github/CODEOWNERS
/src/shared/ @octo-org/platform-team
/src/lib/httpClient.ts @octo-org/platform-team
name: detect-agent-conflicts
on:
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: read
jobs:
conflict-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate conflict report
run: |
mkdir -p reports
node scripts/detect-overlap.js > reports/conflicts.md
- name: Upload conflict report
uses: actions/upload-artifact@v4
with:
name: agent-conflict-report
path: reports/conflicts.mdChoose 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 because the CODEOWNERS file explicitly assigns @octo-org/platform-team as owners for /src/shared/ and /src/lib/httpClient.ts. This ensures that pull requests affecting these paths will require their review, routing shared-file changes as intended. Statement 2 is correct because the workflow uses actions/upload-artifact@v4 to upload reports/conflicts.md. This artifact preserves the output of the detect-overlap.js script, providing evidence of overlapping changes for subsequent pull request review. Statement 3 is incorrect. The workflow generates a report of conflicts but does not automatically prevent agents from editing the same file. It's a detection mechanism, not a prevention mechanism.
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