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

Home > Microsoft > GitHub Administrator > GH-300

GH-300 GitHub Copilot Exam Question and Answers

Question # 4

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)?

A.

GitHub Copilot Business for non-GHE customers

B.

GitHub Copilot Individual

C.

GitHub Copilot Enterprise

D.

GitHub Copilot Teams

Full Access
Question # 5

What type of information can you retrieve through GitHub Copilot Business Subscriptions via REST API? (Each correct answer presents part of the solution. Choose two.)

A.

Get a summary of GitHub Copilot usage for organization members

B.

List all GitHub Copilot seat assignments for an organization

C.

View code suggestions for a specific user

D.

List of all unsubscribed GitHub Copilot members within an organization

Full Access
Question # 6

How does GitHub Copilot assist developers in minimizing context switching?

A.

GitHub Copilot can automatically handle project management tasks.

B.

GitHub Copilot can completely replace the need for human collaboration.

C.

GitHub Copilot can predict and prevent bugs before they occur.

D.

GitHub Copilot allows developers to stay in their IDE.

Full Access
Question # 7

What configuration needs to be set to get help from Microsoft and GitHub protecting against IP infringement while using GitHub Copilot?

A.

Suggestions matching public code to ' blocked '

B.

Enforce blocking of MIT or GPL licensed code

C.

You need to check code suggestions yourself before accepting

D.

Enable GitHub Copilot license checking

Full Access
Question # 8

How do you generate code suggestions with GitHub Copilot in the CLI?

A.

Write code comments - > Press the suggestion shortcut - > Select the best suggestion from the list.

B.

Use copilot suggest - > Write the command you want - > Select the best suggestion from the list.

C.

Type out the code snippet - > Use the copilot refine command to enhance it - > Review the suggested command.

D.

Describe the project ' s architecture - > Use the copilot generate command - > Accept the generated suggestion.

Full Access
Question # 9

What is the impact of the " Fill-In-the-Middle " (FIM) technique on GitHub Copilot ' s code suggestions?

A.

Restricts Copilot to use only external databases for generating code suggestions.

B.

Allows Copilot to generate suggestions based only on the prefix of the code.

C.

Ignores both the prefix and suffix of the code, focusing only on user comments for context.

D.

Improves suggestions by considering both the prefix and suffix of the code, filling in the middle part more accurately.

Full Access
Question # 10

Which of the following does GitHub Copilot ' s LLM derive context from when producing a response?

A.

Frequency of commits to the repository

B.

Syntax highlighting scheme of the code in the IDE

C.

Neighboring or related files within a project

D.

Version control system integrated with the IDE

Full Access
Question # 11

What are the potential limitations of GitHub Copilot in maintaining existing codebases?

A.

GitHub Copilot can independently manage and resolve all merge conflicts in version control.

B.

GitHub Copilot might not fully understand the context and dependencies within a large codebase.

C.

GitHub Copilot ' s suggestions are always aware of the entire codebase.

D.

GitHub Copilot can refactor and optimize the entire codebase up to 10,000 lines of code.

Full Access
Question # 12

You have a Windows development workstation that has Microsoft Visual Studio 2022 version 17.10 installed.

You have an active GitHub Copilot plan.

You plan to start using GitHub Copilot code suggestions in Visual Studio.

You need to ensure that the code suggestions are available in Visual Studio. The solution must minimize administrative effort.

What should you do?

A.

Install Node.js 18 or later on the workstation.

B.

From Visual Studio Marketplace, install the GitHub Copilot extension.

C.

Sign in to Visual Studio by using your GitHub account.

D.

From the Visual Studio terminal, run copilot setup.

Full Access
Question # 13

You use GitHub Copilot Chat to debug a function.

You discover that GitHub Copilot is using irrelevant chat threads to generate output.

You need to ensure that GitHub Copilot only uses new input to generate output.

What should you do, and how will this affect the prompt process flow?

A.

Start a new chat in GitHub Copilot Chat; the previous chat history will not be included in the new model input.

B.

Continue the existing chat; the previous chat history will remain included in the model input.

C.

Start a new chat in GitHub Copilot Chat; the previous chat history will remain included in the model input.

