GITHUB-COPILOT practice question 2 of 15
What types of prompts or code snippets might be flagged by the GitHub Copilot toxicity filter? (Each correct answer presents part of the solution. Choose two.)
Full set: 65 questionsGitHub Copilot incorporates safety systems, including a toxicity filter, to prevent the generation of harmful or offensive content. According to official documentation, these filters are specifically designed to detect and block suggestions that fall into harmful categories. This includes hate speech, discriminatory language, and sexually explicit content. The system analyzes both user prompts and the model's potential suggestions to ensure they do not contain this type of material, aligning with GitHub's responsible AI principles.
C. Code that contains logical errors or produces unexpected results: This relates to code quality and correctness, not content safety. The toxicity filter is not designed to evaluate the functional logic of the code.
D. Code comments containing strong opinions or criticisms: While potentially unprofessional, this is generally not classified as "toxic" unless it crosses the line into harassment or hate speech, which are already covered by other options.
1. GitHub Docs. "Content exclusions for GitHub Copilot." Accessed October 2023. In the section "How does GitHub Copilot work?", the documentation states, "The filters check for specific keywords and topics, including... Hate speech... Self harm... Sexual content... Violent content." This directly supports options A and B.
2. GitHub Docs. "Responsible AI FAQs for GitHub Copilot." Accessed October 2023. This document explains, "To that end, we have built filters to block offensive words in the prompts and to avoid synthesizing suggestions in sensitive contexts. We are also working on a toxicity filter to detect and block generated suggestions that contain hate speech." This directly supports option A.
Keep practicing
Take the free GITHUB-COPILOT practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-COPILOT practice questions
- Question 1What is the best way to share feedback about GitHub Copilot Chat when using it on GitHub …
- Question 3What is the correct way to exclude specific files from being used by GitHub Copilot Busin…
- Question 4How do you generate code suggestions with GitHub Copilot in the CLI?
- Question 5Which principle emphasizes that AI systems should be understandable and provide clear inf…
- Question 6What should developers consider when relying on GitHub Copilot for generating code that i…
- Question 7What is the process behind identifying public code matches when using a public code filte…
