
GitHubCopilot Certification
Domain 5Objective 2
Support Testing and Security GH-300 Practice Questions (Page 3)
Part of the Improve developer productivity with GitHub Copilot domain, which accounts for 10-15% of the GH-300 exam.
23questions here
5free pages
6concepts
10-15%of the exam
Questions 11–15
- 11
What is the key difference between a unit test and an integration test?
Select an answer first - 12
A developer is reviewing a function that reads a file from disk and processes its contents. The function does not close the file handle after reading. What security or performance issue should Copilot flag?
Select an answer first - 13
A developer is using Copilot to write a unit test for a function that returns the sum of an array of numbers. The function should return 0 for an empty array. Which assertion is the clearest and most appropriate for this test?
Select an answer first - 14
A developer is reviewing a web application that allows users to upload profile pictures. The application stores the files on the server and serves them back to users. The developer asks Copilot for security and performance improvements. The application currently has no file size limit and serves files directly from the upload directory. Which combined recommendation addresses both security and performance concerns?
Select an answer first - 15
A developer is using Copilot to generate tests for a function that divides two numbers. The function is documented to throw an error when the divisor is zero. The developer wants to ensure the test suite covers the most critical edge cases. Which set of test cases is the most comprehensive?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GitHub. “GH-300” is a trademark of its owner, used for identification only.