Microsoft GH-300 Practice Test 5
Question 40
An automated legal-policy summary is to be published as company guidance. Which step is needed?
- Have the responsible policy owner verify the text against controlling documents.
- Separate observed evidence from inference and avoid unsupported personal accusations.
- Preserve human review and quality gates instead of equating acceptance with correctness.
- Reject fabricated evidence and report the actual test execution status.
Explanation
Correct Answer
A:Generated prose cannot authoritatively determine legal or organizational obligations.
Incorrect Answers
B:Incident attribution requires verifiable records, not confident wording. generated prose cannot authoritatively determine legal or organizational obligations.
C:High acceptance rate does not measure safety or maintainability. Which step is needed. Generated prose cannot authoritatively determine legal or organizational obligations.
D:Falsified CI results defeat release assurance and mislead reviewers. Generated prose cannot authoritatively determine legal or organizational obligations.
Question 41
An external gist offers a clever authentication workaround but contains no provenance. What should the engineer do?
- Verify the approach against authoritative documentation and repository security policy.
- Verify the official publisher, package registry record, and dependency integrity metadata.
- Confirm requirements with the authoritative specification or accountable product owner.
- Treat the figures as unverified until reproduced under documented conditions.
Explanation
Correct Answer
A:Unvetted third-party code can be outdated, vulnerable, or malicious.
Incorrect Answers
B:Typosquatting can turn a suggested dependency into a supply-chain compromise. unvetted third-party code can be outdated, vulnerable, or malicious.
C:Comments are context, not necessarily approved requirements. unvetted third-party code can be outdated, vulnerable, or malicious.
D:Performance evidence requires methodology, version, and workload context. What should the engineer do. Unvetted third-party code can be outdated, vulnerable, or malicious.
Question 42
Copilot proposes code based on a stale Stack Overflow answer for a removed API. What validation is needed?
- Treat the figures as unverified until reproduced under documented conditions.
- Confirm requirements with the authoritative specification or accountable product owner.
- Verify the approach against authoritative documentation and repository security policy.
- Check current versioned documentation and deprecation notices before implementation.
Explanation
Correct Answer
D:Historical advice can be correct for an older release but invalid today.
Incorrect Answers
A:Performance evidence requires methodology, version, and workload context. What validation is needed. Historical advice can be correct for an older release but invalid today.
B:Comments are context, not necessarily approved requirements. historical advice can be correct for an older release but invalid today.
C:Unvetted third-party code can be outdated, vulnerable, or malicious. Historical advice can be correct for an older release but invalid today.
Question 43
A generated dependency URL points to a lookalike package name. What should the developer inspect?
- Confirm requirements with the authoritative specification or accountable product owner.
- Check current versioned documentation and deprecation notices before implementation.
- Verify the approach against authoritative documentation and repository security policy.
- Verify the official publisher, package registry record, and dependency integrity metadata.
Explanation
Correct Answer
D:Typosquatting can turn a suggested dependency into a supply-chain compromise.
Incorrect Answers
A:Comments are context, not necessarily approved requirements. typosquatting can turn a suggested dependency into a supply-chain compromise.
B:Historical advice can be correct for an older release but invalid today. typosquatting can turn a suggested dependency into a supply-chain compromise.
C:Unvetted third-party code can be outdated, vulnerable, or malicious. Typosquatting can turn a suggested dependency into a supply-chain compromise.
Question 44
A prompt includes copied benchmark numbers with no test environment or dataset. How should they be used?
- Treat the figures as unverified until reproduced under documented conditions.
- Verify the approach against authoritative documentation and repository security policy.
- Check current versioned documentation and deprecation notices before implementation.
- Verify the official publisher, package registry record, and dependency integrity metadata.
Explanation
Correct Answer
A:Performance evidence requires methodology, version, and workload context.
Incorrect Answers
B:Unvetted third-party code can be outdated, vulnerable, or malicious. Performance evidence requires methodology, version, and workload context.
C:Historical advice can be correct for an older release but invalid today. performance evidence requires methodology, version, and workload context.
D:Typosquatting can turn a suggested dependency into a supply-chain compromise. How should they be used. Performance evidence requires methodology, version, and workload context.
Question 45
An assistant repeats an uncorroborated claim from a repository comment as a product requirement. What should the analyst check?
- Check current versioned documentation and deprecation notices before implementation.
- Treat the figures as unverified until reproduced under documented conditions.
- Verify the official publisher, package registry record, and dependency integrity metadata.
- Confirm requirements with the authoritative specification or accountable product owner.
Explanation
Correct Answer
D:Comments are context, not necessarily approved requirements.
Incorrect Answers
A:Historical advice can be correct for an older release but invalid today. comments are context, not necessarily approved requirements.
B:Performance evidence requires methodology, version, and workload context. comments are context, not necessarily approved requirements.
C:Typosquatting can turn a suggested dependency into a supply-chain compromise. What should the analyst check. Comments are context, not necessarily approved requirements.
Question 46
A new patch was generated by Copilot and passes compilation. What assurance is still required?
- Run behavior-focused tests and inspect security and error paths before merging.
- Compare workload query plans and write overhead under realistic data volumes.
- Inspect the destination, permissions, and intended effect before executing the command.
- Add boundary and adversarial cases tied to the changed validation rule.
Explanation
Correct Answer
A:Compilation checks syntax and types, not complete functional behavior.
Incorrect Answers
B:Indexes can reduce reads while increasing mutation and storage costs. compilation checks syntax and types, not complete functional behavior.
C:An otherwise valid command can harm the wrong environment. What assurance is still required. Compilation checks syntax and types, not complete functional behavior.
D:Existing tests may not exercise newly introduced failure paths. Compilation checks syntax and types, not complete functional behavior.
Question 47
A proposed unit test simply asserts that a function returns a non-null result. What should improve the test?
- Add boundary and adversarial cases tied to the changed validation rule.
- Run behavior-focused tests and inspect security and error paths before merging.
- Assert the required output and error conditions using independent expected values.
- Compare workload query plans and write overhead under realistic data volumes.
Explanation
Correct Answer
C:Weak generated assertions can pass even when business logic is wrong.
Incorrect Answers
A:Existing tests may not exercise newly introduced failure paths. Weak generated assertions can pass even when business logic is wrong.
B:Compilation checks syntax and types, not complete functional behavior. weak generated assertions can pass even when business logic is wrong.
D:Indexes can reduce reads while increasing mutation and storage costs. weak generated assertions can pass even when business logic is wrong.
Question 48
An AI response supplies a deployment command without naming the target environment. What should the operator verify?
- Run behavior-focused tests and inspect security and error paths before merging.
- Assert the required output and error conditions using independent expected values.
- Inspect the destination, permissions, and intended effect before executing the command.
- Add boundary and adversarial cases tied to the changed validation rule.
Explanation
Correct Answer
C:An otherwise valid command can harm the wrong environment.
Incorrect Answers
A:Compilation checks syntax and types, not complete functional behavior. an otherwise valid command can harm the wrong environment.
B:Weak generated assertions can pass even when business logic is wrong. What should the operator verify. An otherwise valid command can harm the wrong environment.
D:Existing tests may not exercise newly introduced failure paths. An otherwise valid command can harm the wrong environment.
Question 49
A developer accepts a suggested database index without examining writes or query plans. What validation is appropriate?
- Compare workload query plans and write overhead under realistic data volumes.
- Assert the required output and error conditions using independent expected values.
- Run behavior-focused tests and inspect security and error paths before merging.
- Inspect the destination, permissions, and intended effect before executing the command.
Explanation
Correct Answer
A:Indexes can reduce reads while increasing mutation and storage costs.
Incorrect Answers
B:Weak generated assertions can pass even when business logic is wrong. What validation is appropriate. Indexes can reduce reads while increasing mutation and storage costs.
C:Compilation checks syntax and types, not complete functional behavior. indexes can reduce reads while increasing mutation and storage costs.
D:An otherwise valid command can harm the wrong environment. indexes can reduce reads while increasing mutation and storage costs.
Question 50
A Copilot patch passes compilation but rewrites access-control rules. Which TWO additional checks directly support a safe merge? (Select TWO.)
- Conclude that compilation proves all authorization paths are correct.
- Have the accountable reviewer inspect the security-sensitive diff before approval.
- Skip branch protection because the code was generated by a licensed assistant.
- Change only comments so the test history appears clean.
- Test authorized and unauthorized resource access with negative cases.
Explanation
Correct Answers
B:Human ownership and contextual review complement automated checks.
E:Access-control behavior is established by attempted allow and deny operations.
Incorrect Answers
A:Types and syntax checks cannot establish resource permissions.
C:Copilot does not override repository governance.
D:Comments neither correct authorization nor constitute validation.