Microsoft GH-300 Practice Test 9
Question 80
A suggested production fix depends on an unknown runtime version, a disputed API limit, and an unverified race-condition diagnosis. Which THREE steps produce defensible evidence? (Select THREE.)
- Confirm the deployed runtime and installed dependency versions.
- Check the disputed API limit against current first-party documentation.
- Accept the response with the highest confidence score as verified.
- Reproduce concurrent execution and inspect timing and synchronization evidence.
- Assume the development machine exactly matches production.
- Remove synchronization checks to simplify the patch.
Explanation
Correct Answers
A:Correct environmental facts determine which implementation behavior applies.
B:Source verification resolves unsupported model claims about version-dependent limits.
D:A suspected race requires observable shared-state behavior.
Incorrect Answers
C:Confidence is not a runtime or protocol test.
E:Environment parity must be demonstrated, not presumed.
F:Eliminating guards can increase race-condition severity.
Question 81
An agent needs repository access to fix a serializer, but its tool scope includes production secrets. What is the safer setup?
- Grant only repository and test permissions needed for the serializer task.
- Validate publisher, checksum, necessity, and permitted execution before installing.
- Remove secret-bearing output and use masked diagnostic fields.
- Require protected-branch checks and the repository's approval conditions.
Explanation
Correct Answer
A:Least-privilege tool access reduces risk from errors and injected instructions.
Incorrect Answers
B:Agent suggestions are not a trusted software-supply-chain authorization. What is the safer setup. Least-privilege tool access reduces risk from errors and injected instructions.
C:CI logs are durable artifacts that may be visible to broader audiences. least-privilege tool access reduces risk from errors and injected instructions.
D:Automated authorship does not justify bypassing merge quality gates. least-privilege tool access reduces risk from errors and injected instructions.
Question 82
A developer gives a chat assistant an unrestricted cloud credential for convenience. What should be used instead?
- Remove secret-bearing output and use masked diagnostic fields.
- Use scoped short-lived credentials or an approved delegated tool connection.
- Grant only repository and test permissions needed for the serializer task.
- Validate publisher, checksum, necessity, and permitted execution before installing.
Explanation
Correct Answer
B:Broad persistent secrets provide unnecessary access if exposed.
Incorrect Answers
A:CI logs are durable artifacts that may be visible to broader audiences. broad persistent secrets provide unnecessary access if exposed.
C:Least-privilege tool access reduces risk from errors and injected instructions. Broad persistent secrets provide unnecessary access if exposed.
D:Agent suggestions are not a trusted software-supply-chain authorization. What should be used instead. Broad persistent secrets provide unnecessary access if exposed.
Question 83
A pull-request bot automatically merges Copilot-written patches without status checks. What control is necessary?
- Grant only repository and test permissions needed for the serializer task.
- Use scoped short-lived credentials or an approved delegated tool connection.
- Require protected-branch checks and the repository's approval conditions.
- Remove secret-bearing output and use masked diagnostic fields.
Explanation
Correct Answer
C:Automated authorship does not justify bypassing merge quality gates.
Incorrect Answers
A:Least-privilege tool access reduces risk from errors and injected instructions. Automated authorship does not justify bypassing merge quality gates.
B:Broad persistent secrets provide unnecessary access if exposed. automated authorship does not justify bypassing merge quality gates.
D:CI logs are durable artifacts that may be visible to broader audiences. automated authorship does not justify bypassing merge quality gates.
Question 84
A coding agent asks to install an unknown executable as a prerequisite. What should be verified?
- Require protected-branch checks and the repository's approval conditions.
- Use scoped short-lived credentials or an approved delegated tool connection.
- Validate publisher, checksum, necessity, and permitted execution before installing.
- Grant only repository and test permissions needed for the serializer task.
Explanation
Correct Answer
C:Agent suggestions are not a trusted software-supply-chain authorization.
Incorrect Answers
A:Automated authorship does not justify bypassing merge quality gates. What should be verified. Agent suggestions are not a trusted software-supply-chain authorization.
B:Broad persistent secrets provide unnecessary access if exposed. agent suggestions are not a trusted software-supply-chain authorization.
D:Least-privilege tool access reduces risk from errors and injected instructions. Agent suggestions are not a trusted software-supply-chain authorization.
Question 85
A generated script prints environment variables in CI logs. How should it be corrected?
- Validate publisher, checksum, necessity, and permitted execution before installing.
- Require protected-branch checks and the repository's approval conditions.
- Use scoped short-lived credentials or an approved delegated tool connection.
- Remove secret-bearing output and use masked diagnostic fields.
Explanation
Correct Answer
D:CI logs are durable artifacts that may be visible to broader audiences.
Incorrect Answers
A:Agent suggestions are not a trusted software-supply-chain authorization. cI logs are durable artifacts that may be visible to broader audiences.
B:Automated authorship does not justify bypassing merge quality gates. How should it be corrected. CI logs are durable artifacts that may be visible to broader audiences.
C:Broad persistent secrets provide unnecessary access if exposed. cI logs are durable artifacts that may be visible to broader audiences.
Question 86
A developer encounters a persistently wrong completion in a repository. What is a constructive response?
- Remove the data, assess exposure, and follow the incident process if published.
- Consult the authorized administrator rather than trying to bypass the managed setting.
- Fix the access check and add a negative regression test before reopening review.
- Reject the unsafe completion and provide feedback with reproducible context.
Explanation
Correct Answer
D:Feedback is useful when grounded in the actual defect rather than blind acceptance.
Incorrect Answers
A:A post-generation cleanup does not alone establish that data was never disclosed. Feedback is useful when grounded in the actual defect rather than blind acceptance.
B:Organization policies represent deliberate governance boundaries. feedback is useful when grounded in the actual defect rather than blind acceptance.
C:A corrected control should be proven against unauthorized callers. What is a constructive response. Feedback is useful when grounded in the actual defect rather than blind acceptance.
Question 87
An AI-generated test fails, but the assistant says the test must be wrong. What should the engineer do?
- Reject the unsafe completion and provide feedback with reproducible context.
- Consult the authorized administrator rather than trying to bypass the managed setting.
- Diagnose independently whether implementation, test assumptions, or environment is at fault.
- Remove the data, assess exposure, and follow the incident process if published.
Explanation
Correct Answer
C:The tool is not an authority on which component failed.
Incorrect Answers
A:Feedback is useful when grounded in the actual defect rather than blind acceptance. the tool is not an authority on which component failed.
B:Organization policies represent deliberate governance boundaries. the tool is not an authority on which component failed.
D:A post-generation cleanup does not alone establish that data was never disclosed. The tool is not an authority on which component failed.
Question 88
A code reviewer finds a missing authorization check in a Copilot patch. What should the author do?
- Reject the unsafe completion and provide feedback with reproducible context.
- Diagnose independently whether implementation, test assumptions, or environment is at fault.
- Fix the access check and add a negative regression test before reopening review.
- Remove the data, assess exposure, and follow the incident process if published.
Explanation
Correct Answer
C:A corrected control should be proven against unauthorized callers.
Incorrect Answers
A:Feedback is useful when grounded in the actual defect rather than blind acceptance. a corrected control should be proven against unauthorized callers.
B:The tool is not an authority on which component failed. What should the author do. A corrected control should be proven against unauthorized callers.
D:A post-generation cleanup does not alone establish that data was never disclosed. A corrected control should be proven against unauthorized callers.
Question 89
A suggestion is blocked by an organization policy. What should the user do?
- Reject the unsafe completion and provide feedback with reproducible context.
- Consult the authorized administrator rather than trying to bypass the managed setting.
- Fix the access check and add a negative regression test before reopening review.
- Diagnose independently whether implementation, test assumptions, or environment is at fault.
Explanation
Correct Answer
B:Organization policies represent deliberate governance boundaries.
Incorrect Answers
A:Feedback is useful when grounded in the actual defect rather than blind acceptance. organization policies represent deliberate governance boundaries.
C:A corrected control should be proven against unauthorized callers. organization policies represent deliberate governance boundaries.
D:The tool is not an authority on which component failed. What should the user do. Organization policies represent deliberate governance boundaries.
Question 90
An AI patch contains a missing authorization check, leaked test credentials, and claims that a failing suite is wrong. Which THREE actions are appropriate? (Select THREE.)
- Merge without review because a licensed Copilot tool was used.
- Disable all CI tests to prevent future false alarms.
- Investigate actual failing assertions before approving the patch.
- Keep the credential because it was generated by an AI assistant.
- Remove and rotate the exposed credentials while assessing repository history.
- Add the missing authorization control and a negative regression test.
Explanation
Correct Answers
C:A model's opinion cannot overrule test evidence.
E:Credential risk persists after a simple text deletion.
F:The access flaw must be corrected and verified against an unauthorized caller.
Incorrect Answers
A:Authorship does not exempt a change from governance requirements.
B:Suppressing verification leaves defects unresolved.
D:Generation provides no protection against secret reuse.