What GitHub Copilot pricing plan gives you access to your company's knowledge bases?
-
A
GitHub Copilot Individual
-
B
-
C
GitHub Copilot Enterprise
-
D
GitHub Copilot Professional
Reveal answer details
Close answer details
Correct answerC
ExplanationGitHub Copilot Enterprise provides access to your company's knowledge bases, enabling the tool to provide contextually relevant suggestions based on your organization's specific documentation and code. References: GitHub Copilot Enterprise pricing and features.
Select a strategy to increase the performance of GitHub Copilot Chat.
-
A
Optimize the usage of memory-intensive operations within generated code
-
B
Apply prompt engineering techniques to be more specific
-
C
Use a single GitHub Copilot Chat query to find resolutions for the collection of technical requirements
-
D
Limit the number of concurrent users accessing GitHub Copilot Chat
Reveal answer details
Close answer details
Correct answerB
Explanation"Performance of Copilot Chat can be improved with prompt engineering. More specific prompts give more relevant and accurate answers." This confirms that applying prompt engineering techniques is the valid strategy. References: GitHub Copilot Chat best practices documentation.
Question 3
Multiple choice
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
Reveal answer details
Close answer details
Correct answersB, C, E
Explanation"Copilot requires an active internet connection to provide suggestions." "Copilot does not support all programming languages." References: GitHub Copilot troubleshooting documentation.
Question 4
Multiple choice
Which REST API endpoint is used to modify details about a GitHub Copilot Business subscription? (Each correct answer presents part of the solution. Choose two.)
-
A
Add teams to the Copilot subscription for an organization
-
B
Upgrade or downgrade the subscription tier
-
C
Migrate Copilot seat assignments between GitHub organizations
-
D
Reassign Copilot seats based on GitHub repository size
-
E
Remove teams from the Copilot subscription for an organization
Reveal answer details
Close answer details
Correct answersA, E
ExplanationThe REST API endpoints are used to add and remove teams from the Copilot Business subscription within an organization. References: GitHub Copilot Business API documentation.
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.
Reveal answer details
Close answer details
Correct answerC
ExplanationThe best way to share feedback on GitHub Mobile is using the emojis in the Copilot Chat interface, which allows for direct and immediate feedback. References: GitHub Copilot Mobile documentation.
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.
Reveal answer details
Close answer details
Correct answerB
Explanation"/optimize Analyze and improve running time of the selected code." This statement from Visual Studio Copilot Chat slash command documentation shows that the role of /optimize is specifically to analyze and improve the runtime performance of selected code, aligning directly with option B. References: GitHub Copilot official documentation and Visual Studio Copilot Chat command reference.
Question 7
Multiple choice
How can you use GitHub Copilot to get inline suggestions for refactoring your code? (Select two.)
-
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."
Reveal answer details
Close answer details
Correct answersA, E
ExplanationYou can use GitHub Copilot for inline refactoring suggestions by adding comments to your code to trigger suggestions and by highlighting the code and selecting "Refactor using GitHub Copilot" from the context menu. References: GitHub Copilot refactoring documentation.
What GitHub Copilot configuration needs to be enabled to protect against IP infringements?
-
A
Blocking public code matches
-
B
Blocking license check configuration
-
C
Allowing public code matches
-
D
Allowing license check configuration
Reveal answer details
Close answer details
Correct answerA
Explanation"By default, suggestions matching public code are allowed, but you can choose to block public code matches. This setting can be enabled to reduce the risk of intellectual property infringement." This shows that enabling "Blocking public code matches" is the configuration required to protect against IP issues. References: GitHub Copilot configuration settings documentation.
Question 9
Multiple choice
What types of content can GitHub Copilot Knowledge Base answer questions about? (Each correct answer presents part of the solution. Choose three.)
-
A
-
B
-
C
-
D
-
E
Reveal answer details
Close answer details
Correct answersA, C, D
Explanation"GitHub Copilot Knowledge Bases allow you to ask questions about your organization's documentation, design patterns, and code snippets." This proves that Copilot Knowledge Base can work with code snippets, documentation, and design patterns, but not binaries or screenshots. References: GitHub Copilot Enterprise Knowledge Base documentation.
Question 10
Single choice
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
Reveal answer details
Close answer details
Correct answerC
Explanation"Copilot may use context from neighboring or related files in the project to improve the accuracy of its suggestions." This confirms that context is enriched with information from related files, making option C correct. References: GitHub Copilot context derivation documentation.
Question 11
Single choice
If you are working on open source projects, GitHub Copilot Individual can be paid:
-
A
Based on the payment method in your user profile
-
B
N/A - Copilot Individual is a free service for all open source projects
-
C
Through an invoice or a credit card
-
D
Through an Azure Subscription
Reveal answer details
Close answer details
Correct answerA
Explanation"GitHub Copilot Individual subscriptions are billed using the payment method configured in your GitHub user profile." There is no free tier for open source projects, so option A is correct. References: GitHub Copilot billing documentation.
Question 12
Single choice
Which principle emphasizes that AI systems should be understandable and provide clear information on how they work?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationThe principle of transparency emphasizes that AI systems should be understandable and provide clear information about their operations. This ensures that users can understand how the AI arrives at its decisions and suggestions. References: Microsoft's AI principles and ethical guidelines.
Question 13
Single choice
What can be done during AI development to minimize bias?
-
A
Improve on the computational efficiency and speed.
-
B
Focus on accuracy of the data.
-
C
Collect massive amounts of data for training.
-
D
Use diverse data, fairness metrics, and human oversight.
Reveal answer details
Close answer details
Correct answerD
Explanation"Minimizing bias requires diverse datasets, use of fairness metrics, and human oversight throughout development and deployment." This clearly confirms that the proper approach is a combination of diverse data, fairness metrics, and oversight. References: Microsoft Responsible AI and GitHub Copilot fairness guidelines.
Question 14
Single choice
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
Reveal answer details
Close answer details
Correct answerC
ExplanationAudit log events for GitHub Copilot Business can be accessed through the Audit log section within the organization's GitHub settings. This log provides a record of activities related to Copilot usage and configuration. References: GitHub Copilot Business documentation on audit logs.
Question 15
Multiple choice
Which of the following are true about code suggestions? (Each correct answer presents part of the solution. Choose two.)
-
A
Code suggestions are guaranteed to not expose known security vulnerabilities
-
B
You can use keyboard shortcuts to accept the next word in a suggestion
-
C
Code suggestions are limited to single-line suggestions
-
D
Code suggestions will always compile or run without modifications
-
E
Alternative code suggestions can be shown in a new tab
Reveal answer details
Close answer details
Correct answersB, E
Explanation"You can accept individual words, lines, or entire suggestions with keyboard shortcuts." References: GitHub Copilot editor usage documentation.
Question 16
Multiple choice
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
-
B
-
C
GitHub Copilot Individual
-
D
GitHub Copilot Enterprise
Reveal answer details
Close answer details
Correct answersA, D
Explanation"For Copilot Business and Copilot Enterprise, user data such as code suggestions, prompts, and completions are excluded from training GitHub Copilot's models." This confirms that only Business and Enterprise plans provide this exclusion feature. References: GitHub Copilot data usage and privacy documentation.
Question 17
Multiple choice
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
Reveal answer details
Close answer details
Correct answersA, C
Explanation"Duplicate detection and blocking of public code matches can be configured by enterprise administrators in enterprise or organization-level Copilot policies." This confirms that enterprise and organization settings are the correct paths. References: GitHub Copilot policy configuration documentation.
Question 18
Single choice
What is the correct way to exclude specific files from being used by GitHub Copilot Business during code suggestions?
-
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.
Reveal answer details
Close answer details
Correct answerC
ExplanationThe correct way to exclude files is through the GitHub Copilot settings in the user interface, which allows administrators to specify files and directories to be ignored. References: GitHub Copilot Business content exclusion documentation.
|