Github Copilot · Free Practice Question Medium

Question 1

You are tasked with implementing a system that makes use of AI-generated code through GitHub Copilot. As part of the Responsible AI guidelines, you need to ensure transparency and accountability in the use of AI in your software development. Which of the following strategies should you adopt?

  • A

    Clearly mark AI-generated code in your version control system and document any changes made to Copilot's suggestions during code review.

  • B

    Document only the code you write manually, as AI-generated code is considered reliable due to its training data size.

  • C

    Rely on GitHub’s automatic version control system to track all changes without additional documentation, assuming Copilot suggestions are not a special case.

  • D

    Log every Copilot suggestion and its outcome for future reference in case any issues arise with the system’s behavior.

Reveal correct answer

Correct answer: A

A.

Marking AI-generated code in version control and documenting any changes made ensures transparency in the development process. If an issue arises from a Copilot suggestion, this strategy allows for clear traceability and accountability. It also provides a way to distinguish between manually written and AI-generated code, which is crucial for understanding the origins of any potential errors or biases.

B.

AI-generated code, while useful, is not inherently more reliable than human-written code. It should be treated with the same level of scrutiny, especially when accountability is concerned. Failing to document AI-generated code can lead to issues if problems arise later.

C.

While GitHub’s version control is useful, it is not a substitute for specifically documenting AI-generated code. Treating Copilot suggestions like manual code may obscure the source of the code, making it difficult to trace or explain decisions later on.

D.

While logging suggestions can be helpful, it is impractical to log every single Copilot suggestion. Instead, marking the final AI-generated code in version control is more efficient and offers similar transparency without overwhelming the development process with excessive logs.

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