D1: Responsible AI Scenarios
GH-300 GitHub Copilot exam practice questions · 10 flashcards
Question
Copilot suggests code with a hard-coded API key. Action?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Responsible AI Scenarios practice questions and answers
- Copilot suggests code with a hard-coded API key. Action?Reject; use secret management; report suggestion via feedback.
- Copilot generates biased variable names or assumptions. Action?Edit to inclusive language; review for fairness.
- Team merges AI code without tests. Risk?Undetected defects/vulnerabilities; enforce tests and review.
- Using Copilot for regulated code (e.g. medical)?Apply extra validation, documentation and compliance review.
- Copilot output looks like copied library code. Action?Check code referencing/license; enable public code filter.
- Student/junior over-relying on Copilot?Encourage understanding via /explain and reviews.
- Agent wants to run 'rm -rf' command. Action?Deny and inspect plan; keep approvals on for destructive commands.
- Who should review AI-generated PRs?Qualified humans per normal code review policy.
- Transparency to stakeholders?Disclose AI assistance per org policy.
- Accessibility consideration?Ensure generated UI code meets accessibility standards.