Microsoft GH-300 Practice Test 32
Question 310
A service must run offline and must not add dependencies, but Copilot suggests a cloud API and a new package. Which TWO restrictions belong in the prompt? (Select TWO.)
- Permit the model to choose any runtime it prefers.
- Delete all integration tests before regenerating the solution.
- State that the implementation cannot make external network requests.
- Say only 'make this reliable' with no execution constraints.
- Restrict implementation to the standard library and existing declared packages.
Explanation
Correct Answers
C:Offline operation rules out cloud API calls.
E:Dependency constraints prevent unapproved imports.
Incorrect Answers
A:Arbitrary environment changes do not meet the deployed contract.
B:Removing tests destroys verification of requirements.
D:Vague quality words do not define the forbidden behavior.
Question 311
A developer wants a short explanation for a junior teammate but gets unexplained acronyms. How should the prompt change?
- Ask for behavior and risks in plain language without internal implementation trivia.
- State the audience and request concise definitions and a concrete example.
- Require only schema-valid configuration with no Markdown commentary.
- Request stages with preconditions, checkpoints, rollback options, and irreversible warnings.
Explanation
Correct Answer
B:Audience context influences the depth of the response.
Incorrect Answers
A:Clear audience targeting improves practical usefulness. audience context influences the depth of the response.
C:Extra prose can break machine parsing. audience context influences the depth of the response.
D:Operator-oriented formatting helps prevent unsafe execution. Audience context influences the depth of the response.
Question 312
An API reviewer needs a security checklist, but Copilot supplies an essay. What should be specified?
- State the audience and request concise definitions and a concrete example.
- Request categorized checks with acceptance evidence for each criterion.
- Request stages with preconditions, checkpoints, rollback options, and irreversible warnings.
- Ask for behavior and risks in plain language without internal implementation trivia.
Explanation
Correct Answer
B:Structured output is easier to verify against a review gate.
Incorrect Answers
A:Audience context influences the depth of the response. What should be specified. Structured output is easier to verify against a review gate.
C:Operator-oriented formatting helps prevent unsafe execution. Structured output is easier to verify against a review gate.
D:Clear audience targeting improves practical usefulness. structured output is easier to verify against a review gate.
Question 313
A CI tool consumes a Copilot-generated configuration. What output instruction matters?
- State the audience and request concise definitions and a concrete example.
- Ask for behavior and risks in plain language without internal implementation trivia.
- Request categorized checks with acceptance evidence for each criterion.
- Require only schema-valid configuration with no Markdown commentary.
Explanation
Correct Answer
D:Extra prose can break machine parsing.
Incorrect Answers
A:Audience context influences the depth of the response. What output instruction matters. Extra prose can break machine parsing.
B:Clear audience targeting improves practical usefulness. extra prose can break machine parsing.
C:Structured output is easier to verify against a review gate. extra prose can break machine parsing.
Question 314
A migration runbook must separate reversible and irreversible steps. How should the task be framed?
- State the audience and request concise definitions and a concrete example.
- Request categorized checks with acceptance evidence for each criterion.
- Require only schema-valid configuration with no Markdown commentary.
- Request stages with preconditions, checkpoints, rollback options, and irreversible warnings.
Explanation
Correct Answer
D:Operator-oriented formatting helps prevent unsafe execution.
Incorrect Answers
A:Audience context influences the depth of the response. How should the task be framed. Operator-oriented formatting helps prevent unsafe execution.
B:Structured output is easier to verify against a review gate. operator-oriented formatting helps prevent unsafe execution.
C:Extra prose can break machine parsing. Operator-oriented formatting helps prevent unsafe execution.
Question 315
A code explanation must be accessible to a nontechnical stakeholder. What should be requested?
- Ask for behavior and risks in plain language without internal implementation trivia.
- Request stages with preconditions, checkpoints, rollback options, and irreversible warnings.
- Require only schema-valid configuration with no Markdown commentary.
- Request categorized checks with acceptance evidence for each criterion.
Explanation
Correct Answer
A:Clear audience targeting improves practical usefulness.
Incorrect Answers
B:Operator-oriented formatting helps prevent unsafe execution. clear audience targeting improves practical usefulness.
C:Extra prose can break machine parsing. Clear audience targeting improves practical usefulness.
D:Structured output is easier to verify against a review gate. clear audience targeting improves practical usefulness.
Question 316
Copilot receives a request to rewrite authentication, storage, deployment, and billing together. What should the user do?
- Specify the exact failing branch and instruct preservation of unrelated code.
- Divide the work into independently testable bounded tasks with interfaces.
- Resolve the competing requirements with the owner before generating code.
- Plan incremental migration steps with rollback and validation at each cutover.
Explanation
Correct Answer
B:Smaller scopes reduce contextual confusion and make changes auditable.
Incorrect Answers
A:Focused edits reduce unintended behavior changes. smaller scopes reduce contextual confusion and make changes auditable.
C:An assistant cannot infer which contradictory contract has authority. Smaller scopes reduce contextual confusion and make changes auditable.
D:Breaking changes into verifiable stages reduces deployment risk. What should the user do. Smaller scopes reduce contextual confusion and make changes auditable.
Question 317
A bug report mixes a UI alignment issue and an API authorization failure. What is a better approach?
- Separate the issues and prioritize the security-critical API failure.
- Divide the work into independently testable bounded tasks with interfaces.
- Specify the exact failing branch and instruct preservation of unrelated code.
- Plan incremental migration steps with rollback and validation at each cutover.
Explanation
Correct Answer
A:Unrelated causes require different context and acceptance tests.
Incorrect Answers
B:Smaller scopes reduce contextual confusion and make changes auditable. unrelated causes require different context and acceptance tests.
C:Focused edits reduce unintended behavior changes. unrelated causes require different context and acceptance tests.
D:Breaking changes into verifiable stages reduces deployment risk. What is a better approach. Unrelated causes require different context and acceptance tests.
Question 318
A prompt contains three conflicting definitions of success. What is the correct first step?
- Separate the issues and prioritize the security-critical API failure.
- Resolve the competing requirements with the owner before generating code.
- Plan incremental migration steps with rollback and validation at each cutover.
- Divide the work into independently testable bounded tasks with interfaces.
Explanation
Correct Answer
B:An assistant cannot infer which contradictory contract has authority.
Incorrect Answers
A:Unrelated causes require different context and acceptance tests. An assistant cannot infer which contradictory contract has authority.
C:Breaking changes into verifiable stages reduces deployment risk. What is the correct first step. An assistant cannot infer which contradictory contract has authority.
D:Smaller scopes reduce contextual confusion and make changes auditable. an assistant cannot infer which contradictory contract has authority.
Question 319
A model produces a broad rewrite when a targeted null check was needed. How should the follow-up narrow scope?
- Resolve the competing requirements with the owner before generating code.
- Specify the exact failing branch and instruct preservation of unrelated code.
- Divide the work into independently testable bounded tasks with interfaces.
- Separate the issues and prioritize the security-critical API failure.
Explanation
Correct Answer
B:Focused edits reduce unintended behavior changes.
Incorrect Answers
A:An assistant cannot infer which contradictory contract has authority. focused edits reduce unintended behavior changes.
C:Smaller scopes reduce contextual confusion and make changes auditable. focused edits reduce unintended behavior changes.
D:Unrelated causes require different context and acceptance tests. Focused edits reduce unintended behavior changes.
Question 320
A team is converting a legacy service while needing continuous availability. What task structure helps?
- Specify the exact failing branch and instruct preservation of unrelated code.
- Resolve the competing requirements with the owner before generating code.
- Plan incremental migration steps with rollback and validation at each cutover.
- Separate the issues and prioritize the security-critical API failure.
Explanation
Correct Answer
C:Breaking changes into verifiable stages reduces deployment risk.
Incorrect Answers
A:Focused edits reduce unintended behavior changes. What task structure helps. Breaking changes into verifiable stages reduces deployment risk.
B:An assistant cannot infer which contradictory contract has authority. breaking changes into verifiable stages reduces deployment risk.
D:Unrelated causes require different context and acceptance tests. Breaking changes into verifiable stages reduces deployment risk.