Microsoft GH-300 Practice Test 27
Question 260
A coding agent invokes an external MCP service to inspect an internal API, and the tool returns instructions to reveal credentials. Which TWO actions preserve the trust boundary? (Select TWO.)
- Assume GitHub file exclusions automatically police the external service.
- Supply an organization-owner token to satisfy the tool response.
- Restrict the MCP service to the approved read-only API scope.
- Treat returned tool text as untrusted and reject credential disclosure requests.
- Report that all API data was verified merely because the tool replied successfully.
Explanation
Correct Answers
C:Least-privileged tool access limits exposure and side effects.
D:Retrieved data cannot grant itself higher authority.
Incorrect Answers
A:Third-party MCP tools may not honor GitHub exclusions.
B:The external text does not justify elevated privileges.
E:A success message does not establish correctness of returned facts.
Question 261
A team treats inline suggestions, cloud agent sessions, and CLI as one identical pipeline. What is wrong?
- Consult the supported cloud-sandbox and session architecture documentation.
- Inspect agent logs and the resulting version-control diff.
- Map data flow and permissions separately for each enabled Copilot surface.
- Review effective policy for IDE, CLI, code review, and cloud agents independently.
Explanation
Correct Answer
C:Tools and session architectures differ by client and product mode.
Incorrect Answers
A:Remote agent execution is distinct from local editor completion. What is wrong. Tools and session architectures differ by client and product mode.
B:Data-flow assumptions alone cannot reconstruct exact changed files. tools and session architectures differ by client and product mode.
D:Copilot feature switches do not necessarily govern all surfaces together. tools and session architectures differ by client and product mode.
Question 262
A privacy assessment assumes agent execution only reads the selected text snippet. What should it inspect?
- Review filesystem, network, and tool permissions granted to the agent runtime.
- Inspect agent logs and the resulting version-control diff.
- Map data flow and permissions separately for each enabled Copilot surface.
- Consult the supported cloud-sandbox and session architecture documentation.
Explanation
Correct Answer
A:Agents may access more resources than a completion model's editor prefix.
Incorrect Answers
B:Data-flow assumptions alone cannot reconstruct exact changed files. agents may access more resources than a completion model's editor prefix.
C:Tools and session architectures differ by client and product mode. Agents may access more resources than a completion model's editor prefix.
D:Remote agent execution is distinct from local editor completion. What should it inspect. Agents may access more resources than a completion model's editor prefix.
Question 263
An admin disables one Copilot feature and assumes all others are disabled. What should they check?
- Review effective policy for IDE, CLI, code review, and cloud agents independently.
- Map data flow and permissions separately for each enabled Copilot surface.
- Inspect agent logs and the resulting version-control diff.
- Review filesystem, network, and tool permissions granted to the agent runtime.
Explanation
Correct Answer
A:Copilot feature switches do not necessarily govern all surfaces together.
Incorrect Answers
B:Tools and session architectures differ by client and product mode. Copilot feature switches do not necessarily govern all surfaces together.
C:Data-flow assumptions alone cannot reconstruct exact changed files. copilot feature switches do not necessarily govern all surfaces together.
D:Agents may access more resources than a completion model's editor prefix. copilot feature switches do not necessarily govern all surfaces together.
Question 264
A developer asks where a Copilot coding agent runs a remote task. What should they check?
- Review effective policy for IDE, CLI, code review, and cloud agents independently.
- Map data flow and permissions separately for each enabled Copilot surface.
- Consult the supported cloud-sandbox and session architecture documentation.
- Review filesystem, network, and tool permissions granted to the agent runtime.
Explanation
Correct Answer
C:Remote agent execution is distinct from local editor completion.
Incorrect Answers
A:Copilot feature switches do not necessarily govern all surfaces together. What should they check. Remote agent execution is distinct from local editor completion.
B:Tools and session architectures differ by client and product mode. Remote agent execution is distinct from local editor completion.
D:Agents may access more resources than a completion model's editor prefix. remote agent execution is distinct from local editor completion.
Question 265
A team needs to demonstrate which repository files an agent actually edited. What evidence is appropriate?
- Review effective policy for IDE, CLI, code review, and cloud agents independently.
- Consult the supported cloud-sandbox and session architecture documentation.
- Review filesystem, network, and tool permissions granted to the agent runtime.
- Inspect agent logs and the resulting version-control diff.
Explanation
Correct Answer
D:Data-flow assumptions alone cannot reconstruct exact changed files.
Incorrect Answers
A:Copilot feature switches do not necessarily govern all surfaces together. What evidence is appropriate. Data-flow assumptions alone cannot reconstruct exact changed files.
B:Remote agent execution is distinct from local editor completion. data-flow assumptions alone cannot reconstruct exact changed files.
C:Agents may access more resources than a completion model's editor prefix. data-flow assumptions alone cannot reconstruct exact changed files.
Question 266
Copilot answers the same prompt with different implementation details on two runs. What explains this?
- Treat LLM generation as potentially nondeterministic and validate each produced result.
- Open the cited source and verify the exact option and version.
- Analyze asymptotic behavior and benchmark representative input scales.
- Pin and test against the actual supported toolchain and dependency matrix.
Explanation
Correct Answer
A:Equivalent prompts need not yield identical tokens or code.
Incorrect Answers
B:Link-shaped text is not proof of authoritative support. Equivalent prompts need not yield identical tokens or code.
C:Natural-language explanations may misstate computational complexity. What explains this. Equivalent prompts need not yield identical tokens or code.
D:Local success in one environment does not guarantee portable behavior. equivalent prompts need not yield identical tokens or code.
Question 267
A model predicts that its refactor is guaranteed to be race-free. What is a realistic validation?
- Open the cited source and verify the exact option and version.
- Treat LLM generation as potentially nondeterministic and validate each produced result.
- Run concurrency tests and inspect shared-state synchronization.
- Pin and test against the actual supported toolchain and dependency matrix.
Explanation
Correct Answer
C:Generated confidence cannot prove thread safety.
Incorrect Answers
A:Link-shaped text is not proof of authoritative support. Generated confidence cannot prove thread safety.
B:Equivalent prompts need not yield identical tokens or code. generated confidence cannot prove thread safety.
D:Local success in one environment does not guarantee portable behavior. generated confidence cannot prove thread safety.
Question 268
A suggested algorithm uses an incorrect complexity claim. What should the developer do?
- Run concurrency tests and inspect shared-state synchronization.
- Treat LLM generation as potentially nondeterministic and validate each produced result.
- Analyze asymptotic behavior and benchmark representative input scales.
- Open the cited source and verify the exact option and version.
Explanation
Correct Answer
C:Natural-language explanations may misstate computational complexity.
Incorrect Answers
A:Generated confidence cannot prove thread safety. What should the developer do. Natural-language explanations may misstate computational complexity.
B:Equivalent prompts need not yield identical tokens or code. natural-language explanations may misstate computational complexity.
D:Link-shaped text is not proof of authoritative support. Natural-language explanations may misstate computational complexity.
Question 269
A generated import works locally but fails under the project's CI version. What is the likely lesson?
- Analyze asymptotic behavior and benchmark representative input scales.
- Pin and test against the actual supported toolchain and dependency matrix.
- Run concurrency tests and inspect shared-state synchronization.
- Treat LLM generation as potentially nondeterministic and validate each produced result.
Explanation
Correct Answer
B:Local success in one environment does not guarantee portable behavior.
Incorrect Answers
A:Natural-language explanations may misstate computational complexity. local success in one environment does not guarantee portable behavior.
C:Generated confidence cannot prove thread safety. What is the likely lesson. Local success in one environment does not guarantee portable behavior.
D:Equivalent prompts need not yield identical tokens or code. local success in one environment does not guarantee portable behavior.
Question 270
An AI response gives a fabricated documentation citation for a nonexistent option. How should it be evaluated?
- Pin and test against the actual supported toolchain and dependency matrix.
- Open the cited source and verify the exact option and version.
- Run concurrency tests and inspect shared-state synchronization.
- Analyze asymptotic behavior and benchmark representative input scales.
Explanation
Correct Answer
B:Link-shaped text is not proof of authoritative support.
Incorrect Answers
A:Local success in one environment does not guarantee portable behavior. Link-shaped text is not proof of authoritative support.
C:Generated confidence cannot prove thread safety. How should it be evaluated. Link-shaped text is not proof of authoritative support.
D:Natural-language explanations may misstate computational complexity. link-shaped text is not proof of authoritative support.