
GitHubCopilot Certification
Domain 4Objective 1
Craft Effective Prompts GH-300 Practice Questions (Page 1)
Part of the Apply prompt engineering and context crafting domain, which accounts for 10-15% of the GH-300 exam.
24questions here
5free pages
6concepts
10-15%of the exam
Questions 1–5
- 1
A team is using GitHub Copilot Chat to refactor a legacy codebase. They want Copilot to suggest a new implementation for a specific module, but they are concerned that Copilot might not understand the existing architecture. What should they include in their prompt to ensure the suggestions are relevant?
Select an answer first - 2
A developer is using GitHub Copilot to generate a function that converts a string to title case. The developer wants the output to follow a specific pattern: each word capitalized, but with a few exceptions like 'and' and 'of'. Which prompt approach is most effective?
Select an answer first - 3
A developer is using GitHub Copilot to generate a SQL query. The first attempt returns a query that is close but not exactly what they need. What is the best next step?
Select an answer first - 4
Why is iterating on prompts considered a best practice?
Select an answer first - 5
In a GitHub Copilot Chat session, a developer has been discussing a specific project. They now ask a question that is unrelated to the previous conversation. How should they handle this to get the best response?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GitHub. “GH-300” is a trademark of its owner, used for identification only.