GH-300 · Question #13
GH-300 Question #13: Real Exam Question with Answer & Explanation
The correct answer is A: If the contents of an excluded file are referenced in code that is not excluded, for example. {"question_number": 3, "correct_answer": "A", "explanation": "Content exclusions prevent Copilot from directly reading an excluded file as context. However, if a non-excluded file explicitly imports, references, or copies content from an excluded file, Copilot can still see that
Question
When can GitHub Copilot still use content that was excluded using content exclusion?
Options
- AIf the contents of an excluded file are referenced in code that is not excluded, for example
- BWhen the repository level settings allow overrides by the user.
- CIf the content exclusion was configured at the enterprise level, and is overwritten at the
- DWhen the user prompts with @workspace.
Explanation
{"question_number": 3, "correct_answer": "A", "explanation": "Content exclusions prevent Copilot from directly reading an excluded file as context. However, if a non-excluded file explicitly imports, references, or copies content from an excluded file, Copilot can still see that content through the non-excluded file - the exclusion does not cascade transitively. The other options are incorrect: there is no user-level override for repository-level exclusions (B), enterprise-level exclusions take precedence and cannot be overwritten at lower levels (C), and @workspace does not bypass content exclusions (D).", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.