Github Copilot · Free Practice Question Hard
Question 23
A DevOps engineer is responsible for managing Copilot Business subscriptions for their organization. They want to use the GitHub REST API to programmatically handle subscription tasks such as assigning licenses, retrieving subscription details, and disabling Copilot for specific users. Which of the following API actions correctly describes how to manage GitHub Copilot Business subscriptions via the GitHub REST API?
-
A
The GitHub Copilot Business API requires an enterprise-level authentication token to retrieve subscription details, even if the organization is on a Business plan.
-
B
The GitHub Copilot REST API allows billing administrators to adjust individual users’ Copilot AI models to fine-tune suggestions based on their coding history.
-
C
To remove a user from GitHub Copilot Business, the administrator must call the
/orgs/{org}/copilot/billing/seats/{username}endpoint with aDELETErequest. -
D
Organizations can use the GitHub REST API to generate detailed usage reports of Copilot-generated code suggestions, including timestamps and code snippets.
Reveal correct answer
Correct answer: C
A.
The GitHub REST API for Copilot Business can be accessed using an organization admin token, but it does not require an Enterprise-level token. An Enterprise token is only required for Enterprise Cloud organizations, whereas Copilot Business customers can authenticate with an organization administrator’s personal access token (PAT) with billing scope.
B.
GitHub Copilot’s AI models are not adjustable per user via the REST API. The API allows managing billing, seat assignments, and organization-wide policies, but it does not provide customization for AI model behavior per user. Copilot’s suggestions are based on a pre-trained model and do not learn from individual coding history.
C.
The correct way to revoke a Copilot Business license from a user is by sending a DELETE request to the /orgs/{org}/copilot/billing/seats/{username} endpoint. This action removes the specified user from the Copilot subscription while keeping them in the organization. This approach ensures that only the Copilot license is revoked, not their general organization membership.
D.
While GitHub Copilot Business provides usage analytics, the GitHub REST API does not expose granular timestamps or full code snippets generated by Copilot. The API can retrieve billing and seat allocation details, but it does not log specific Copilot-generated completions for privacy and compliance reasons.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
