Question 180
A team has implemented the following change: Add supported path-specific `.github/instructions/*.instructions.md` files and scope them to relevant paths. The original requirement was: A monorepo has a confirmed-loaded `.github/copilot-instructions.md` that mixes React-specific rules with incompatible Go service rules; no path-specific overrides are present. Which ONE validation test best demonstrates the intended behavior?
- Invoke the prompt file with a test module and confirm the expected headings and input variables are filled.
- Ask Copilot for a sample unit test in each repository and confirm pytest/style compliance.
- Open a permitted source file and verify Copilot is enabled and generates a test inline suggestion.
- Ask Copilot to modify one TSX file and one Go file and check each follows its own conventions.
Explanation
Correct Answer
D:Ask Copilot to modify one TSX file and one Go file and check each follows its own conventions.
Incorrect Answers
A:Generated code requires independently defined acceptance tests and review against the real program contract. Verification of this result involves ask Copilot to modify one TSX file and one Go file and check each follows its own conventions.
B:Generated code requires independently defined acceptance tests and review against the real program contract. Verification of this result involves ask Copilot to modify one TSX file and one Go file and check each follows its own conventions. The observed condition is a team has implemented the following change: Add supported path-specific `.github/instructions/*.instructions.md` files and scope them to relevant paths. The.
C:Generated code requires independently defined acceptance tests and review against the real program contract. Verification of this result involves ask Copilot to modify one TSX file and one Go file and check each follows its own conventions. The observed condition is a team has implemented the following change: Add supported path-specific `.github/instructions/*.instructions.md` files and scope them to relevant paths. The. Verification of this result involves ask Copilot to modify one TSX file and one Go file and check each follows its own conventions. The named alternative instead concerns open a permitted source file and verify copilot is enabled and generates a test inline suggestion.
Question 181
During troubleshooting, investigators observe: Frontend practices are applied to Go code or vice versa. The system context is: A monorepo has a confirmed-loaded `.github/copilot-instructions.md` that mixes React-specific rules with incompatible Go service rules; no path-specific overrides are present. Which ONE cause most directly explains the observed failure?
- One unscoped repository-wide instruction conflated incompatible language standards.
- The local editor integration and account authentication were not configured.
- Task-specific prompt guidance was not stored as a reusable artifact.
- The coding standard was not provided as durable repository context.
Explanation
Correct Answer
A:The remedy should therefore be: Add supported path-specific `.github/instructions/*.instructions.md` files and scope them to relevant paths.
Incorrect Answers
B:The local editor integration and account authentication were not configured. The missing change involves one unscoped repository-wide instruction conflated incompatible language standards.
C:Task-specific prompt guidance was not stored as a reusable artifact. One unscoped repository-wide instruction conflated incompatible language standards.
D:The coding standard was not provided as durable repository context. One unscoped repository-wide instruction conflated incompatible language standards.
Question 182
The current design is: Add supported path-specific `.github/instructions/*.instructions.md` files and scope them to relevant paths. The prior failure was: Frontend practices are applied to Go code or vice versa. Which ONE ongoing control best protects against recurrence of that specific failure?
- Audit IDE plugin versions and authenticated account after new workstation provisioning.
- Keep shared instructions short, version-controlled and aligned with CI enforcement.
- Version and test prompt files for recurring, bounded engineering workflows.
- Test instruction applicability after changing directory structure or file globs.
Explanation
Correct Answer
D:One unscoped repository-wide instruction conflated incompatible language standards. Test instruction applicability after changing directory structure or file globs.
Incorrect Answers
A:Audit IDE plugin versions and authenticated account after new workstation provisioning. Preventing this failure involves testing instruction applicability after changing directory structure or file globs.
B:Keep shared instructions short, version-controlled and aligned with CI enforcement. It would leave tested AI-assisted changes that preserve stated requirements without the specified safeguard.
C:Generated code requires independently defined acceptance tests and review against the real program contract. Preventing this failure involves testing instruction applicability after changing directory structure or file globs.
Question 183
A team reports: An engineering team regularly asks Copilot to draft the same structured incident-test report with changed paths and inputs. They observe: Report drafts diverge because each engineer retypes different instructions. Which ONE technical decision most directly corrects the cause?
- Supply the exact failure output, relevant test file, and desired behavior in a fresh IDE chat request.
- Store repository-wide Copilot instructions in `.github/copilot-instructions.md` and review the affected output.
- Add supported path-specific `.github/instructions/*.instructions.md` files and scope them to relevant paths.
- Create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat.
Explanation
Correct Answer
D:Task-specific prompt guidance was not stored as a reusable artifact.
Incorrect Answers
A:Supplying the exact failure output, relevant test file, and desired behavior in a fresh IDE chat request would not create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat.
B:Storing repository-wide Copilot instructions in `.github/copilot-instructions.md` and reviewing the affected output would not create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat.
C:Adding supported path-specific `.github/instructions/*.instructions.md` files and scoping them to relevant paths would not create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat.
Question 184
A team has implemented the following change: Create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat. The original requirement was: An engineering team regularly asks Copilot to draft the same structured incident-test report with changed paths and inputs. Which ONE validation test best demonstrates the intended behavior?
- Invoke the prompt file with a test module and confirm the expected headings and input variables are filled.
- Ask Copilot for a sample unit test in each repository and confirm pytest/style compliance.
- Rerun the failed test after the patch and confirm the original assertion now passes without regressions.
- Ask Copilot to modify one TSX file and one Go file and check each follows its own conventions.
Explanation
Correct Answer
A:Invoke the prompt file with a test module and confirm the expected headings and input variables are filled.
Incorrect Answers
B:Generated code requires independently defined acceptance tests and review against the real program contract. Verification of this result involves invoke the prompt file with a test module and confirm the expected headings and input variables are filled.
C:Generated code requires independently defined acceptance tests and review against the real program contract. Verification of this result involves invoke the prompt file with a test module and confirm the expected headings and input variables are filled. The observed condition is a team has implemented the following change: Create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat. The original.
D:Generated code requires independently defined acceptance tests and review against the real program contract. Verification of this result involves invoke the prompt file with a test module and confirm the expected headings and input variables are filled. The observed condition is a team has implemented the following change: Create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat. The original. Verification of this result involves invoke the prompt file with a test module and confirm the expected headings and input variables are filled. The named alternative instead concerns ask copilot to modify one tsx file and one go file and check each follows its own conventions.
Question 185
During troubleshooting, investigators observe: Report drafts diverge because each engineer retypes different instructions. The system context is: An engineering team regularly asks Copilot to draft the same structured incident-test report with changed paths and inputs. Which ONE cause most directly explains the observed failure?
- One unscoped repository-wide instruction conflated incompatible language standards.
- Task-specific prompt guidance was not stored as a reusable artifact.
- The prompt omitted the diagnostic evidence needed to target the failing path.
- The coding standard was not provided as durable repository context.
Explanation
Correct Answer
B:The remedy should therefore be: Create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat.
Incorrect Answers
A:One unscoped repository-wide instruction conflated incompatible language standards would not address the need for task-specific prompt guidance was not stored as a reusable artifact.
C:The prompt omitted the diagnostic evidence needed to target the failing path would not address the need for task-specific prompt guidance was not stored as a reusable artifact.
D:The remedy should therefore be: Store repository-wide Copilot instructions in `.github/copilot-instructions.md` and review the affected output. That does not establish task-specific prompt guidance was not stored as a reusable artifact.
Question 186
A GitHub Copilot task needs TWO complementary actions: the immediate fix and a preventive practice. Context: An engineering team regularly asks Copilot to draft the same structured incident-test report with changed paths and inputs. Observed failure: Report drafts diverge because each engineer retypes different instructions. Select exactly TWO decisions that together address these needs.
- Version and test prompt files for recurring, bounded engineering workflows.
- Supply the exact failure output, relevant test file, and desired behavior in a fresh IDE chat request.
- Keep a general organization-wide coding-style note but do not store or invoke the recurring incident-report template.
- Add supported path-specific `.github/instructions/*.instructions.md` files and scope them to relevant paths.
- Create a reusable `.github/prompts/*.prompt.md` template rather than copy prose repeatedly into each chat.
Explanation
Correct Answers
A:Task-specific prompt guidance was not stored as a reusable artifact. Version and test prompt files for recurring, bounded engineering workflows.
E:Task-specific prompt guidance was not stored as a reusable artifact. The needed intervention is version and test prompt files for recurring, bounded engineering workflows.
Incorrect Answers
B:Providing failure output to a fresh chat supports one-off debugging, not a reusable, versioned report template for the whole team.
C:A generic code style note does not create a reusable template for incident reports. The case requires a versioned prompt file and routine tests of its report structure.
D:Path-specific coding instructions can guide repository work, but they do not supply the recurring parameterized incident-report prompt.
Question 187
A team reports: A security team wants a specialized Copilot reviewer that focuses on authentication boundaries without changing unrelated repository files. They observe: A general-purpose agent makes build changes instead of focusing on the requested analysis. Which ONE technical decision most directly corrects the cause?
- Use a configured custom agent with relevant instructions and tool restrictions for the review task.
- Limit MCP tool permissions and require review before actions; treat tool outputs as untrusted external context.
- Start an authorized cloud agent task scoped to the repository and base branch, then review its proposed pull request.
- Use a bounded multi-file editing workflow and manually review all proposed edits rather than authorizing agent tool execution.
Explanation
Correct Answer
A:Specialized objectives and tool boundaries were not provided.
Incorrect Answers
B:Limiting MCP tool permissions and requiring review would not meet the need for a configured custom agent with relevant instructions and tool restrictions for the review task.
C:Start an authorized cloud agent task scoped to the repository would not meet the need for a configured custom agent with relevant instructions and tool restrictions for the review task.
D:Confirm it by checking: Inspect the entire change set and validate the requested files changed as intended. The missing change involves using a configured custom agent with relevant instructions and tool restrictions for the review task.
Question 188
A team has implemented the following change: Use a configured custom agent with relevant instructions and tool restrictions for the review task. The original requirement was: A security team wants a specialized Copilot reviewer that focuses on authentication boundaries without changing unrelated repository files. Which ONE validation test best demonstrates the intended behavior?
- Verify the draft branch, changed files, checks and required pull-request approvals before merging.
- Inspect granted tools and try a read-only metadata query without permitting ticket changes.
- Inspect the entire change set and validate the requested files changed as intended.
- Run it against a sample auth change and inspect the reported code references without unexpected edits.
Explanation
Correct Answer
D:Run it against a sample auth change and inspect the reported code references without unexpected edits. Verification of this result involves running it against a sample auth change and inspect the reported code references without unexpected edits.
Incorrect Answers
A:Verify the draft branch, changed files, checks and required pull-request approvals before merging. It does not run it against a sample auth change and inspect the reported code references without unexpected edits.
B:Inspect granted tools and try a read-only metadata query without permitting ticket changes. Verification of this result involves running it against a sample auth change and inspect the reported code references without unexpected edits.
C:Inspect the entire change set and validate the requested files changed as intended. It does not run it against a sample auth change and inspect the reported code references without unexpected edits.
Question 189
During troubleshooting, investigators observe: A general-purpose agent makes build changes instead of focusing on the requested analysis. The system context is: A security team wants a specialized Copilot reviewer that focuses on authentication boundaries without changing unrelated repository files. Which ONE cause most directly explains the observed failure?
- The selected workflow granted broader tools than the task required.
- Cloud delegation creates a proposed change, not automatic correctness or release approval.
- The MCP integration expanded the agent's data and action trust boundary.
- Specialized objectives and tool boundaries were not provided.
Explanation
Correct Answer
D:The remedy should therefore be: Use a configured custom agent with relevant instructions and tool restrictions for the review task.
Incorrect Answers
A:The selected workflow granted broader tools than the task required would not address the need for specialized objectives and tool boundaries were not provided.
B:Cloud delegation creates a proposed change, not automatic correctness or release approval would not address the need for specialized objectives and tool boundaries were not provided.
C:The MCP integration expanded the agent's data and action trust boundary would not address the need for specialized objectives and tool boundaries were not provided.
Question 190
The current design is: Use a configured custom agent with relevant instructions and tool restrictions for the review task. The prior failure was: A general-purpose agent makes build changes instead of focusing on the requested analysis. Which ONE ongoing control best protects against recurrence of that specific failure?
- Choose the least-privileged Copilot interaction mode for the requested work.
- Keep custom agent scopes explicit and check output against human review requirements.
- Keep branch protections and required checks for agent-created pull requests.
- Review MCP server provenance and per-tool approvals before enabling external actions.
Explanation
Correct Answer
B:Specialized objectives and tool boundaries were not provided. Keep custom agent scopes explicit and check output against human review requirements.
Incorrect Answers
A:Generated code requires independently defined acceptance tests and review against the real program contract. Preventing this failure involves keep custom agent scopes explicit and check output against human review requirements.
C:Keep branch protections and required checks for agent-created pull requests. Preventing this failure involves keep custom agent scopes explicit and check output against human review requirements.
D:Approved dependency sources and lockfiles protect builds against invented or impersonated packages. Preventing this failure involves keep custom agent scopes explicit and check output against human review requirements.
GitHub Copilot (GH-300) Practice Tests