Question 240
During troubleshooting, investigators observe: Small wording differences yield materially different implementations. The system context is: A team asks the same prompt twice and assumes identical tokens and code suggestions will be produced. Which ONE cause most directly explains the observed failure?
- A generative model is probabilistic, not a deterministic code compiler.
- Repository context selection and retrieval can omit relevant files.
- Plan-specific processing controls and contracts were conflated.
- Model context and repository state are transient unless captured explicitly.
Explanation
Correct Answer
A:The remedy should therefore be: Treat LLM generation as potentially non-deterministic and verify outputs against stable acceptance tests.
Incorrect Answers
B:Repository context selection and retrieval can omit relevant files. A generative model is probabilistic, not a deterministic code compiler.
C:Plan-specific processing controls and contracts were conflated. A generative model is probabilistic, not a deterministic code compiler.
D:Model context and repository state are transient unless captured explicitly. A generative model is probabilistic, not a deterministic code compiler.
Question 241
The current design is: Treat LLM generation as potentially non-deterministic and verify outputs against stable acceptance tests. The prior failure was: Small wording differences yield materially different implementations. Which ONE ongoing control best protects against recurrence of that specific failure?
- Anchor acceptability in tests and specifications, not exact repeated wording.
- Record commit hashes, test evidence and decisions for consequential AI-assisted changes.
- Record effective plan and date when documenting privacy claims.
- Cross-check answers against authoritative code search when completeness matters.
Explanation
Correct Answer
A:A generative model is probabilistic, not a deterministic code compiler. Anchor acceptability in tests and specifications, not exact repeated wording.
Incorrect Answers
B:AI-assisted postmortem claims need links to actual commits, logs and reproducible failures. Verification of this result involves anchor acceptability in tests and specifications, not exact repeated wording.
C:Record effective plan and date when documenting privacy claims. That check cannot demonstrate tested AI-assisted changes that preserve stated requirements.
D:Cross-check answers against authoritative code search when completeness matters. That check cannot demonstrate tested AI-assisted changes that preserve stated requirements.
Question 242
A team reports: An engineer asks Copilot for a newly announced SDK API and trusts a confident name without checking installed packages. They observe: A suggested method name was removed from the target dependency release. Which ONE technical decision most directly corrects the cause?
- Provide authorized repository/file context or use supported repository indexing tools instead of expecting hidden access.
- Validate product and library facts against current versioned docs and the repository lockfile.
- Start a focused conversation and reattach current repository scope and constraints to control useful history.
- Use the repository's own implementation and versioned documentation as higher-trust evidence than an unverified retrieved reference.
Explanation
Correct Answer
B:Training knowledge or supplied context can be incomplete or stale.
Incorrect Answers
A:Providing authorized repository/file context or use supported repository indexing tools would not validate product and library facts against current versioned docs and the repository lockfile.
C:Start a focused conversation and reattach current repository scope and constraints to control useful history would not validate product and library facts against current versioned docs and the repository lockfile.
D:External retrieval results can be relevant-looking but still incorrect for the current environment. That does not establish validate product and library facts against current versioned docs and the repository lockfile.
Question 243
A team has implemented the following change: Validate product and library facts against current versioned docs and the repository lockfile. The original requirement was: An engineer asks Copilot for a newly announced SDK API and trusts a confident name without checking installed packages. Which ONE validation test best demonstrates the intended behavior?
- Reference the actual authorization module and check the answer names a real method.
- Check the actual installed version and compile the proposed call.
- Trace the symbol definition and compare it with the generated explanation.
- Ask the same question in a clean context and compare the assumptions it cites.
Explanation
Correct Answer
B:Check the actual installed version and compile the proposed call.
Incorrect Answers
A:Reference the actual authorization module and check the answer names a real method. It does not check the actual installed version and compile the proposed call.
C:Generated code requires independently defined acceptance tests and review against the real program contract. It does not check the actual installed version and compile the proposed call.
D:Ask the same question in a clean context and compare the assumptions it cites. It does not check the actual installed version and compile the proposed call.
Question 244
During troubleshooting, investigators observe: A suggested method name was removed from the target dependency release. The system context is: An engineer asks Copilot for a newly announced SDK API and trusts a confident name without checking installed packages. Which ONE cause most directly explains the observed failure?
- The assistant did not have the actual codebase information in its input context.
- External retrieval results can be relevant-looking but still incorrect for the current environment.
- Training knowledge or supplied context can be incomplete or stale.
- Conversation history is one input to a limited context window.
Explanation
Correct Answer
C:The remedy should therefore be: Validate product and library facts against current versioned docs and the repository lockfile.
Incorrect Answers
A:The remedy should therefore be: Provide authorized repository/file context or use supported repository indexing tools instead of expecting hidden access. That does not establish training knowledge or supplied context can be incomplete or stale.
B:External retrieval results can be relevant-looking but still incorrect for the current environment would not address the need for training knowledge or supplied context can be incomplete or stale.
D:Conversation history is one input to a limited context window would not address the need for training knowledge or supplied context can be incomplete or stale.
Question 245
The current design is: Validate product and library facts against current versioned docs and the repository lockfile. The prior failure was: A suggested method name was removed from the target dependency release. Which ONE ongoing control best protects against recurrence of that specific failure?
- Confirm retrieved file paths and version of the repository before trusting navigation advice.
- Verify that references match language, package and version before adopting code.
- Trim irrelevant session context and restate key requirements on important tasks.
- Provide version constraints in prompts and require verified references for changing APIs.
Explanation
Correct Answer
D:Training knowledge or supplied context can be incomplete or stale. Provide version constraints in prompts and require verified references for changing APIs.
Incorrect Answers
A:Confirm retrieved file paths and version of the repository before trusting navigation advice. It would leave compatibility with the pinned dependency version without the specified safeguard.
B:Verify that references match language, package and version before adopting code. It would leave compatibility with the pinned dependency version without the specified safeguard.
C:Trim irrelevant session context and restate key requirements on important tasks. It would leave compatibility with the pinned dependency version without the specified safeguard.
Question 246
A team reports: A chat session includes five earlier unrelated threads, and a new security question keeps reflecting obsolete assumptions. They observe: Old constraints from an unrelated prototype contaminate a production recommendation. Which ONE technical decision most directly corrects the cause?
- Explain that suggestions depend on prompt construction and available context, not exhaustive repository proof.
- Provide authorized repository/file context or use supported repository indexing tools instead of expecting hidden access.
- Constrain conclusions to files and issues the current authorization scope exposes, and report missing context.
- Start a focused conversation and reattach current repository scope and constraints to control useful history.
Explanation
Correct Answer
D:Conversation history is one input to a limited context window.
Incorrect Answers
A:Explaining that suggestions depend on prompt construction and available context, not exhaustive repository proof would not address the need for start a focused conversation and reattach current repository scope and constraints to control useful history.
B:Providing authorized repository/file context or use supported repository indexing tools would not address the need for start a focused conversation and reattach current repository scope and constraints to control useful history.
C:Constrain conclusions to files and issues the current authorization scope exposes, and report missing context would not address the need for start a focused conversation and reattach current repository scope and constraints to control useful history.
Question 247
A team has implemented the following change: Start a focused conversation and reattach current repository scope and constraints to control useful history. The original requirement was: A chat session includes five earlier unrelated threads, and a new security question keeps reflecting obsolete assumptions. Which ONE validation test best demonstrates the intended behavior?
- Ask the same question in a clean context and compare the assumptions it cites.
- Reference the actual authorization module and check the answer names a real method.
- Check that every claimed dependency has a source the viewer can access.
- Provide a counterexample in an unindexed or inaccessible path and check whether it is cited.
Explanation
Correct Answer
A:Ask the same question in a clean context and compare the assumptions it cites.
Incorrect Answers
B:Reference the actual authorization module and check the answer names a real method. That check cannot demonstrate ask the same question in a clean context and compare the assumptions it cites.
C:Approved dependency sources and lockfiles protect builds against invented or impersonated packages. That check cannot demonstrate ask the same question in a clean context and compare the assumptions it cites.
D:Provide a counterexample in an unindexed or inaccessible path and check whether it is cited. That check cannot demonstrate ask the same question in a clean context and compare the assumptions it cites.
Question 248
A GitHub Copilot task needs TWO complementary actions: the immediate fix and a preventive practice. Context: A chat session includes five earlier unrelated threads, and a new security question keeps reflecting obsolete assumptions. Observed failure: Old constraints from an unrelated prototype contaminate a production recommendation. Select exactly TWO decisions that together address these needs.
- Cross-check answers against authoritative code search when completeness matters.
- Provide authorized repository/file context or use supported repository indexing tools instead of expecting hidden access.
- Start a focused conversation and reattach current repository scope and constraints to control useful history.
- Trim irrelevant session context and restate key requirements on important tasks.
- Constrain conclusions to files and issues the current authorization scope exposes, and report missing context.
Explanation
Correct Answers
C:Conversation history is one input to a limited context window. The needed intervention is start a focused conversation and reattach current repository scope and constraints to control useful history.
D:Conversation history is one input to a limited context window. Trim irrelevant session context and restate key requirements on important tasks.
Incorrect Answers
A:Cross-check answers against authoritative code search when completeness matters. The combined controls instead need start a focused conversation and reattach current repository scope and constraints to control useful history.
B:Repository indexing can provide code context, but it does not remove the unrelated earlier threads from the chat session.
E:Reporting authorization gaps limits unsupported conclusions, but the immediate problem is stale chat context crowding the security task.
Question 249
The current design is: Start a focused conversation and reattach current repository scope and constraints to control useful history. The prior failure was: Old constraints from an unrelated prototype contaminate a production recommendation. Which ONE ongoing control best protects against recurrence of that specific failure?
- Trim irrelevant session context and restate key requirements on important tasks.
- Audit cross-repository access before using summaries for release attestations.
- Confirm retrieved file paths and version of the repository before trusting navigation advice.
- Cross-check answers against authoritative code search when completeness matters.
Explanation
Correct Answer
A:Conversation history is one input to a limited context window. Trim irrelevant session context and restate key requirements on important tasks. Preventing this failure involves trim irrelevant session context and restate key requirements on important tasks.
Incorrect Answers
B:Generated code requires independently defined acceptance tests and review against the real program contract. It would leave trim irrelevant session context and restate key requirements on important tasks without the specified safeguard.
C:Confirm retrieved file paths and version of the repository before trusting navigation advice. It would leave trim irrelevant session context and restate key requirements on important tasks without the specified safeguard.
D:Cross-check answers against authoritative code search when completeness matters. It would leave trim irrelevant session context and restate key requirements on important tasks without the specified safeguard.
Question 250
A GitHub Copilot workflow needs THREE distinct decisions: a direct implementation, a way to validate it, and a recurring protection. Situation: A developer wants Copilot to answer which file handles authorization in a large monorepo, but the target repository is not available in the chat context. Failure: The answer invents an authorization middleware file that does not exist. Select exactly THREE options covering those responsibilities; a choice about another situation does not qualify.
- Audit cross-repository access before using summaries for release attestations.
- Confirm retrieved file paths and version of the repository before trusting navigation advice.
- Provide authorized repository/file context or use supported repository indexing tools instead of expecting hidden access.
- Reference the actual authorization module and check the answer names a real method.
- Explain that suggestions depend on prompt construction and available context, not exhaustive repository proof.
- Ask a model to infer the authorization module solely from generic framework conventions without loading repository code.
Explanation
Correct Answers
B:Confirm retrieved file paths and version of the repository before trusting navigation advice.
C:The assistant did not have the actual codebase information in its input context.
D:Reference the actual authorization module and check the answer names a real method.
Incorrect Answers
A:Generated code requires independently defined acceptance tests and review against the real program contract. It would leave confirm retrieved file paths and version of the repository before trusting navigation advice without the specified safeguard.
E:Repository context selection and retrieval can omit relevant files. It would leave confirm retrieved file paths and version of the repository before trusting navigation advice without the specified safeguard.
F:Generic framework assumptions do not grant access to the missing repository. The correct approach is attach authorized context, verify the named module and preserve that verification discipline.
GitHub Copilot (GH-300) Practice Tests