Microsoft GH-300 Practice Test 14
Question 130
Copilot CLI finishes a refactor but has not shown which files changed. What should the developer inspect?
- Sanitize the log and include the relevant error lines and build configuration.
- Prefer the least-privileged supported installation method and review the side effects.
- Review version-control status and the complete diff, then execute the project checks.
- Request syntax compatible with the actual shell and operating system.
Explanation
Correct Answer
C:Tool execution cannot be considered correct merely because the session ended.
Incorrect Answers
A:Debugging does not require exposing credentials to the assistant. What should the developer inspect. Tool execution cannot be considered correct merely because the session ended.
B:Elevated execution widens the consequences of a bad command. Tool execution cannot be considered correct merely because the session ended.
D:Terminal commands vary across shells and platforms. tool execution cannot be considered correct merely because the session ended.
Question 131
A Copilot CLI prompt tries to run a destructive command outside the repository. What should be done?
- Deny the tool action and restrict permitted filesystem and command scope.
- Treat the output as data and decline any instruction to expand tool permissions.
- Apply a narrowly scoped allow rule only if organizational policy permits it.
- Preserve explicit approval for sensitive paths and destructive edits.
Explanation
Correct Answer
A:Agent permissions must be narrower than arbitrary generated requests.
Incorrect Answers
B:Untrusted tool text cannot legitimately override the user's approval boundary. agent permissions must be narrower than arbitrary generated requests.
C:Per-command approvals can be streamlined without authorizing all shell operations. agent permissions must be narrower than arbitrary generated requests.
D:Blanket authorization makes malicious or mistaken changes easier. Agent permissions must be narrower than arbitrary generated requests.
Question 132
A developer wants Copilot CLI to call an external issue tracker through a tool. What should be verified first?
- Treat the output as data and decline any instruction to expand tool permissions.
- Deny the tool action and restrict permitted filesystem and command scope.
- Configure an approved integration and scope its credentials to the necessary operations.
- Preserve explicit approval for sensitive paths and destructive edits.
Explanation
Correct Answer
C:Tool connections can expose private content or modify external systems.
Incorrect Answers
A:Untrusted tool text cannot legitimately override the user's approval boundary. tool connections can expose private content or modify external systems.
B:Agent permissions must be narrower than arbitrary generated requests. What should be verified first. Tool connections can expose private content or modify external systems.
D:Blanket authorization makes malicious or mistaken changes easier. Tool connections can expose private content or modify external systems.
Question 133
The agent repeatedly prompts to execute the same safe read-only test command. What can improve workflow?
- Configure an approved integration and scope its credentials to the necessary operations.
- Treat the output as data and decline any instruction to expand tool permissions.
- Apply a narrowly scoped allow rule only if organizational policy permits it.
- Deny the tool action and restrict permitted filesystem and command scope.
Explanation
Correct Answer
C:Per-command approvals can be streamlined without authorizing all shell operations.
Incorrect Answers
A:Tool connections can expose private content or modify external systems. per-command approvals can be streamlined without authorizing all shell operations.
B:Untrusted tool text cannot legitimately override the user's approval boundary. per-command approvals can be streamlined without authorizing all shell operations.
D:Agent permissions must be narrower than arbitrary generated requests. What can improve workflow. Per-command approvals can be streamlined without authorizing all shell operations.
Question 134
A team proposes globally allowing all filesystem writes to avoid CLI prompts. What is the risk?
- Apply a narrowly scoped allow rule only if organizational policy permits it.
- Preserve explicit approval for sensitive paths and destructive edits.
- Deny the tool action and restrict permitted filesystem and command scope.
- Configure an approved integration and scope its credentials to the necessary operations.
Explanation
Correct Answer
B:Blanket authorization makes malicious or mistaken changes easier.
Incorrect Answers
A:Per-command approvals can be streamlined without authorizing all shell operations. Blanket authorization makes malicious or mistaken changes easier.
C:Agent permissions must be narrower than arbitrary generated requests. What is the risk. Blanket authorization makes malicious or mistaken changes easier.
D:Tool connections can expose private content or modify external systems. blanket authorization makes malicious or mistaken changes easier.
Question 135
A Copilot CLI agent needs to read a repository and call one internal status API, but it asks for machine-wide file access and an admin token. Which TWO controls are appropriate? (Select TWO.)
- Restrict the filesystem grant to the authorized repository and test artifacts.
- Connect the API through a vetted tool with least-privileged credentials.
- Treat external tool output as a higher-priority security policy.
- Give the agent the admin token because the API name sounds legitimate.
- Disable command approval for all subsequent destructive operations.
Explanation
Correct Answers
A:Scoped access limits what the agent can read or modify.
B:Narrow MCP or other tool scopes prevent unnecessary administrator access.
Incorrect Answers
C:Tool text cannot rewrite authorization boundaries.
D:A tool request is not proof that broad permission is required.
E:Blanket approval exposes unrelated resources.
Question 136
A team regularly asks Copilot CLI to follow its test-run sequence. What may improve consistency?
- Remove the secrets and reference approved credential stores or environment setup.
- Configure a supported language server or code-intelligence tool rather than granting broad shell access.
- Review currently supported model and tool capabilities for that CLI version.
- Add a scoped agent skill or custom instruction referencing the approved test workflow.
Explanation
Correct Answer
D:Reusable task guidance supplies consistent context to repeated sessions.
Incorrect Answers
A:Persistent customization files can become unintended disclosure channels. What may improve consistency. Reusable task guidance supplies consistent context to repeated sessions.
B:Structured symbols can improve navigation without unrestricted commands. reusable task guidance supplies consistent context to repeated sessions.
C:Model availability and tool support can change by account and release. Reusable task guidance supplies consistent context to repeated sessions.
Question 137
A developer needs structured access to an internal API for a CLI task. What mechanism should they evaluate?
- Add an approved Model Context Protocol server with narrowly scoped tools.
- Add a scoped agent skill or custom instruction referencing the approved test workflow.
- Remove the secrets and reference approved credential stores or environment setup.
- Configure a supported language server or code-intelligence tool rather than granting broad shell access.
Explanation
Correct Answer
A:MCP exposes explicit tools while requiring separate trust and permission controls.
Incorrect Answers
B:Reusable task guidance supplies consistent context to repeated sessions. mCP exposes explicit tools while requiring separate trust and permission controls.
C:Persistent customization files can become unintended disclosure channels. What mechanism should they evaluate. MCP exposes explicit tools while requiring separate trust and permission controls.
D:Structured symbols can improve navigation without unrestricted commands. mCP exposes explicit tools while requiring separate trust and permission controls.
Question 138
A Copilot CLI conversation chooses a model that cannot run a needed tool. What should the engineer check?
- Review currently supported model and tool capabilities for that CLI version.
- Add a scoped agent skill or custom instruction referencing the approved test workflow.
- Add an approved Model Context Protocol server with narrowly scoped tools.
- Remove the secrets and reference approved credential stores or environment setup.
Explanation
Correct Answer
A:Model availability and tool support can change by account and release.
Incorrect Answers
B:Reusable task guidance supplies consistent context to repeated sessions. model availability and tool support can change by account and release.
C:MCP exposes explicit tools while requiring separate trust and permission controls. Model availability and tool support can change by account and release.
D:Persistent customization files can become unintended disclosure channels. What should the engineer check. Model availability and tool support can change by account and release.
Question 139
A team needs a read-only code intelligence source inside the terminal assistant. What integration is relevant?
- Review currently supported model and tool capabilities for that CLI version.
- Add an approved Model Context Protocol server with narrowly scoped tools.
- Add a scoped agent skill or custom instruction referencing the approved test workflow.
- Configure a supported language server or code-intelligence tool rather than granting broad shell access.
Explanation
Correct Answer
D:Structured symbols can improve navigation without unrestricted commands.
Incorrect Answers
A:Model availability and tool support can change by account and release. structured symbols can improve navigation without unrestricted commands.
B:MCP exposes explicit tools while requiring separate trust and permission controls. Structured symbols can improve navigation without unrestricted commands.
C:Reusable task guidance supplies consistent context to repeated sessions. structured symbols can improve navigation without unrestricted commands.
Question 140
A developer creates a CLI instruction file containing production secrets. What should be fixed?
- Configure a supported language server or code-intelligence tool rather than granting broad shell access.
- Review currently supported model and tool capabilities for that CLI version.
- Remove the secrets and reference approved credential stores or environment setup.
- Add an approved Model Context Protocol server with narrowly scoped tools.
Explanation
Correct Answer
C:Persistent customization files can become unintended disclosure channels.
Incorrect Answers
A:Structured symbols can improve navigation without unrestricted commands. What should be fixed. Persistent customization files can become unintended disclosure channels.
B:Model availability and tool support can change by account and release. persistent customization files can become unintended disclosure channels.
D:MCP exposes explicit tools while requiring separate trust and permission controls. Persistent customization files can become unintended disclosure channels.