Github Copilot · Free Practice Question Medium

Question 40

Your organization has strict policies restricting the use of GitHub Copilot to approved teams. However, you suspect that unauthorized users are enabling Copilot. You need to use organization audit logs to investigate. Which action can you track in GitHub audit logs to detect unauthorized Copilot usage?

  • A

    When an administrator assigns or revokes a Copilot Business license

  • B

    When a user commits Copilot-generated code to a repository

  • C

    When a user receives a Copilot-generated code suggestion

  • D

    When a user copies and pastes Copilot-generated code into a file

Reveal correct answer

Correct answer: A

A.

GitHub’s audit logs track administrative actions such as assigning or revoking Copilot Business licenses. This helps ensure that only authorized users have access and provides an audit trail for security reviews.

B.

GitHub does not differentiate between Copilot-generated and manually written code in commits. Audit logs cannot identify if a commit contains Copilot-generated code.

C.

Audit logs do not track individual Copilot suggestions. They only record administrative actions related to Copilot access and settings.

D.

Copying and pasting is not logged by GitHub, as it occurs within the user's local development environment, outside of GitHub’s auditing scope.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need