D.

Continue the existing chat; the previous chat history will be removed from the model input.

Full Access
Question # 14

What is the main purpose of the duplication detection filter in GitHub Copilot?

A.

To compare user-generated code against a private repository for potential matches.

B.

To allow administrators to control which suggestions are visible to developers based on custom criteria.

C.

To encourage the user to follow coding best practices preventing code duplication.

D.

To detect and block suggestions that match public code snippets on GitHub if they contain about 150 characters.

Full Access
Question # 15

How do you generate code suggestions with GitHub Copilot in the CLI?

A.

Type out the code snippet → Use the copilot refine command to enhance it → Review the suggested command.

B.

Write code comments → Press the suggestion shortcut → Select the best suggestion from the list.

C.

Use gh copilot suggest → Write the command you want → Select the best suggestion from the list.

D.

Describe the project ' s architecture → Use the copilot generate command → Accept the generated suggestion.

Full Access
Question # 16

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?

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

Full Access
Question # 17

What types of content can GitHub Copilot Knowledge Base answer questions about? (Each correct answer presents part of the solution. Choose three.)

A.

Code snippets

B.

Compiled binaries

C.

Documentation

D.

Design patterns

E.

Screenshots

Full Access
Question # 18

What is one of the recommended practices when using GitHub Copilot Chat to enhance code quality?

A.

Avoid using Copilot for complex tasks.

B.

Disable Copilot ' s inline suggestions.

C.

Regularly review and refactor the code suggested by Copilot.

D.

Rely solely on Copilot ' s suggestions without reviewing them.

Full Access
Question # 19

When using an IDE with a supported GitHub Copilot plug-in, which Chat features can be accessed from within the IDE? (Each correct answer presents part of the solution. Choose two.)

A.

Explain code and suggest improvements

B.

Generate unit tests

C.

Plan coding tasks

D.

Find out about releases and commits

Full Access
Question # 20

Are there any limitations to consider when using GitHub Copilot for code refactoring?

A.

GitHub Copilot may not always produce optimized or best-practice code for refactoring.

B.

GitHub Copilot can only be used with a limited set of programming languages.

C.

GitHub Copilot always produces bug-free code during refactoring.

D.

GitHub Copilot understands the context of your entire project and refactors code accordingly.

Full Access
Question # 21

What role does the pre-processing of user input play in the data flow of GitHub Copilot Chat?

A.

It filters out irrelevant information from the user ' s input prompt.

B.

It enriches the input prompt with additional context before passing it to the language model.

C.

It directly generates a response based on the user ' s input prompt.

D.

It formats the output response before presenting it to the user.

Full Access
Question # 22

What specific function does the /fix slash command perform?

A.

Initiates a code review with static analysis tools for security and logic errors.

B.

Converts pseudocode into executable code, optimizing for readability and maintainability.

C.

Generates new code snippets based on language syntax and best practices.

D.

Proposes changes for detected issues, suggesting corrections for syntax errors and programming mistakes.

Full Access
Question # 23

What GitHub Copilot pricing plan gives you access to your company ' s knowledge bases?

A.

GitHub Copilot Individual

B.

GitHub Copilot Business

C.

GitHub Copilot Enterprise

D.

GitHub Copilot Professional

Full Access
Question # 24

What do you check when GitHub Copilot content exclusions are not working? (Each correct answer presents part of the solution. Choose two.)

A.

If GitHub Copilot can connect to the server selected in your user settings.

B.

If the user is part of the content exclusion team that limits the use of content exclusions.

C.

If the content exclusion settings changed in the last 30 minutes or before that.

D.

If the user is in an organization that has content exclusions configured.

Full Access
Question # 25

An independent contractor develops applications for a variety of different customers. Assuming no concerns from their customers, which GitHub Copilot plan is best suited?  

A.

GitHub Copilot Individual

B.

GitHub Copilot Business

C.

GitHub Copilot Business for non-GHE Customers

D.

GitHub Copilot Enterprise

E.

GitHub Copilot Teams

Full Access
Question # 26

Which Copilot Enterprise features are available in all commercially supported IDEs?

