Microsoft GH-300 Practice Test 15
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.
Question 141
A Copilot CLI automation has become stuck repeating the same failed command. What should the operator do?
- Confirm that a suitable authorized remote connection or integration is actually available.
- Stop the sequence, inspect tool errors, and correct the environment before retrying.
- Inspect process exit-code propagation and assertions instead of relying on terminal text.
- Supply a minimal reproducible input and the actual failing command output.
Explanation
Correct Answer
B:Repetition without new evidence does not repair a failing prerequisite.
Incorrect Answers
A:An assistant's planning ability does not imply automatic network privileges. What should the operator do. Repetition without new evidence does not repair a failing prerequisite.
C:Some shell pipelines can mask failures if error handling is incomplete. repetition without new evidence does not repair a failing prerequisite.
D:Debugging must be grounded in an observable failure condition. repetition without new evidence does not repair a failing prerequisite.
Question 142
An agent refactor broke build output but the working tree is uncommitted. What recovery approach fits?
- Confirm that a suitable authorized remote connection or integration is actually available.
- Stop the sequence, inspect tool errors, and correct the environment before retrying.
- Inspect process exit-code propagation and assertions instead of relying on terminal text.
- Inspect the changes and use supported rollback or version-control recovery selectively.
Explanation
Correct Answer
D:Selective reversal protects unrelated work in the working tree.
Incorrect Answers
A:An assistant's planning ability does not imply automatic network privileges. What recovery approach fits. Selective reversal protects unrelated work in the working tree.
B:Repetition without new evidence does not repair a failing prerequisite. Selective reversal protects unrelated work in the working tree.
C:Some shell pipelines can mask failures if error handling is incomplete. selective reversal protects unrelated work in the working tree.
Question 143
A CLI session suggests a fix but cannot reproduce the reported bug. What should the user provide?
- Stop the sequence, inspect tool errors, and correct the environment before retrying.
- Inspect process exit-code propagation and assertions instead of relying on terminal text.
- Inspect the changes and use supported rollback or version-control recovery selectively.
- Supply a minimal reproducible input and the actual failing command output.
Explanation
Correct Answer
D:Debugging must be grounded in an observable failure condition.
Incorrect Answers
A:Repetition without new evidence does not repair a failing prerequisite. Debugging must be grounded in an observable failure condition.
B:Some shell pipelines can mask failures if error handling is incomplete. debugging must be grounded in an observable failure condition.
C:Selective reversal protects unrelated work in the working tree. debugging must be grounded in an observable failure condition.
Question 144
A user expects terminal Copilot to edit a remote server without configuring remote tools. What should be clarified?
- Stop the sequence, inspect tool errors, and correct the environment before retrying.
- Supply a minimal reproducible input and the actual failing command output.
- Confirm that a suitable authorized remote connection or integration is actually available.
- Inspect the changes and use supported rollback or version-control recovery selectively.
Explanation
Correct Answer
C:An assistant's planning ability does not imply automatic network privileges.
Incorrect Answers
A:Repetition without new evidence does not repair a failing prerequisite. An assistant's planning ability does not imply automatic network privileges.
B:Debugging must be grounded in an observable failure condition. What should be clarified. An assistant's planning ability does not imply automatic network privileges.
D:Selective reversal protects unrelated work in the working tree. an assistant's planning ability does not imply automatic network privileges.
Question 145
A Copilot CLI session broke a refactor and then repeatedly reran a failed build. Which TWO recovery steps are appropriate? (Select TWO.)
- Report success solely because the CLI stopped producing output.
- Review the uncommitted diff and selectively revert unintended changes.
- Delete the entire repository to clear the build cache.
- Change global shell settings to ignore every nonzero exit code.
- Inspect the actual compiler error and correct the missing prerequisite before retrying.
Explanation
Correct Answers
B:Selective recovery protects unrelated work in the repository.
E:A repeated failure needs diagnosis rather than blind command repetition.
Incorrect Answers
A:Lack of output is not a validated passing build.
C:Destruction is disproportionate to a build error.
D:Suppressing failures makes debugging and CI unreliable.
Question 146
A task requires editing several modules and executing tests in an IDE. Which capability can coordinate steps?
- Check documented subagent limits and avoid assuming unlimited delegation depth.
- Inspect the committed diff and relevant test output before considering the task resolved.
- Use a supported agent mode with reviewed tool approvals and test execution.
- Keep authorized repository checks and human or configured approval conditions intact.
Explanation
Correct Answer
C:Agent workflows combine planning, file edits, and tools for multi-step work.
Incorrect Answers
A:Agent orchestration has platform-specific context and nesting restrictions. Which capability can coordinate steps. Agent workflows combine planning, file edits, and tools for multi-step work.
B:Completion claims need traceable change artifacts and validation. Agent workflows combine planning, file edits, and tools for multi-step work.
D:Delegation does not bypass repository ownership controls. agent workflows combine planning, file edits, and tools for multi-step work.
Question 147
A developer wants an isolated investigation of a dependency graph without polluting main chat. What can help?
- Delegate a bounded research subtask to an available subagent.
- Keep authorized repository checks and human or configured approval conditions intact.
- Inspect the committed diff and relevant test output before considering the task resolved.
- Use a supported agent mode with reviewed tool approvals and test execution.
Explanation
Correct Answer
A:Subagents maintain separate context and return results to their parent session.
Incorrect Answers
B:Delegation does not bypass repository ownership controls. subagents maintain separate context and return results to their parent session.
C:Completion claims need traceable change artifacts and validation. Subagents maintain separate context and return results to their parent session.
D:Agent workflows combine planning, file edits, and tools for multi-step work. subagents maintain separate context and return results to their parent session.
Question 148
An agent asks to delegate a job that itself creates multiple nested agents. What should be verified?
- Delegate a bounded research subtask to an available subagent.
- Inspect the committed diff and relevant test output before considering the task resolved.
- Use a supported agent mode with reviewed tool approvals and test execution.
- Check documented subagent limits and avoid assuming unlimited delegation depth.
Explanation
Correct Answer
D:Agent orchestration has platform-specific context and nesting restrictions.
Incorrect Answers
A:Subagents maintain separate context and return results to their parent session. What should be verified. Agent orchestration has platform-specific context and nesting restrictions.
B:Completion claims need traceable change artifacts and validation. Agent orchestration has platform-specific context and nesting restrictions.
C:Agent workflows combine planning, file edits, and tools for multi-step work. agent orchestration has platform-specific context and nesting restrictions.
Question 149
A coding agent is asked to close an issue and merge a PR without review gates. What must remain?
- Check documented subagent limits and avoid assuming unlimited delegation depth.
- Delegate a bounded research subtask to an available subagent.
- Use a supported agent mode with reviewed tool approvals and test execution.
- Keep authorized repository checks and human or configured approval conditions intact.
Explanation
Correct Answer
D:Delegation does not bypass repository ownership controls.
Incorrect Answers
A:Agent orchestration has platform-specific context and nesting restrictions. delegation does not bypass repository ownership controls.
B:Subagents maintain separate context and return results to their parent session. What must remain. Delegation does not bypass repository ownership controls.
C:Agent workflows combine planning, file edits, and tools for multi-step work. delegation does not bypass repository ownership controls.
Question 150
An agent reports that an issue is resolved without a test or linked patch. What evidence is needed?
- Delegate a bounded research subtask to an available subagent.
- Inspect the committed diff and relevant test output before considering the task resolved.
- Keep authorized repository checks and human or configured approval conditions intact.
- Check documented subagent limits and avoid assuming unlimited delegation depth.
Explanation
Correct Answer
B:Completion claims need traceable change artifacts and validation.
Incorrect Answers
A:Subagents maintain separate context and return results to their parent session. What evidence is needed. Completion claims need traceable change artifacts and validation.
C:Delegation does not bypass repository ownership controls. Completion claims need traceable change artifacts and validation.
D:Agent orchestration has platform-specific context and nesting restrictions. completion claims need traceable change artifacts and validation.