A repository uses Copilot coding agent for implementation tasks. The team adds a workflow to evaluate whether agent PRs meet the issue intent before reviewers mark draft pull requests ready. Evaluate the following statements. 1. The acceptance-test job is a stronger intent signal than PR creation. 2. The summary job is independent of the behaviour and scanning jobs. 3. Code scanning can contribute to evaluating security-related development intent.
name: agent-evaluation-signals
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
permissions:
contents: read
pull-requests: read
security-events: read
jobs:
behaviour-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run acceptance tests
run: npm run test:acceptance
code-scanning:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: javascript
- uses: github/codeql-action/analyze@v3
evaluation-summary:
needs:
- behaviour-tests
- code-scanning
runs-on: ubuntu-latest
steps:
- name: Summarize evaluation
run: echo "Behaviour and security signals completed"Choose 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 true because the acceptance-test job, which runs npm run test:acceptance, directly validates if the code fulfills the intended functionality, making it a strong signal of development intent. PR creation merely initiates the process. Statement 2 is false because the evaluation-summary job explicitly lists behaviour-tests and code-scanning in its needs section, meaning it depends on both of these jobs to complete successfully before it can run. Therefore, it is not independent. Statement 3 is true as code-scanning identifies potential vulnerabilities and security issues, directly contributing to the evaluation of whether the agent's changes align with security requirements and best practices, which is a key aspect of development intent.
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