GH-300 Practice questions
GitHub Copilot Exam
0/5 checked
- free questions
- 5
- with answers
- in the full set
- 129
- question types
- 4
Updated
-
Question 1
Single answer
Which of the following describes role prompting?
Show answer
Correct answer
-
A
Describing in your prompt what your role is to get a better suggestion
Explanation
Role prompting involves explicitly stating your role or the persona you want GitHub Copilot to adopt within your prompt. This helps Copilot provide more contextually relevant and accurate suggestions. By defining your role (e.g., "As a senior software engineer," "As a technical writer"), you guide Copilot to tailor its responses to align with the expertise and perspective associated with that role. This improves the quality and relevance of the generated code and explanations.
No comments yet. Start the discussion.
-
A
-
Question 2
Multiple answer
How long does GitHub retain Copilot data for Business and Enterprise? (Each correct answer presents part of the solution. Choose two.)
Show answer
Correct answer
-
B
Prompts and Suggestions: Retained for 28 days
-
C
User Engagement Data: Kept for Two Years
Explanation
For GitHub Copilot Business and Enterprise, prompts and suggestions are retained for 28 days to provide context and improve the service. User engagement data, which includes usage patterns and interactions, is kept for two years. This data retention policy is designed to balance service improvement with user privacy.
No comments yet. Start the discussion.
-
B
-
Question 3
Drag and drop
You have a GitHub Copilot subscription.
You need to start an interactive GitHub Copilot CLI session from the root folder of a project.
If you are NOT authenticated, GitHub Copilot must prompt you to sign in.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Show answer
Correct answer

No comments yet. Start the discussion.
-
Question 4
Hotspot
You are deploying a new development environment to a Windows 11 device.
You need to install GitHub Copilot CLI, and then start an interactive GitHub Copilot CLI session.
Which command should you run for each requirement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Show answer
Correct answer

No comments yet. Start the discussion.
-
Question 5
Single answer
What is a key consideration when relying on GitHub Copilot Chat's explanations of code functionality and proposed improvements?
Show answer
Correct answer
-
B
Reviewing and validating the generated output for accuracy and completeness.
Explanation
While GitHub Copilot Chat can provide helpful explanations and suggestions, it's crucial to review and validate the generated output. Copilot's suggestions are based on its training data, and they may not always be perfectly accurate or complete. Human judgment is essential to ensure the quality and correctness of the code.
No comments yet. Start the discussion.
-
B
- Unlock to see this question
- Unlock to see this question
124 questions locked
Unlock all 129 GH-300 questions
You’ve had 5 for free. The other 124 work just like them: pick an answer, then check it.
- Questions
- 129, each with its answer
- Explanations
- 92% of questions explained
- Formats
- Single answer, Multiple answer, Hotspot, Drag and drop
- Version
- 10.4
- Access
- 3 months from purchase
One-time payment
$49.00
Secure checkout