Spring Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

GH-300 Premium Exam Questions

Page: 9 / 9
Total 123 questions

GitHub Copilot Exam Questions and Answers

Question 33

What is the correct way to exclude specific files from being used by GitHub Copilot Business during code suggestions?

Options:

A.

Modify the .gitignore file to include the specific files.

B.

Add the specific files to a copilot.ignore file.

C.

Use the GitHub Copilot settings in the user interface to exclude files.

D.

Rename the files to include the suffix _no_copilot.

Question 34

What are the different ways to give context to GitHub Copilot to get more precise responses? (Each correct answer presents part of the solution. Choose two.)

Options:

A.

Utilize to interpret developer ' s thoughts and intentions without any code or comments.

B.

Engage with chat participants such as @workspace to incorporate collaborative context into the responses.

C.

Access developer ' s previous projects and code repositories to understand their coding style without explicit permission.

D.

Utilize chat variables like *file to anchor the conversation within the specific context of the files or editors in use.

Question 35

How can GitHub Copilot be limited when it comes to suggesting unit tests?

Options:

A.

GitHub Copilot can generate all types of unit tests, including those for edge cases and complex integration scenarios.

B.

GitHub Copilot primarily suggests basic unit tests that focus on core functionalities, often requiring additional input from developers for comprehensive coverage.

C.

GitHub Copilot can handle any complexity in code and automatically generate appropriate unit tests.

D.

GitHub Copilot ' s limitations in generating unit tests can vary based on the IDE version you are using.

Question 36

When can GitHub Copilot still use content that was excluded using content exclusion?

Options:

A.

When the user prompts with @workspace.

B.

When the repository-level settings allow overrides by the user.

C.

If the contents of an excluded file are referenced in code that is not excluded, for example function calls.

D.

If the content exclusion was configured at the enterprise level, and is overwritten at the organization level.

Page: 9 / 9
Total 123 questions