AMAADOR ACADEMYالشهاداتالتحقق من شهادة

GH300

الاختبار النهائي — التحضير لامتحان GitHub Copilot ‏(GH‑300)

أجب عن الأسئلة الـ44. تحتاج إلى 80% أو أكثر للنجاح. يمكنك إعادة المحاولة كلما أردت.

هذا الاختبار النهائي متاح بـالإنجليزية.

ادرس الدورة ←

السؤال 1What score is required to pass Exam GH-300?
السؤال 2Which GH-300 domain carries the highest weight in the skills measured as of 7 August 2026?
السؤال 3A junior developer accepts a 60-line function from Copilot, sees that it compiles and opens a pull request without running tests, saying “Copilot is trained on millions of repositories”. What is the main responsible AI concern?
السؤال 4Copilot generates sample customer records for a demo. All names are typical of one country and all job titles for women are assistants. Which responsible AI principle is most at stake?
السؤال 5Your team lead wants to drop human code review for pull requests written mostly by Copilot to ship faster. What is the responsible response?
السؤال 6Which statement best describes a limitation of generative AI tools such as Copilot?
السؤال 7A developer wants Copilot to rename a function and update every call site across six files, then show each change as a diff to approve, without running any commands. Which mode fits best?
السؤال 8In VS Code, which key accepts the whole inline suggestion shown as ghost text?
السؤال 9You select a confusing regular expression in your editor and want a plain-language breakdown without leaving the file. What is the quickest option?
السؤال 10In Copilot Chat, what does the “@” prefix (for example @terminal or @workspace) select?
السؤال 11After a long chat about database indexes, a developer asks about CSS layout and gets answers mentioning indexes. What should they do?
السؤال 12What do next edit suggestions add compared with classic inline suggestions?
السؤال 13Which command installs GitHub Copilot CLI with npm?
السؤال 14A DevOps engineer wants a pipeline step that asks Copilot CLI one question about a log file and then exits. Which approach is correct?
السؤال 15A developer starts Copilot CLI with --allow-tool 'shell' and --deny-tool 'shell(rm)'. The agent tries to run rm on a temp folder. What happens?
السؤال 16What is the Model Context Protocol (MCP) used for with Copilot?
السؤال 17A team assigns a well-scoped bug issue to Copilot. An hour later there is a draft pull request from Copilot. The repository requires one approval. What is the correct next step?
السؤال 18During a large refactor in agent mode, the main conversation keeps running out of context because the agent reads many files to research logging. What feature addresses this?
السؤال 19What kind of review does Copilot code review submit on a pull request?
السؤال 20A repository has front-end and back-end code. The team wants special review rules only for TypeScript files under /web. What should they create?
السؤال 21A team lead wants new hires to ask questions that are answered from the payment service repository, its design document and two key issues, all in one shareable place. Which feature fits?
السؤال 22What is GitHub Spark designed for?
السؤال 23Developers repeatedly ask Copilot Chat to “create a React component with a test and a story” and get inconsistent layouts. What gives consistent results with the least effort?
السؤال 24In the Copilot suggestion lifecycle, what happens in the proxy before the prompt reaches the model?
السؤال 25Copilot keeps suggesting a deprecated method from version 2 of a library, but the project uses version 5. What explains this and what helps most?
السؤال 26Which data does Copilot typically gather as context for an inline suggestion in the IDE?
السؤال 27A security officer asks whether code from your Copilot Business organization is used to train GitHub’s models. What is the accurate answer?
السؤال 28The same chat prompt gives two different but valid implementations on two attempts. A colleague says Copilot is broken. What is the best explanation?
السؤال 29Which prompt is an example of few-shot prompting?
السؤال 30A developer writes one prompt: “Build the login page, add rate limiting, write the tests and update the docs.” The answer is shallow on every point. Which prompt principle was broken?
السؤال 31Copilot’s inline suggestions in a new file data.py are generic. The file is empty and named data.py. Which change will most improve suggestions under the “Surround” principle?
السؤال 32How does chat history affect Copilot Chat responses?
السؤال 33You want Copilot to focus a review on security only. Which prompt follows good prompt engineering practice?
السؤال 34A team must migrate a COBOL batch program to Java. Which sequence uses Copilot most safely?
السؤال 35Which slash command generates documentation comments for selected code in VS Code?
السؤال 36Copilot generated unit tests for a date-range function, and they cover only typical dates. What should you ask for next?
السؤال 37Copilot suggests building a SQL query with string concatenation from user input. What should the developer do?
السؤال 38Which is the main productivity benefit described as “reducing context switching”?
السؤال 39An enterprise owner sets the Copilot CLI policy to Disabled at enterprise level. An organization owner wants to enable it for one organization. What happens?
السؤال 40Which audit log search shows Copilot plan and seat events in an organization?
السؤال 41An admin removes a user’s Copilot seat with DELETE /orgs/{org}/copilot/billing/selected_users. The user still has Copilot the next day. Why?
السؤال 42A repository admin wants Copilot to ignore every file named .env anywhere in the repository. Which content exclusion path does that?
السؤال 43A security team says: “We excluded /secrets/** from Copilot, so those credentials are now protected.” What is the best reply?
السؤال 44With the public code policy set to Allowed, a developer sees a chat answer with a reference to a public repository under the MIT licence. What should they do?