| Exam Code | GH-300 |
| Exam Name | Microsoft GitHub Copilot Exam |
| Vendor | Microsoft |
| Total Questions | 120 |
| Last Updated | 26-Oct, 2026 |
- Latest & Verified Questions
- Detailed Explanations
- Regular Updates
- Full-Length Practice Tests
- Boost Your Exam Confidence
PDF Study Materials
Downloadable guides and resources
Practice Tests
Full-length tests with real exam experience
Progress Tracking
Monitor your performance and improvement
Study Anywhere
Access on desktop, tablet, and mobile
Free GH-300 Practice Questions
Explore 9 free practice questions for the Microsoft GH-300 exam and review the answers and explanations to support your preparation.
-
Question 1
Multiple answersYou need to identify the cause of the performance issues on SalesSQLDb1.
Which two dynamic management views should you use? Each correct answer presents part of the
solution.
NOTE: Each correct selection is worth one point.-
Option A:Correct
sys.dm_pdw_nodes_tran_locks
-
Option B:Correct
sys.dm_exec_compute_node_errors
-
Option C:Correct
sys.dm_exec_requests
-
Option D:Correct
sys.dm_cdc_errors
-
Option E:Correct
sys.dm_pdw_nodes_os_wait_stats
-
Option F:Correct
sys.dm_tran_locks
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: A, E
Explanation
SalesSQLDb1 experiences performance issues that are likely due to out-of-date statistics and
frequent blocking queries.
A: Use sys.dm_pdw_nodes_tran_locks instead of sys.dm_tran_locks from Azure Synapse Analytics
(SQL Data Warehouse) or Parallel Data Warehouse
E: Example:
The following query will show blocking information.
SELECT
t1.resource_type,
t1.resource_database_id,
t1.resource_associated_entity
_id, t1.request_mode,
t1.request_session_id,
t2.blocking_session_id
FROM sys.dm_tran_locks as t1
INNER JOIN sys.dm_os_waiting_tasks as t2
ON t1.lock_owner_address = t2.resource_address
Note: Depending on the system you’re working with you can access these wait statistics from one of
three locations:
sys.dm_os_wait_stats: for SQL Server
sys.dm_db_wait_stats: for Azure SQL Database
sys.dm_pdw_nodes_os_wait_stats: for Azure SQL Data Warehouse
F: sys.dm_tran_locks returns information about currently active lock manager resources in SQL
Server 2019 (15.x). Each row represents a currently active request to the lock manager for a lock that
has been granted or is waiting to be granted.
Instead use sys.dm_pdw_nodes_tran_locks.Incorrect Answers:
-
-
Question 2
Drag & DropYou need to recommend a configuration for ManufacturingSQLDb1 after the migration to Azure. The
solution must meet the business requirements.
What should you include in the recommendation? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.Show Answer & Explanation Hide Answer & Explanation
Correct Answer

Explanation

Scenario: Business Requirements
Litware identifies business requirements include: meet an SLA of 99.99% availability for all Azure
deployments.
Box 1: Cloud witness
If you have a Failover Cluster deployment, where all nodes can reach the internet (by extension of
Azure), it is recommended that you configure a Cloud Witness as your quorum witness resource.
Box 2: Azure Basic Load Balancer
Microsoft guarantees that a Load Balanced Endpoint using Azure Standard Load Balancer, serving two
or more Healthy Virtual Machine Instances, will be available 99.99% of the time.
Note: There are two main options for setting up your listener: external (public) or internal. The
external (public) listener uses an internet facing load balancer and is associated with a public Virtual
IP (VIP) that is accessible over the internet. An internal listener uses an internal load balancer and
only supports clients within the same Virtual Network. -
Question 3
Drag & DropYou need to implement the monitoring of SalesSQLDb1. The solution must meet the technical
requirements.
How should you collect and stream metrics? To answer, select the appropriate options in the answer
area. NOTE: Each correct selection is worth one point.Show Answer & Explanation Hide Answer & Explanation
Correct Answer
\Explanation

