Exam GH-300 Topic 6 Question 97 Discussion

Actual exam question for Microsoft's GH-300 exam
Question #: 97
Topic #: 6
You have a GitHub repository named Repo1 that has GitHub Copilot enabled.
The developers at your company use Repo1 in Microsoft Visual Studio Code.
You need to identify potentially unoriginal suggestions and prevent secrets from being committed to Repo1.
The solution must ensure that the developers can use inline GitHub Copilot suggestions in Visual Studio Code.
Which two actions should you perform? Each correct answer presents part of the solution.

Suggested Answer: A,B Vote an answer

Two separate GitHub features satisfy the security requirements. Push protection is part of secret scanning and blocks supported secrets before they are pushed to a repository, helping prevent credentials from being committed. GitHub Copilot code referencing addresses potentially unoriginal suggestions: when public-code matches are allowed, accepted inline suggestions that match public GitHub code can be logged with source URLs and license information so developers can review the origin. Disabling inline suggestions would violate the requirement that developers continue using Copilot completions. Repository custom instructions may influence generated code, but they do not replace secret scanning or public-code matching. Therefore, enabling push protection together with Copilot code referencing is the correct combination.

by Nigel at Sep 26, 2026, 10:11 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10