Microsoft GH-600 Practice Test 45
Question 440
Which measurable outcome demonstrates that the following agent issue is resolved? An agent is granted permission to write source, approve its own PR and merge to production in one uninterrupted loop.
- Files stay in authorized private storage and attempted personal-workspace uploads are denied.
- Documentation review succeeds, and attempts to modify secrets or rulesets are denied.
- Self-approval cannot satisfy the required reviewer gate and merges preserve independent authorization.
- Attempts to send files to the unknown destination are blocked while approved build dependencies remain reachable.
Explanation
Correct Answer
C:Self-approval cannot satisfy the required reviewer gate and merges preserve independent authorization. The corrective action is: Separate writing, review and merge authority with enforced branch rules and distinct accountable actors.
Incorrect Answers
A:This outcome is relevant to another case (An agent is asked to migrate regulated source code and associated customer logs into a personal public workspace.). For the stated scenario verify: Self-approval cannot satisfy the required reviewer gate and merges preserve independent authorization.
B:This outcome is relevant to another case (A documentation agent has a token that can edit organization secret settings, despite needing only to read code.). For the stated scenario verify: Self-approval cannot satisfy the required reviewer gate and merges preserve independent authorization.
D:This outcome is relevant to another case (A CI agent opens an unreviewed internet upload endpoint after reading internal repository files.). For the stated scenario verify: Self-approval cannot satisfy the required reviewer gate and merges preserve independent authorization.
Question 441
Which result would BEST validate the corrected GitHub agent workflow? An agent's tests fail only in the runner because Node is older than the repository's supported runtime.
- A deliberately broken negative case fails while valid positive cases still pass.
- The PR shows no unresolved policy-blocking security alerts and passes behavioral tests.
- The fixed test fails on the offending commit and passes on the reviewed correction.
- Both local isolated and CI environments pass the same tests using compatible versions.
Explanation
Correct Answer
D:Both local isolated and CI environments pass the same tests using compatible versions. The corrective action is: Classify the failure as environment incompatibility, align approved runtime versions and rerun tests.
Incorrect Answers
A:This outcome is relevant to another case (A code-writing agent boosts coverage percentage with trivial assertions that do not verify error handling.). For the stated scenario verify: Both local isolated and CI environments pass the same tests using compatible versions.
B:This outcome is relevant to another case (An AI-authored pull request passes unit tests but introduces a vulnerable dependency and exposed credential.).
C:This outcome is relevant to another case (An agent's code passed PR tests but caused a production regression that was not fed back into future evaluations.). For the stated scenario verify: Both local isolated and CI environments pass the same tests using compatible versions.
Question 442
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: An agent reports a checkout feature complete because it compiled, despite failure to meet tax rounding requirements.
- Action: Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
- Verification: Acceptance tests include boundary values and match the agreed tax policy in the pull request.
- Verification: A fresh isolated agent run installs the required SDK and executes the project's tests successfully.
- Action: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
- Unsafe shortcut: Use a successful type check as the sole proof that all financial acceptance requirements are satisfied.
Explanation
Correct Answers
A:Action: Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins. This fixes the target workflow. Compiling code is a weaker success signal than business behavior validated against predeclared criteria.
B:Verification: Acceptance tests include boundary values and match the agreed tax policy in the pull request. This checks the intended result. Compiling code is a weaker success signal than business behavior validated against predeclared criteria.
Incorrect Answers
C:This evidence relates to another situation (A package upgrade agent fails immediately because the development environment does not install the required SDK.). For the target verify: Acceptance tests include boundary values and match the agreed tax policy in the pull request.
D:This action responds to a different problem (An agent needs to rename a public API but the organization requires architects to approve breaking interfaces.). For the target use: Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
E:Unsafe shortcut: Use a successful type check as the sole proof that all financial acceptance requirements are satisfied. This is neither an appropriate remediation nor valid evidence. Compiling code is a weaker success signal than business behavior validated against predeclared criteria. Safer action: Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
Question 443
Which technical principle BEST explains the proper response to this agentic SDLC scenario? An agent continuously labels every generated diff low risk despite repeated security-sensitive changes.
- Optimization should target genuine workflow waste, not remove evidence-producing safety gates.
- Tool misuse and missing permissions must be distinguished from genuine task data absence.
- Evaluation of governance classifiers requires false-negative and false-positive evidence.
- Evaluation reporting must distinguish not-run, failed and passed evidence.
Explanation
Correct Answer
C:Evaluation of governance classifiers requires false-negative and false-positive evidence. This concept explains the proper correction. The corresponding intervention is: Calibrate risk labels with sampled expert review and update classification thresholds using observed misses.
Incorrect Answers
A:Optimization should target genuine workflow waste, not remove evidence-producing safety gates. This concept governs a different case (An organization reduces agent execution time by disabling all security checks, causing rejected changes to increase.). The correct principle here is: Evaluation of governance classifiers requires false-negative and false-positive evidence.
B:Tool misuse and missing permissions must be distinguished from genuine task data absence. This concept governs a different case (An agent reports a missing file after a repository API returned 403 permission denied.). The correct principle here is: Evaluation of governance classifiers requires false-negative and false-positive evidence.
D:Evaluation reporting must distinguish not-run, failed and passed evidence. This concept governs a different case (An agent cannot run integration tests because credentials are missing but states that all integration tests passed.). The correct principle here is: Evaluation of governance classifiers requires false-negative and false-positive evidence.
Question 444
An engineer must find the underlying cause: An organization has dozens of third-party MCP endpoints and developers cannot tell which are reviewed for use. Which check should be prioritized?
- Compare runner filesystem evidence, remote branch commits and local repository status.
- Review prompt input provenance, secret access attempts, network calls and handling log.
- Compare approved registry entries, server provenance, access rules and live connections.
- Inspect token grants, MCP server settings and attempted denied operations.
Explanation
Correct Answer
C:Compare approved registry entries, server provenance, access rules and live connections. A curated MCP registry improves discovery and governance without implicitly granting every tool access. Next action: Publish approved MCP servers through a managed registry and document ownership, scopes and lifecycle review.
Incorrect Answers
A:This diagnostic relates to a different failure (An AI coding session executes builds in an isolated runner but the owner expects local workstation edits.). For the reported case inspect: Compare approved registry entries, server provenance, access rules and live connections.
B:This diagnostic relates to a different failure (A public issue description contains instructions telling the agent to upload repository secrets to an external URL.). For the reported case inspect: Compare approved registry entries, server provenance, access rules and live connections.
D:This diagnostic relates to a different failure (A GitHub MCP server is configured with a token that can administer all repositories, though the agent only needs to read one issue.). For the reported case inspect: Compare approved registry entries, server provenance, access rules and live connections.
Question 445
An engineer must find the underlying cause: A bug-fixing agent needs to inspect repository files but its configuration also exposes production cloud deletion tools. Which check should be prioritized?
- Inspect token grants, MCP server settings and attempted denied operations.
- Review enabled tools, invocation records, permission scopes and the task's allowed action list.
- Compare approved registry entries, server provenance, access rules and live connections.
- Inspect tool schema, raw request payload, validation error and resulting environment state.
Explanation
Correct Answer
B:Review enabled tools, invocation records, permission scopes and the task's allowed action list. Tools must be selected and authorized according to task need rather than maximum available capability. Next action: Expose only required repository read and scoped branch-write tools while withholding unrelated production mutation tools.
Incorrect Answers
A:This diagnostic relates to a different failure (A GitHub MCP server is configured with a token that can administer all repositories, though the agent only needs to read one issue.). For the reported case inspect: Review enabled tools, invocation records, permission scopes and the task's allowed action list.
C:This diagnostic relates to a different failure (An organization has dozens of third-party MCP endpoints and developers cannot tell which are reviewed for use.). For the reported case inspect: Review enabled tools, invocation records, permission scopes and the task's allowed action list.
D:This diagnostic relates to a different failure (A coding agent repeatedly calls a deployment tool with malformed JSON and silently assumes deployment succeeded.). For the reported case inspect: Review enabled tools, invocation records, permission scopes and the task's allowed action list.
Question 446
Which review MOST directly identifies the failing control or environment in this situation? A test-writing agent passes in a local container but fails in CI because the container image uses an older runtime.
- Compare runner filesystem evidence, remote branch commits and local repository status.
- Review audit log correlation IDs, tool traces, commit metadata and approval events.
- Review enabled tools, invocation records, permission scopes and the task's allowed action list.
- Compare runtime manifests, environment images, lockfiles and failure traces.
Explanation
Correct Answer
D:Compare runtime manifests, environment images, lockfiles and failure traces. Execution-context compatibility is required for meaningful verification across development environments. Next action: Pin supported runtime and dependency versions for the agent workspace and CI or document a compatible matrix.
Incorrect Answers
A:This diagnostic relates to a different failure (An AI coding session executes builds in an isolated runner but the owner expects local workstation edits.). For the reported case inspect: Compare runtime manifests, environment images, lockfiles and failure traces.
B:This diagnostic relates to a different failure (An agent modifies a production workflow but cannot show which tool call produced the repository change.). For the reported case inspect: Compare runtime manifests, environment images, lockfiles and failure traces.
C:This diagnostic relates to a different failure (A bug-fixing agent needs to inspect repository files but its configuration also exposes production cloud deletion tools.). For the reported case inspect: Compare runtime manifests, environment images, lockfiles and failure traces.
Question 447
What underlying agent-development control MOST directly applies to this situation? An issue requests a fix in one GitHub repository, but agent research references private code from a different organization.
- Agent drift often begins when ambiguous instructions turn a narrow task into unbounded autonomous repair.
- Separation of duties remains important when both implementation and review are AI-assisted.
- A task's repository context does not inherently authorize reading unrelated private organizational content.
- Dependency-aware planning prevents parallel work from creating avoidable incompatible artifacts.
Explanation
Correct Answer
C:A task's repository context does not inherently authorize reading unrelated private organizational content. This concept explains the proper correction. The corresponding intervention is: Keep the delegated task restricted to its authorized repository and request explicit access approval for any cross-repository source.
Incorrect Answers
A:This concept governs a different case (A feature agent repeatedly rewrites unrelated modules after discovering a flaky unrelated test.). Agent drift often begins when ambiguous instructions turn a narrow task into unbounded autonomous repair.
B:This concept governs a different case (A shared agent is simultaneously asked to implement code and independently approve its own security review.).
D:Dependency-aware planning prevents parallel work from creating avoidable incompatible artifacts. This concept governs a different case (Three agent tasks modify the same generated client, and they start concurrently before the API schema is finalized.). The correct principle here is: A task's repository context does not inherently authorize reading unrelated private organizational content.
Question 448
Before making a new change, what evidence BEST diagnoses this agentic workflow issue? An autonomous agent promises a detailed plan but commits files before recording why a dependency should change.
- Inspect proposed workflow diff, token scope, ruleset decision and alternative remediation.
- Compare approved file globs, diff history, test failure provenance and escalation records.
- Compare PR description, test artifacts, workflow status and output assertions.
- Compare creation times of plan, tool traces, lockfile edits and commits.
Explanation
Correct Answer
D:Compare creation times of plan, tool traces, lockfile edits and commits. Inspectable planning artifacts improve causal traceability across tool calls and code changes. Next action: Capture a concise proposed action list and rationale before allowing repository modifications, and link actual commits back to decisions.
Incorrect Answers
A:This diagnostic relates to a different failure (An agent proposes adding a permissive workflow token to make a blocked CI deployment succeed.).
B:This diagnostic relates to a different failure (A feature agent repeatedly rewrites unrelated modules after discovering a flaky unrelated test.). For the reported case inspect: Compare creation times of plan, tool traces, lockfile edits and commits.
C:This diagnostic relates to a different failure (A PR authoring agent closes its task after writing code but omits tests, changed-file summary and remaining risks.). Compare PR description, test artifacts, workflow status and output assertions.
Question 449
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: An agent needs to rename a public API but the organization requires architects to approve breaking interfaces.
- Verification: A fresh isolated agent run installs the required SDK and executes the project's tests successfully.
- Verification: The branch remains unchanged during the hold, then the approved diff matches the signed-off migration plan.
- Action: Include an explicit rollback strategy, previous lockfile commit and canary test in the approved implementation plan.
- Action: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
- Unsafe shortcut: Let the agent merge the breaking change first and collect approval afterward.
Explanation
Correct Answers
B:Verification: The branch remains unchanged during the hold, then the approved diff matches the signed-off migration plan. This checks the intended result. High-impact design transitions require distinct approval checkpoints before action, not just post-hoc review.
D:Action: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval. This fixes the target workflow. High-impact design transitions require distinct approval checkpoints before action, not just post-hoc review.
Incorrect Answers
A:This evidence relates to another situation (A package upgrade agent fails immediately because the development environment does not install the required SDK.). For the target verify: The branch remains unchanged during the hold, then the approved diff matches the signed-off migration plan.
C:For the target use: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
E:Unsafe shortcut: Let the agent merge the breaking change first and collect approval afterward. This is neither an appropriate remediation nor valid evidence. High-impact design transitions require distinct approval checkpoints before action, not just post-hoc review. Safer action: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
Question 450
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: A long-running coding agent begins optimizing front-end performance after being assigned a database migration review.
- Verification: The agent flags unrelated optimization work and returns to the migration review without side changes.
- Action: Checkpoint base SHA, changed paths, passing tests, failed tests and next steps in durable task metadata.
- Action: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
- Unsafe shortcut: Redefine the original issue automatically every time the agent discovers a new improvement.
- Verification: New invocations use only deployment-scoped credentials and relevant current release state.
Explanation
Correct Answers
A:Verification: The agent flags unrelated optimization work and returns to the migration review without side changes. This checks the intended result. Drift detection measures current activity against a durable intent baseline.
C:Action: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries. This fixes the target workflow. Drift detection measures current activity against a durable intent baseline.
Incorrect Answers
B:This action responds to a different problem (An agent session is interrupted after writing tests but before implementing the bug fix.).
D:Unsafe shortcut: Redefine the original issue automatically every time the agent discovers a new improvement. This is neither an appropriate remediation nor valid evidence. Drift detection measures current activity against a durable intent baseline. Safer action: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
E:This evidence relates to another situation (A review agent becomes a deployment agent but still carries read-only review assumptions and old sensitive snippets.). For the target verify: The agent flags unrelated optimization work and returns to the migration review without side changes.