A.

Inline suggestions

B.

Pull request summaries

C.

Knowledge bases

D.

Chat

Full Access
Question # 27

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.

A.

Enable push protection for secret scanning on Repo1.

B.

Enable code referencing for GitHub Copilot completions.

C.

Disable inline GitHub Copilot suggestions in the IDE.

D.

Add repository custom instructions for secure coding, or create a custom push policy and configure a code check run.

Full Access
Question # 28

What is a benefit of using custom models in GitHub Copilot?

A.

Responses are faster to produce and appear sooner

B.

Responses use practices and patterns in your repositories

C.

Responses use the organization ' s LLM engine

D.

Responses are guaranteed to be correct

Full Access
Question # 29

How long does GitHub retain Copilot data for Business and Enterprise? (Each correct answer presents part of the solution. Choose two.)

A.

Prompts and Suggestions: Not retained

B.

Prompts and Suggestions: Retained for 28 days

C.

User Engagement Data: Kept for Two Years

D.

User Engagement Data: Kept for One Year

Full Access
Question # 30

When using GitHub Copilot Chat to generate boilerplate code for various test types, how can you guide the AI to follow the testing standards of your company?

A.

By using a specific setting in GitHub Copilot ' s configuration.

B.

By using a specific command in the terminal.

C.

By using specific prompt examples in your chat request.

D.

By using a specific slash command in the prompt.

Full Access
Question # 31

What is the best way to share feedback about GitHub Copilot Chat when using it on GitHub Mobile?

A.

The Settings menu in the GitHub Mobile app.

B.

The feedback section on the GitHub website.

C.

Use the emojis in the Copilot Chat interface.

D.

By tweeting at GitHub ' s official X (previously known as Twitter) account.

Full Access
Question # 32

What is the process behind identifying public code matches when using a public code filter enabled in GitHub Copilot?

A.

Running code suggestions through filters designed to detect public code

B.

Comparing suggestions against public code using machine learning.

C.

Analyzing the context and structure of the code being written

D.

Reviewing the user ' s browsing history to identify public repositories

Full Access
Question # 33

Which of the following prompts can be used to guide GitHub Copilot Chat in refactoring code for quality improvements? (Each correct answer presents part of the solution. Choose two.)

A.

" Show me how to improve the readability of this function. "

B.

" Suggest ways to enhance the maintainability of this code segment. "

C.

" Refactor my application to meet the latest coding standards. "

D.

" Predict future coding trends and update my codebase accordingly. "

Full Access
Question # 34

Which GitHub Copilot pricing plans include features that exclude your GitHub Copilot data like usage, prompts, and suggestions from default training GitHub Copilot? (Choose two correct answers.)

A.

GitHub Copilot Business

B.

GitHub Copilot Codespace

C.

GitHub Copilot Individual

D.

GitHub Copilot Enterprise

Full Access
Question # 35

Which Microsoft ethical AI principle is aimed at ensuring AI systems treat all people equally?

A.

Inclusiveness

B.

Fairness

C.

Reliability and Safety

D.

Privacy and Security

Full Access
Question # 36

What is the correct way to access the audit log events for GitHub Copilot Business?

A.

Navigate to the Security tab in the organization ' s GitHub settings

B.

Navigate to the Insights tab in the repository settings

C.

Use the Audit log section in the organization ' s GitHub settings

D.

Use the Code tab in the GitHub repository

Full Access
Question # 37

How does GitHub Copilot Chat ensure that a function works correctly?

A.

By suggesting assertions based on the code ' s context and semantics.

B.

By automatically writing all the tests for the function.

C.

By writing the implementation code for the function.

D.

By executing the test cases to validate the correctness of the code.

Full Access
Question # 38

In what way can GitHub Copilot and GitHub Copilot Chat aid developers in modernizing applications?

A.

GitHub Copilot can directly convert legacy applications into cloud-native architectures.

B.

GitHub Copilot can suggest modern programming patterns based on your code.

C.

GitHub Copilot can create and deploy full-stack applications based on a single query.

D.

GitHub Copilot can refactor applications to align with upcoming standards.

Full Access