Summer Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

GH-300 Questions and Answers

Question # 6

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

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.

Full Access
Question # 7

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 # 8

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 # 9

What is few-shot prompting?

A.

Telling GitHub Copilot about the mechanism you want it to use and how to incorporate that into the response

B.

Telling GitHub Copilot from which sources it should base the response on

C.

Telling GitHub Copilot to try multiple times to answer the prompt

D.

Telling GitHub Copilot to iterate several times on the answer before returning it to you

Full Access
Question # 10

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 # 11

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 # 12

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

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.

Full Access
Question # 13

Which of the following GitHub Copilot Business related activities can be tracked using the organization audit logs?

A.

Accepted chat suggestions

B.

Code suggestions made by GitHub Copilot

C.

Changes to content exclusion settings

D.

Suggestions blocked by duplication detection filtering

Full Access
Question # 14

What is used by GitHub Copilot in the IDE to determine the prompt context?

A.

Information from the IDE like open tabs, cursor location, selected code.

B.

All the code in the current repository and any git submodules.

C.

The open tabs in the IDE and the current folder of the terminal.

D.

All the code visible in the current IDE.

Full Access
Question # 15

Which scenarios can GitHub Copilot Chat be used to increase productivity? (Each correct answer presents part of the solution. Choose two.)

A.

A project plan for the team needs to be generated using a project management software.

B.

Create a documentation file for the newly created code base.

C.

A developer is added to a new project and would like to understand the current software code.

D.

Fast tracking of release management activities to move code to production main branch.

Full Access
Question # 16

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 # 17

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 # 18

How can the insights gained from the metrics API be used to improve the development process in conjunction with GitHub Copilot?

A.

Real-time debugging and error resolution statistics.

B.

Insights on the types of coding languages where GitHub Copilot is most helpful.

C.

Automated generation of complete project documentation.

D.

Detailed analysis of GitHub Copilot's suggestions vs. manual coding.

Full Access
Question # 19

When using GitHub Copilot to identify missing tests in your codebase, which of the following is the most important factor to consider?

A.

Using well-known coding practices in your repository.

B.

Ensuring that the correct context is available to GitHub Copilot.

C.

Close all the tabs in your IDE that do not have tests in them.

D.

Having a high test coverage percentage in the codebase.

Full Access
Question # 20

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 # 21

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 # 22

How can GitHub Copilot facilitate a smoother learning experience when diving into a new programming language? (Each correct answer presents part of the solution. Choose two.)

A.

GitHub Copilot Chat can provide guidance and support for common coding tasks and challenges in the targeted programming language.

B.

GitHub Copilot's /understand command will help GitHub Copilot to understand code written in a targeted programming language.

C.

GitHub Copilot can provide contextualized code suggestions and answer sources from an organization's documentation.

D.

GitHub Copilot can convert comments into code to grasp the syntax and nuances of a new programming language.

Full Access
Question # 23

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 # 24

What two options navigate to configure duplicate detection? (Each correct answer presents part of the solution. Choose two.)

A.

Enterprise settings → Copilot → Policies

B.

Repository settings → Copilot → Policies

C.

Organization settings → Copilot → Policies

D.

User settings → Copilot → Policies

Full Access
Question # 25

How does GitHub Copilot typically handle code suggestions that involve deprecated features or syntax of programming languages?

A.

GitHub Copilot automatically updates deprecated features in its suggestions to the latest version.

B.

GitHub Copilot may suggest deprecated syntax or features if they are present in its training data.

C.

GitHub Copilot always filters out deprecated elements to promote the use of current standards.

D.

GitHub Copilot rejects all prompts involving deprecated features to avoid compilation errors.

Full Access
Question # 26

Where can you validate if GitHub Copilot is not returning suggestions because of content exclusions?

A.

The GitHub Copilot icon in the status bar of the editor will display a message

B.

The GitHub Copilot logs on GitHub.com under your user settings

C.

The code suggestions window will display a warning message

D.

The GitHub Copilot errors panel in your IDE

Full Access
Question # 27

What are the effects of content exclusions? (Each correct answer presents part of the solution. Choose two.)

A.

The excluded content is not directly available to GitHub Copilot to use as context.

B.

GitHub Copilot suggestions are no longer available in the excluded files.

C.

The excluded content is no longer used while debugging the code.

D.

The IDE will not count coding suggestions in the excluded content.

Full Access
Question # 28

How does GitHub Copilot Chat help in understanding the existing codebase?

A.

By running code linters and formatters.

B.

By providing visual diagrams of the code structure.

C.

By answering questions about the code and generating explanations.

D.

By automatically refactoring code to improve readability.

Full Access
Question # 29

How does GitHub Copilot Enterprise assist in code reviews during the pull request process? (Select two.)

A.

It automatically merges pull requests after an automated review.

B.

It generates a prose summary and a bulleted list of key changes for pull requests.

C.

It can validate the accuracy of the changes in the pull request.

D.

It can answer questions about the changeset of the pull request.

Full Access
Question # 30

What is zero-shot prompting?

A.

Only giving GitHub Copilot a question as a prompt and no examples

B.

Giving GitHub Copilot examples of the problem you want to solve

C.

Telling GitHub Copilot it needs to show only the correct answer

D.

Giving GitHub Copilot examples of the algorithm and outcome you want to use

E.

Giving as little context to GitHub Copilot as possible

Full Access
Question # 31

What is a likely effect of GitHub Copilot being trained on commonly used code patterns?

A.

Suggest innovative coding solutions that are not yet popular.

B.

Suggest completely novel projects, while reducing time on a project.

C.

Suggest code snippets that reflect the most common practices in the training data.

D.

Suggest homogeneous solutions if provided a diverse data set.

Full Access
Question # 32

How can GitHub Copilot assist developers during the requirements analysis phase of the Software Development Life Cycle (SDLC)?

A.

By automatically generating detailed requirements documents.

B.

By providing templates and code snippets that help in documenting requirements.

C.

By identifying and fixing potential requirement conflicts when using /help.

D.

By managing stakeholder communication and meetings.

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

What reasons could apply if code suggestions are not working in your editor? (Select three.)

A.

You are working in files included in your .gitignore

B.

You do not have an active internet connection

C.

Your programming language is not supported

D.

Your content exclusion is active and blocks the use of GitHub Copilot

E.

You do not have a valid GitHub Copilot license

Full Access
Question # 35

Which of the following scenarios best describes the intended use of GitHub Copilot Chat as a tool?

A.

A complete replacement for developers generating code.

B.

A productivity tool that provides suggestions, but relying on human judgment.

C.

A solution for software development, requiring no additional input or oversight.

D.

A tool solely designed for debugging and error correction.

Full Access
Question # 36

How can you get multiple suggestions from GitHub Copilot?

A.

By asking for multiple suggestions using comments in your code

B.

By opening the completions panel in your editor

C.

By using the inline chat functionality with the command 'multiple'

D.

By using @workspace in the chat window

Full Access