Potential Harms and Mitigation Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Understand Responsible AI Principles

What you'll be asked

  1. What is the primary responsibility of a developer when using GitHub Copilot to generate code?
  2. When GitHub Copilot suggests a code snippet that closely matches existing open-source code, what is the recommended best practice?
  3. Which of the following is a potential risk when providing sensitive data or proprietary API keys in a prompt for GitHub Copilot?
  4. How can a developer best mitigate the risk of 'hallucinations' or insecure patterns in AI-generated code?
  5. If GitHub Copilot suggests a function that uses a deprecated or insecure library, what is the most responsible course of action?

Answers and explanations come after you submit.