Pre-Winter Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free Microsoft GH-300 Practice Exam with Questions & Answers | Set: 2

Questions 11

What GitHub Copilot configuration needs to be enabled to protect against IP infringements?

Options:
A.

Blocking public code matches

B.

Blocking license check configuration

C.

Allowing public code matches

D.

Allowing license check configuration

Microsoft GH-300 Premium Access
Questions 12

What are the potential risks associated with relying heavily on code generated from GitHub Copilot? (Each correct answer presents part of the solution. Choose two.)

Options:
A.

GitHub Copilot may introduce security vulnerabilities by suggesting code with known exploits.

B.

GitHub Copilot may decrease developer velocity by requiring too much time in prompt engineering.

C.

GitHub Copilot ' s suggestions may not always reflect best practices or the latest coding standards.

D.

GitHub Copilot may increase development lead time by providing irrelevant suggestions.

Questions 13

Which principle emphasizes that AI systems should be understandable and provide clear information on how they work?

Options:
A.

Fairness

B.

Transparency

C.

Inclusiveness

D.

Accountability

Questions 14

How can you use GitHub Copilot to get inline suggestions for refactoring your code? (Select two.)

Options:
A.

By adding comments to your code and triggering a suggestion.

B.

By highlighting the code you want to fix, right-clicking, and selecting " Fix using GitHub Copilot. "

C.

By running the gh copilot fix command.

D.

By using the " /fix " command in GitHub Copilot in-line chat.

E.

By highlighting the code you want to fix, right-clicking, and selecting " Refactor using GitHub Copilot. "

Questions 15

What is the primary role of the /optimize slash command in Visual Studio?

Options:
A.

Translates code into a more performant language.

B.

Enhances the performance of the selected code by analyzing its runtime complexity.

C.

Automatically formats the code according to the selected style guide.

D.

Summarizes your documentation into more maintainable and readable formats.

Questions 16

You start GitHub Copilot CLI from a directory named /repo/app. You store test files in a directory named /repo/tests.

You need to add /repo/tests as a trusted directory without restarting GitHub Copilot CLI. The solution must ensure that GitHub Copilot can access and modify the files.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

GH-300 Question 16

Options:
Questions 17

A company is currently storing code in Bitbucket and would like to use GitHub Copilot. Which GitHub Copilot plan will be most cost effective to allow them to manage users with their Identity Provider (e.g. Okta)?

Options:
A.

GitHub Copilot Business for non-GHE customers

B.

GitHub Copilot Individual

C.

GitHub Copilot Enterprise

D.

GitHub Copilot Teams

Questions 18

You have a developer device named Device1 that runs macOS and has Homebrew installed.

Device1 will be used by a developer who has a GitHub Copilot plan.

You have a GitHub Enterprise Cloud enterprise account that has data residency at contoso.ghe.com.

You need to install the GitHub Copilot CLI on Device1 and start interactive authentication against the correct GitHub host.

Which two commands should you run in sequence?

Options:
A.

brew install --cask copilot-cli → copilot login --host https://contoso.ghe.com

B.

brew install copilot-cli → gh auth login --hostname contoso.ghe.com

C.

brew install --cask copilot-cli → copilot login --host https://github.com

D.

npm install -g @github/copilot → gh auth login --hostname github.com

Questions 19

What are two techniques that can be used to improve prompts to GitHub Copilot? (Select two.)

Options:
A.

Provide specific success criteria

B.

Provide all information about the utilized files

C.

Provide insight on where to get the content from to get a response

D.

Provide links to supporting documentation

Questions 20

What are the additional checks that need to pass before the GitHub Copilot responses are submitted to the user? (Each correct answer presents part of the solution. Choose two.)

Options:
A.

Code quality

B.

Compatibility with user-specific settings

C.

Suggestions matching public code (optional based on settings)

D.

Performance benchmarking

Exam Code: GH-300
Certification Provider: Microsoft
Exam Name: GitHub Copilot Exam
Last Update: Oct 5, 2026
Questions: 129