Microsoft GH-600 Practice Test 46
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.
Question 451
What is the LEAST defensible response to this AI agent workflow problem? An agent changes a GitHub issue label, then opens a PR without recording whether the label operation succeeded.
- Retain only task-relevant agent context under defined privacy and retention controls.
- Store only statements about intended tool calls and assume all external systems accepted them.
- Choose supported GitHub configurations from current first-party documentation.
- Apply bounded retry with idempotency checks to external mutations.
Explanation
Correct Answer
B:Store only statements about intended tool calls and assume all external systems accepted them. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Agent memory should distinguish intended actions from verified external side effects. Safer action: Store verified tool outcomes with stable issue and PR IDs in durable execution state.
Incorrect Answers
A:Retain only task-relevant agent context under defined privacy and retention controls. This is an appropriate general safeguard, not the harmful shortcut. Excessive or stale memory can hurt correctness and safety. Targeted remediation: Store verified tool outcomes with stable issue and PR IDs in durable execution state.
C:Choose supported GitHub configurations from current first-party documentation. This is an appropriate general safeguard, not the harmful shortcut. Platform capabilities and preview status can change. Targeted remediation: Store verified tool outcomes with stable issue and PR IDs in durable execution state.
D:Apply bounded retry with idempotency checks to external mutations. This is an appropriate general safeguard, not the harmful shortcut. Blind retries can duplicate durable side effects. Targeted remediation: Store verified tool outcomes with stable issue and PR IDs in durable execution state.
Question 452
For the following agentic development case, which shortcut should be REJECTED? An agent team produces a large release but the reviewer cannot tell which agent edited sensitive workflow permissions.
- Choose supported GitHub configurations from current first-party documentation.
- Compare the current requirement with the latest approved task plan.
- Retain only task-relevant agent context under defined privacy and retention controls.
- Merge all commits under one generic author and discard per-agent action records.
Explanation
Correct Answer
D:Merge all commits under one generic author and discard per-agent action records. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Cross-agent observability must preserve identity and decision provenance through handoffs. Safer action: Collect actor/session identity, tool calls, branch commits, plan approvals and final review decisions across all workers.
Incorrect Answers
A:Choose supported GitHub configurations from current first-party documentation. This is an appropriate general safeguard, not the harmful shortcut. Platform capabilities and preview status can change. Targeted remediation: Collect actor/session identity, tool calls, branch commits, plan approvals and final review decisions across all workers.
B:Compare the current requirement with the latest approved task plan. This is an appropriate general safeguard, not the harmful shortcut. Durable intent reduces autonomous task drift. Targeted remediation: Collect actor/session identity, tool calls, branch commits, plan approvals and final review decisions across all workers.
C:Retain only task-relevant agent context under defined privacy and retention controls. This is an appropriate general safeguard, not the harmful shortcut. Excessive or stale memory can hurt correctness and safety. Targeted remediation: Collect actor/session identity, tool calls, branch commits, plan approvals and final review decisions across all workers.
Question 453
A developer evaluates this agent workflow: An agent's final summary says it updated an issue, but the issue has no change. Which engineering concept is MOST relevant?
- External side-effect success should be grounded in tool responses and system-of-record evidence.
- Instruction tuning can address systematic behavioral drift without expanding tool permissions.
- Repeatable evaluation requires stable inputs, environment and code provenance.
- Coverage volume is not equivalent to behavioral correctness or useful test strength.
Explanation
Correct Answer
A:External side-effect success should be grounded in tool responses and system-of-record evidence. This concept explains the proper correction. The corresponding intervention is: Inspect tool-call request and response traces, then reconcile actual GitHub issue history before marking complete.
Incorrect Answers
B:Instruction tuning can address systematic behavioral drift without expanding tool permissions. This concept governs a different case (An agent writes oversized broad edits because task instructions do not specify changed-file boundaries.). The correct principle here is: External side-effect success should be grounded in tool responses and system-of-record evidence.
C:Repeatable evaluation requires stable inputs, environment and code provenance. This concept governs a different case (An agent passes its tests once but the result cannot be reproduced because dependency versions were not saved.). The correct principle here is: External side-effect success should be grounded in tool responses and system-of-record evidence.
D:Coverage volume is not equivalent to behavioral correctness or useful test strength. This concept governs a different case (A code-writing agent boosts coverage percentage with trivial assertions that do not verify error handling.). The correct principle here is: External side-effect success should be grounded in tool responses and system-of-record evidence.
Question 454
For the following agentic development case, which shortcut should be REJECTED? An agent proposes adding a permissive workflow token to make a blocked CI deployment succeed.
- Record escalation ownership when the task exceeds its approved boundary.
- Require verified test evidence for any proposed release promotion.
- Assume a plan that unblocks a pipeline is correct regardless of token permission expansion.
- Keep an accurate audit record of the agent, tool action, time and commit.
Explanation
Correct Answer
C:Assume a plan that unblocks a pipeline is correct regardless of token permission expansion. This shortcut bypasses the necessary constraint or makes the outcome unreliable. A plausible implementation plan is not approval to bypass security controls or organization rules. Safer action: Validate the plan against organization policy and least-privilege requirements before authorizing any workflow edit.
Incorrect Answers
A:Record escalation ownership when the task exceeds its approved boundary. This is an appropriate general safeguard, not the harmful shortcut. A visible handoff preserves human decision authority. Targeted remediation: Validate the plan against organization policy and least-privilege requirements before authorizing any workflow edit.
B:Require verified test evidence for any proposed release promotion. This is an appropriate general safeguard, not the harmful shortcut. A green summary without logs or SHA linkage is not reliable. Targeted remediation: Validate the plan against organization policy and least-privilege requirements before authorizing any workflow edit.
D:Keep an accurate audit record of the agent, tool action, time and commit. This is an appropriate general safeguard, not the harmful shortcut. Provenance supports accountability and incident reconstruction. Targeted remediation: Validate the plan against organization policy and least-privilege requirements before authorizing any workflow edit.
Question 455
Which result would BEST validate the corrected GitHub agent workflow? An agent's final summary says it updated an issue, but the issue has no change.
- The issue label or comment exists with a traceable successful request and actor.
- Sensitivity to high-impact permission edits improves while harmless documentation changes remain fast.
- A replayed test demonstrates corrected design choice without a new tool or environment failure.
- The update handles new inputs without regressing representative previously valid events.
Explanation
Correct Answer
A:The issue label or comment exists with a traceable successful request and actor. The corrective action is: Inspect tool-call request and response traces, then reconcile actual GitHub issue history before marking complete.
Incorrect Answers
B:Sensitivity to high-impact permission edits improves while harmless documentation changes remain fast. This outcome is relevant to another case (An agent continuously labels every generated diff low risk despite repeated security-sensitive changes.). For the stated scenario verify: The issue label or comment exists with a traceable successful request and actor.
C:This outcome is relevant to another case (An agent repeatedly chooses the wrong design despite receiving accurate repository files and functioning tools.). For the stated scenario verify: The issue label or comment exists with a traceable successful request and actor.
D:This outcome is relevant to another case (An agent claims to improve parsing but the new branch silently drops a previously supported event format.). For the stated scenario verify: The issue label or comment exists with a traceable successful request and actor.
Question 456
A developer evaluates this agent workflow: An agent updates security rules without recording its session identity, plan or approver. Which engineering concept is MOST relevant?
- Accountability requires verifiable action provenance, not a retrospective model explanation alone.
- Agent autonomy must respect organizational compliance, tenancy and data handling constraints.
- Database destruction demands a stronger control than reversible code edits in a feature branch.
- The principle of least privilege applies to agent identity, GitHub API scopes and tools.
Explanation
Correct Answer
A:Accountability requires verifiable action provenance, not a retrospective model explanation alone. This concept explains the proper correction. The corresponding intervention is: Require traceable identity, task links, approvals, tool invocations and resulting commit references.
Incorrect Answers
B:Agent autonomy must respect organizational compliance, tenancy and data handling constraints. This concept governs a different case (An agent is asked to migrate regulated source code and associated customer logs into a personal public workspace.). The correct principle here is: Accountability requires verifiable action provenance, not a retrospective model explanation alone.
C:Database destruction demands a stronger control than reversible code edits in a feature branch. This concept governs a different case (An autonomous coding agent proposes dropping a column containing customer history as part of a schema cleanup.). The correct principle here is: Accountability requires verifiable action provenance, not a retrospective model explanation alone.
D:The principle of least privilege applies to agent identity, GitHub API scopes and tools. This concept governs a different case (A documentation agent has a token that can edit organization secret settings, despite needing only to read code.). The correct principle here is: Accountability requires verifiable action provenance, not a retrospective model explanation alone.
Question 457
Which review MOST directly identifies the failing control or environment in this situation? An agent reports a checkout feature complete because it compiled, despite failure to meet tax rounding requirements.
- Examine chronological plan artifacts and mutating tool-call timestamps for authorization order.
- Inspect repository tool scopes, attempted cross-repository calls and access review decisions.
- Inspect issue acceptance text, tested monetary fixtures, result logs and business-owner signoff.
- Review the agent profile and actual tool invocations against the documented documentation-only mandate.
Explanation
Correct Answer
C:Inspect issue acceptance text, tested monetary fixtures, result logs and business-owner signoff. Compiling code is a weaker success signal than business behavior validated against predeclared criteria. Next action: Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
Incorrect Answers
A:This diagnostic relates to a different failure (A coding agent reads a broad feature request and immediately starts deleting modules before agreeing on architecture.). For the reported case inspect: Inspect issue acceptance text, tested monetary fixtures, result logs and business-owner signoff.
B:This diagnostic relates to a different failure (An issue requests a fix in one GitHub repository, but agent research references private code from a different organization.). Inspect repository tool scopes, attempted cross-repository calls and access review decisions.
D:This diagnostic relates to a different failure (A documentation agent repeatedly modifies application code when asked to update API reference examples.). For the reported case inspect: Inspect issue acceptance text, tested monetary fixtures, result logs and business-owner signoff.
Question 458
For this GH-600 agent-governance case, choose the most defensible action: A shared agent is simultaneously asked to implement code and independently approve its own security review.
- Require a completion artifact with diff summary, tests run, uncovered cases and requested reviewer attention.
- Assign implementation and review to distinct actors with separate permissions and a required human merge decision.
- Agree on a versioned request and response contract with example payloads and contract tests before assigning implementation branches.
- Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
Explanation
Correct Answer
B:Assign implementation and review to distinct actors with separate permissions and a required human merge decision. This action addresses the stated GitHub agent engineering issue. Separation of duties remains important when both implementation and review are AI-assisted. Verification: The reviewer inspects the proposed diff independently and no self-approval bypasses repository protections.
Incorrect Answers
A:This action fits a different scenario (A PR authoring agent closes its task after writing code but omits tests, changed-file summary and remaining risks.), not the reported problem. Here the appropriate action is: Assign implementation and review to distinct actors with separate permissions and a required human merge decision.
C:This action fits a different scenario (Two agents are asked to build an API and its client but disagree about request field names and error semantics.), not the reported problem. Here the appropriate action is: Assign implementation and review to distinct actors with separate permissions and a required human merge decision.
D:This action fits a different scenario (An agent reports a checkout feature complete because it compiled, despite failure to meet tax rounding requirements.), not the reported problem. Here the appropriate action is: Assign implementation and review to distinct actors with separate permissions and a required human merge decision.
Question 459
Before making a new change, what evidence BEST diagnoses this agentic workflow issue? A team requires manager approval for every harmless README typo, delaying work while high-risk code still receives weak review.
- Inspect audit events, workflow artifacts, commit SHA and approval records.
- Compare workflow YAML grants, audit approval and authorized API calls.
- Compare tiered policy, approval counts and sampled risk outcomes.
- Inspect author/reviewer identity, ruleset enforcement and merge approvals.
Explanation
Correct Answer
C:Compare tiered policy, approval counts and sampled risk outcomes. Human intervention should focus on material risk rather than create uniform bureaucracy. Next action: Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
Incorrect Answers
A:This diagnostic relates to a different failure (An agent updates security rules without recording its session identity, plan or approver.). For the reported case inspect: Compare tiered policy, approval counts and sampled risk outcomes.
B:This diagnostic relates to a different failure (A repository assistant wants to change a GitHub Actions job token from read-only to write-all after a failing check.). For the reported case inspect: Compare tiered policy, approval counts and sampled risk outcomes.
D:This diagnostic relates to a different failure (An agent is granted permission to write source, approve its own PR and merge to production in one uninterrupted loop.). For the reported case inspect: Compare tiered policy, approval counts and sampled risk outcomes.
Question 460
Which technical principle BEST explains the proper response to this agentic SDLC scenario? An organization reduces agent execution time by disabling all security checks, causing rejected changes to increase.
- Reusing the evaluation set for tuning risks overfitting and inflated performance claims.
- Evaluation of governance classifiers requires false-negative and false-positive evidence.
- Optimization should target genuine workflow waste, not remove evidence-producing safety gates.
- Reasoning errors differ from tool failures when evidence was available but interpreted incorrectly.
Explanation
Correct Answer
C:Optimization should target genuine workflow waste, not remove evidence-producing safety gates. This concept explains the proper correction. The corresponding intervention is: Measure end-to-end review acceptance and risk alongside latency, then optimize safe bottlenecks.
Incorrect Answers
A:Reusing the evaluation set for tuning risks overfitting and inflated performance claims. This concept governs a different case (A team tunes agent instructions on the exact same five test cases used for final evaluation.). The correct principle here is: Optimization should target genuine workflow waste, not remove evidence-producing safety gates.
B:Evaluation of governance classifiers requires false-negative and false-positive evidence. This concept governs a different case (An agent continuously labels every generated diff low risk despite repeated security-sensitive changes.). The correct principle here is: Optimization should target genuine workflow waste, not remove evidence-producing safety gates.
D:Reasoning errors differ from tool failures when evidence was available but interpreted incorrectly. This concept governs a different case (An agent repeatedly chooses the wrong design despite receiving accurate repository files and functioning tools.). The correct principle here is: Optimization should target genuine workflow waste, not remove evidence-producing safety gates.