Box 1: The server, the elastic pool, and the database
Senario:
SalesSQLDb1 is in an elastic pool named SalesSQLDb1Pool.
Litware technical requirements include: all SQL Server and Azure SQL Database metrics related to
CPU and storage usage and limits must be analyzed by using Azure built-in functionality
Box 2: Azure Event hubs
Scenario: Migrate ManufacturingSQLDb1 to the Azure virtual machine platform.
Event hubs are able to handle custom metrics.
Incorrect Answers:
Azure Log Analytics
Azure metric and log data are sent to Azure Monitor Logs, previously known as Azure Log Analytics,
directly by Azure. Azure SQL Analytics is a cloud only monitoring solution supporting streaming of
diagnostics telemetry for all of your Azure SQL databases.
However, because Azure SQL Analytics does not use agents to connect to Azure Monitor, it does not
support monitoring of SQL Server hosted on-premises or in virtual machines. -
Question 4
Drag & DropYou need to configure user authentication for the SERVER1 databases. The solution must meet the
security and compliance requirements. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.Show Answer & Explanation Hide Answer & Explanation
Correct Answer

Explanation
Scenario: Authenticate database users by using Active Directory credentials.
Which three actions should you perform in sequence? To answer, move the appropriate actions from
the list of actions to the answer area and arrange them in the correct order.
The configuration steps include the following procedures to configure and use Azure Active Directory
authentication. Create and populate Azure AD.
Optional: Associate or change the active directory that is currently associated with your Azure
Subscription.
Create an Azure Active Directory administrator. (Step 1)
Configure your client computers.
Create contained database users in your database mapped to Azure AD identities. (Step 2)
Connect to your database by using Azure AD identities. (Step 3) -
Question 5
Single answerWhat GitHub Copilot configuration needs to be enabled to protect against IP infringements?
-
Option A:Correct
Blocking public code matches
-
Option B:Correct
Blocking license check configuration
-
Option C:Correct
Allowing public code matches
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: A
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 6
Multiple answersWhat type of information can you retrieve through GitHub Copilot Business Subscriptions via REST API? (Each correct answer presents part of the solution. Choose two.)
-
Option A:Correct
Get a summary of GitHub Copilot usage for organization members
-
Option B:Correct
List all GitHub Copilot seat assignments for an organization
-
Option C:Correct
View code suggestions for a specific user
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: A, B
Explanation
Exact extracts:
“The REST API for Copilot Business allows you to retrieve a summary of Copilot usage metrics for organization members.”
[References: GitHub Copilot Business REST API documentation., ===========, , ] -
-
Question 7
Multiple answersIn what ways can GitHub Copilot support a developer during the code refactoring process? (Each correct answer presents part of the solution. Choose two.)
-
Option A:Correct
By offering code transformation examples that enhance performance and reduce complexity.
-
Option B:Correct
By independently ensuring compliance with regulatory standards across industries.
-
Option C:Correct
By providing suggestions for improving code readability and maintainability based on best practices.
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: A, C
Explanation
Exact extracts:
“Copilot can propose code transformations that improve performance and reduce complexity.”
[References: GitHub Copilot code refactoring documentation., ===========, , ] -
-
Question 8
Multiple answersWhich Copilot Individual features are available when using a supported extension for Visual Studio, VS Code, or JetBrains IDEs? (Each correct answer presents part of the solution. Choose two.)
-
Option A:Correct
Code suggestions
-
Option B:Correct
Chat
-
Option C:Correct
Knowledge Base
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: A, B
Explanation
GitHub Copilot Individual provides code suggestions and chat features when used with supported IDE extensions like Visual Studio, VS Code, and JetBrains IDEs.
[Reference: GitHub Copilot Individual features documentation., , ] -
-
Question 9
Multiple answersWhich of the following are true about code suggestions? (Each correct answer presents part of the solution. Choose two.)
-
Option A:Correct
Code suggestions are guaranteed to not expose known security vulnerabilities
-
Option B:Correct
You can use keyboard shortcuts to accept the next word in a suggestion
-
Option C:Correct
Code suggestions are limited to single-line suggestions
-
Option D:Correct
Code suggestions will always compile or run without modifications
-
Option E:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: B, E
Explanation
Exact extracts:
“You can accept individual words, lines, or entire suggestions with keyboard shortcuts.”
[References: GitHub Copilot editor usage documentation., ===========, , ] -