Microsoft GH-300 Practice Test 12
Question 110
A codebase has generated and hand-edited files; an agent modifies generated output directly. What should be corrected?
- Use plan-oriented interaction to review a proposed approach before implementation.
- Update the authoritative generator or source and regenerate output as required by the repository.
- Run the project tests and review the changed files before accepting the result.
- Review the requested commands and permission approvals before execution.
Explanation
Correct Answer
B:Direct edits to generated artifacts can be lost and create drift.
Incorrect Answers
A:Planning separates design approval from execution in supported clients. direct edits to generated artifacts can be lost and create drift.
C:An agent's completion message does not substitute for execution evidence. Direct edits to generated artifacts can be lost and create drift.
D:Agent tool actions can affect the environment beyond editing text. What should be corrected. Direct edits to generated artifacts can be lost and create drift.
Question 111
A developer expects Copilot to know a file not open, referenced, or indexed. What is the best assumption?
- Provide the necessary file or repository context explicitly rather than assuming complete awareness.
- Specify formats, timezone handling, invalid inputs, and expected return behavior.
- Review editor approval state, working-tree changes, and any tool execution diagnostics.
- Check repository lint configuration and run the prescribed formatter or linter.
Explanation
Correct Answer
A:Copilot's available context depends on product capabilities and selection.
Incorrect Answers
B:A vague natural-language comment leaves many correctness details unspecified. copilot's available context depends on product capabilities and selection.
C:A proposal, an accepted edit, and a committed change are distinct states. copilot's available context depends on product capabilities and selection.
D:Project policies and tool results are stronger evidence than an isolated suggestion. Copilot's available context depends on product capabilities and selection.
Question 112
A completion matches an unrelated utility due to a similar name elsewhere. How can the author improve it?
- Review editor approval state, working-tree changes, and any tool execution diagnostics.
- Check repository lint configuration and run the prescribed formatter or linter.
- Provide the necessary file or repository context explicitly rather than assuming complete awareness.
- Supply the target module, types, and an illustrative call site.
Explanation
Correct Answer
D:Nearby accurate identifiers help distinguish competing implementations.
Incorrect Answers
A:A proposal, an accepted edit, and a committed change are distinct states. nearby accurate identifiers help distinguish competing implementations.
B:Project policies and tool results are stronger evidence than an isolated suggestion. Nearby accurate identifiers help distinguish competing implementations.
C:Copilot's available context depends on product capabilities and selection. How can the author improve it. Nearby accurate identifiers help distinguish competing implementations.
Question 113
A comment says "parse dates" and receives a simplistic implementation. How should the request improve?
- Provide the necessary file or repository context explicitly rather than assuming complete awareness.
- Supply the target module, types, and an illustrative call site.
- Specify formats, timezone handling, invalid inputs, and expected return behavior.
- Review editor approval state, working-tree changes, and any tool execution diagnostics.
Explanation
Correct Answer
C:A vague natural-language comment leaves many correctness details unspecified.
Incorrect Answers
A:Copilot's available context depends on product capabilities and selection. How should the request improve. A vague natural-language comment leaves many correctness details unspecified.
B:Nearby accurate identifiers help distinguish competing implementations. a vague natural-language comment leaves many correctness details unspecified.
D:A proposal, an accepted edit, and a committed change are distinct states. a vague natural-language comment leaves many correctness details unspecified.
Question 114
An IDE recommendation appears inconsistent with existing lint rules. What should guide the developer?
- Provide the necessary file or repository context explicitly rather than assuming complete awareness.
- Supply the target module, types, and an illustrative call site.
- Specify formats, timezone handling, invalid inputs, and expected return behavior.
- Check repository lint configuration and run the prescribed formatter or linter.
Explanation
Correct Answer
D:Project policies and tool results are stronger evidence than an isolated suggestion.
Incorrect Answers
A:Copilot's available context depends on product capabilities and selection. What should guide the developer. Project policies and tool results are stronger evidence than an isolated suggestion.
B:Nearby accurate identifiers help distinguish competing implementations. project policies and tool results are stronger evidence than an isolated suggestion.
C:A vague natural-language comment leaves many correctness details unspecified. Project policies and tool results are stronger evidence than an isolated suggestion.
Question 115
Copilot misinterprets a parser's inputs and proposes a library unsupported by the repository. Which TWO prompt changes will most directly improve the next suggestion? (Select TWO.)
- Trust the suggestion based on syntax highlighting alone.
- Provide the existing dependency manifest and prohibit unapproved imports.
- Include the real data format and representative valid and invalid examples.
- Delete all failing tests before requesting the rewrite.
- Ask only for 'better code' without a specification.
Explanation
Correct Answers
B:Versioned project context constrains library choices.
C:Examples make parser behavior testable.
Incorrect Answers
A:Editor formatting does not establish compatibility.
D:Removing tests destroys evidence of required behavior.
E:An undefined goal invites new assumptions.
Question 116
A terminal says the `copilot` command is not found on a supported workstation. What is a sensible first check?
- Follow the published GitHub installation instructions and verify installer provenance.
- Distinguish the current `copilot` CLI application from older `gh` extension workflows.
- Confirm that GitHub Copilot CLI was installed through a documented method and is on the PATH.
- Diagnose proxy and TLS trust configuration using the official CLI network guidance.
Explanation
Correct Answer
C:A missing executable is an installation or path problem, not a prompt-quality issue.
Incorrect Answers
A:Untrusted shell installers create avoidable supply-chain risk. A missing executable is an installation or path problem, not a prompt-quality issue.
B:Product naming and command syntax can differ by release. a missing executable is an installation or path problem, not a prompt-quality issue.
D:Broken certificate validation should be repaired, not bypassed. What is a sensible first check. A missing executable is an installation or path problem, not a prompt-quality issue.
Question 117
Copilot CLI starts but cannot access an organization-managed entitlement. What should be checked?
- Confirm that GitHub Copilot CLI was installed through a documented method and is on the PATH.
- Distinguish the current `copilot` CLI application from older `gh` extension workflows.
- Diagnose proxy and TLS trust configuration using the official CLI network guidance.
- Authenticate the CLI using the licensed GitHub account and confirm organization policy allows CLI.
Explanation
Correct Answer
D:Account authorization and enterprise feature policy both affect access.
Incorrect Answers
A:A missing executable is an installation or path problem, not a prompt-quality issue. account authorization and enterprise feature policy both affect access.
B:Product naming and command syntax can differ by release. account authorization and enterprise feature policy both affect access.
C:Broken certificate validation should be repaired, not bypassed. What should be checked. Account authorization and enterprise feature policy both affect access.
Question 118
A teammate proposes an unofficial installer script from a paste site for Copilot CLI. What should the team do?
- Confirm that GitHub Copilot CLI was installed through a documented method and is on the PATH.
- Follow the published GitHub installation instructions and verify installer provenance.
- Authenticate the CLI using the licensed GitHub account and confirm organization policy allows CLI.
- Diagnose proxy and TLS trust configuration using the official CLI network guidance.
Explanation
Correct Answer
B:Untrusted shell installers create avoidable supply-chain risk.
Incorrect Answers
A:A missing executable is an installation or path problem, not a prompt-quality issue. untrusted shell installers create avoidable supply-chain risk.
C:Account authorization and enterprise feature policy both affect access. Untrusted shell installers create avoidable supply-chain risk.
D:Broken certificate validation should be repaired, not bypassed. What should the team do. Untrusted shell installers create avoidable supply-chain risk.
Question 119
A developer asks for Copilot CLI while already running a legacy GitHub CLI extension command. What should the author verify?
- Confirm that GitHub Copilot CLI was installed through a documented method and is on the PATH.
- Distinguish the current `copilot` CLI application from older `gh` extension workflows.
- Follow the published GitHub installation instructions and verify installer provenance.
- Authenticate the CLI using the licensed GitHub account and confirm organization policy allows CLI.
Explanation
Correct Answer
B:Product naming and command syntax can differ by release.
Incorrect Answers
A:A missing executable is an installation or path problem, not a prompt-quality issue. product naming and command syntax can differ by release.
C:Untrusted shell installers create avoidable supply-chain risk. product naming and command syntax can differ by release.
D:Account authorization and enterprise feature policy both affect access. Product naming and command syntax can differ by release.
Question 120
A terminal client fails after the company rotates its trusted root certificates. What is relevant?
- Follow the published GitHub installation instructions and verify installer provenance.
- Diagnose proxy and TLS trust configuration using the official CLI network guidance.
- Authenticate the CLI using the licensed GitHub account and confirm organization policy allows CLI.
- Distinguish the current `copilot` CLI application from older `gh` extension workflows.
Explanation
Correct Answer
B:Broken certificate validation should be repaired, not bypassed.
Incorrect Answers
A:Untrusted shell installers create avoidable supply-chain risk. broken certificate validation should be repaired, not bypassed.
C:Account authorization and enterprise feature policy both affect access. Broken certificate validation should be repaired, not bypassed.
D:Product naming and command syntax can differ by release. What is relevant. Broken certificate validation should be repaired, not bypassed.