A team reviews whether this workflow prevents a Copilot-generated pull request from deleting production data without a controlled human approval step. Evaluate the following statements. 1. The apply job can be held by protection rules on regulated-production. 2. The pull_request trigger alone proves the change is compliance-approved. 3. The validation job separates plan review from production application.
name: controlled-data-retention-change
on:
pull_request:
branches:
- main
paths:
- "retention/**"
- ".github/workflows/controlled-data-retention-change.yml"
permissions:
contents: read
pull-requests: read
jobs:
review-plan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate retention policy plan
run: ./scripts/validate-retention-plan.sh
apply-retention-policy:
needs: review-plan
runs-on: ubuntu-latest
environment: regulated-production
steps:
- uses: actions/checkout@v4
- name: Apply retention policy
run: ./scripts/apply-retention-policy.shChoose 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 GitHub Environments, specifically regulated-production in the apply-retention-policy job, can have protection rules configured. These rules can require manual reviewers or a waiting timer, effectively holding the job until approved, thus preventing uncontrolled deletion. Statement 2 is incorrect. A pullrequest trigger only indicates that a pull request was opened or updated; it does not inherently signify compliance approval. Compliance approval typically involves human review processes, which are separate from the trigger itself. Statement 3 is correct because the workflow explicitly separates the review-plan job, which validates the retention policy, from the apply-retention-policy job, which applies it to production. This separation allows for independent review and approval before any changes are made to the production environment.
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