Microsoft GH-600 Practice Test 3
Question 20
What underlying agent-development control MOST directly applies to this situation? A security-review agent recommends disabling a workflow while an implementation agent says it is safe to enable.
- Subagents benefit from isolated context when inputs and tools are constrained to their mandate.
- Contradictory multi-agent outputs require reconciliation, not arbitrary vote counting.
- Concurrent agents need write isolation and conflict-aware integration boundaries.
- Agent handoffs should transfer explicit deliverables and assumptions rather than vague completion claims.
Explanation
Correct Answer
B:Contradictory multi-agent outputs require reconciliation, not arbitrary vote counting. This concept explains the proper correction. The corresponding intervention is: Require evidence-based adjudication of conflicting recommendations before promoting the workflow change.
Incorrect Answers
A:This concept governs a different case (A main agent asks a specialist to inspect dependency security but inadvertently passes unrelated client secrets to its context.). Subagents benefit from isolated context when inputs and tools are constrained to their mandate.
C:Concurrent agents need write isolation and conflict-aware integration boundaries. This concept governs a different case (Two agents edit the same migration file concurrently and their commits alternately overwrite each other.). The correct principle here is: Contradictory multi-agent outputs require reconciliation, not arbitrary vote counting.
D:This concept governs a different case (A backend worker tells a frontend worker only that the API is done, omitting authentication and error response rules.). Agent handoffs should transfer explicit deliverables and assumptions rather than vague completion claims.
Question 21
What underlying agent-development control MOST directly applies to this situation? A review agent becomes a deployment agent but still carries read-only review assumptions and old sensitive snippets.
- Short-term model context is not a durable source of project memory.
- A state machine exposes intermediate task obligations and prevents false finality.
- A change in role or trust boundary may require resetting prior context rather than blindly inheriting it.
- Long-term agent memory may need accountable records but should have purposeful retention and access limits.
Explanation
Correct Answer
C:A change in role or trust boundary may require resetting prior context rather than blindly inheriting it. This concept explains the proper correction. The corresponding intervention is: Reset role-specific transient memory and load fresh authorized deployment context when switching responsibilities.
Incorrect Answers
A:This concept governs a different case (A coding agent forgets earlier decisions after a long session reaches its context limit.).
B:This concept governs a different case (An agent controller records tasks only as started or complete, hiding review holds and partial failures.).
D:This concept governs a different case (A project deletes agent decision logs after each successful merge although a security audit needs to reconstruct approvals.). Long-term agent memory may need accountable records but should have purposeful retention and access limits.
Question 22
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: A documentation agent has a token that can edit organization secret settings, despite needing only to read code.
- Verification: The deletion tool is blocked until a qualified owner authorizes the exact target and recovery plan.
- Action: Limit the agent's token to necessary repository read scopes and remove organization administration grants.
- Action: Separate writing, review and merge authority with enforced branch rules and distinct accountable actors.
- Verification: Documentation review succeeds, and attempts to modify secrets or rulesets are denied.
- Unsafe shortcut: Reuse a full administrator token for every agent to simplify onboarding.
Explanation
Correct Answers
B:Action: Limit the agent's token to necessary repository read scopes and remove organization administration grants. This fixes the target workflow. The principle of least privilege applies to agent identity, GitHub API scopes and tools.
D:Verification: Documentation review succeeds, and attempts to modify secrets or rulesets are denied. This checks the intended result. The principle of least privilege applies to agent identity, GitHub API scopes and tools.
Incorrect Answers
A:Verification: The deletion tool is blocked until a qualified owner authorizes the exact target and recovery plan. This evidence relates to another situation (An agent proposes deleting a production environment to clean up a failed staging deployment.). For the target verify: Documentation review succeeds, and attempts to modify secrets or rulesets are denied.
C:Action: Separate writing, review and merge authority with enforced branch rules and distinct accountable actors. This action responds to a different problem (An agent is granted permission to write source, approve its own PR and merge to production in one uninterrupted loop.). For the target use: Limit the agent's token to necessary repository read scopes and remove organization administration grants.
E:Unsafe shortcut: Reuse a full administrator token for every agent to simplify onboarding. This is neither an appropriate remediation nor valid evidence. The principle of least privilege applies to agent identity, GitHub API scopes and tools. Safer action: Limit the agent's token to necessary repository read scopes and remove organization administration grants.
Question 23
A GitHub agentic development workflow faces this issue: Several worker branches each pass unit tests but the integrated feature fails an end-to-end checkout flow. Which change MOST directly resolves it?
- Delegate only task-relevant files and authorized permissions to a separated specialist context.
- Run a coordinated integration test on the combined candidate after individual worker validation.
- Collect per-worker heartbeat, last tool progress, error state and branch activity and define stalled thresholds.
- Escalate with precise missing authorization and pause the affected dependency task rather than broadening access automatically.
Explanation
Correct Answer
B:Run a coordinated integration test on the combined candidate after individual worker validation. This action addresses the stated GitHub agent engineering issue. Multi-agent testing needs combined acceptance signals after separate contributions. Verification: The integrated branch passes cross-module scenarios and not just isolated unit suites.
Incorrect Answers
A:This action fits a different scenario (A main agent asks a specialist to inspect dependency security but inadvertently passes unrelated client secrets to its context.), not the reported problem. Here the appropriate action is: Run a coordinated integration test on the combined candidate after individual worker validation.
C:This action fits a different scenario (An agent manager reports that five workers are progressing but cannot explain why one branch has had no commits for hours.), not the reported problem. Here the appropriate action is: Run a coordinated integration test on the combined candidate after individual worker validation.
D:This action fits a different scenario (A dependency-scanning worker cannot access a restricted registry and repeatedly requests wider permissions.), not the reported problem. Here the appropriate action is: Run a coordinated integration test on the combined candidate after individual worker validation.
Question 24
Which measurable outcome demonstrates that the following agent issue is resolved? A documentation agent fails mid-run while two implementation agents complete their code changes.
- Each worker owns a nonoverlapping deliverable and the manager validates combined changes against one task goal.
- A replacement resumes from the documented checkpoint without rerunning or overwriting completed code.
- The generated client uses the approved schema hash and passes contract tests.
- An authorized owner grants narrow access or marks the task blocked while independent work continues.
Explanation
Correct Answer
B:A replacement resumes from the documented checkpoint without rerunning or overwriting completed code. The corrective action is: Mark documentation blocked, preserve successful artifacts and reassign only unfinished documentation work.
Incorrect Answers
A:This outcome is relevant to another case (A repository change needs architecture analysis, implementation and documentation but agents duplicate each other's work.). For the stated scenario verify: A replacement resumes from the documented checkpoint without rerunning or overwriting completed code.
C:The generated client uses the approved schema hash and passes contract tests. This outcome is relevant to another case (A client-generation agent starts before the schema agent has completed its approved API contract.). For the stated scenario verify: A replacement resumes from the documented checkpoint without rerunning or overwriting completed code.
D:This outcome is relevant to another case (A dependency-scanning worker cannot access a restricted registry and repeatedly requests wider permissions.). For the stated scenario verify: A replacement resumes from the documented checkpoint without rerunning or overwriting completed code.
Question 25
Which result would BEST validate the corrected GitHub agent workflow? An agent builds a harmless Markdown linter and a credential rotation task using the same generic pass condition.
- Generated client changes use the same approved schema version and conflicting branches are avoided.
- Acceptance tests include boundary values and match the agreed tax policy in the pull request.
- Each task has acceptance tests appropriate to its potential production and security impact.
- The reviewer inspects the proposed diff independently and no self-approval bypasses repository protections.
Explanation
Correct Answer
C:Each task has acceptance tests appropriate to its potential production and security impact. The corrective action is: Specify risk-adjusted outcomes: syntax checks for the linter and authorization, secret rotation, revocation and rollback evidence for credentials.
Incorrect Answers
A:This outcome is relevant to another case (Three agent tasks modify the same generated client, and they start concurrently before the API schema is finalized.). For the stated scenario verify: Each task has acceptance tests appropriate to its potential production and security impact.
B:This outcome is relevant to another case (An agent reports a checkout feature complete because it compiled, despite failure to meet tax rounding requirements.). For the stated scenario verify: Each task has acceptance tests appropriate to its potential production and security impact.
D:This outcome is relevant to another case (A shared agent is simultaneously asked to implement code and independently approve its own security review.).
Question 26
A developer evaluates this agent workflow: An agent repeatedly attempts forbidden deployment actions although its assigned task is documentation review. Which engineering concept is MOST relevant?
- Restricting tool exposure is a stronger guard than relying only on language instructions.
- Environment drift is a separate failure category from defective generated code.
- Meaningful A/B evaluation requires controlling confounding factors.
- Evaluation needs observable task-specific outcome oracles beyond the model's self-report.
Explanation
Correct Answer
A:Restricting tool exposure is a stronger guard than relying only on language instructions. This concept explains the proper correction. The corresponding intervention is: Remove deployment tools from the agent profile and provide read-only documentation and repository browsing tools.
Incorrect Answers
B:This concept governs a different case (An agent's tests fail only in the runner because Node is older than the repository's supported runtime.).
C:Meaningful A/B evaluation requires controlling confounding factors. This concept governs a different case (Two agent profiles are being compared, but each is tested on different tasks and tool permissions.). The correct principle here is: Restricting tool exposure is a stronger guard than relying only on language instructions.
D:Evaluation needs observable task-specific outcome oracles beyond the model's self-report. This concept governs a different case (An agent edits a tax calculator and reports success solely because the build passes.). The correct principle here is: Restricting tool exposure is a stronger guard than relying only on language instructions.
Question 27
What is the LEAST defensible response to this AI agent workflow problem? An agent repeatedly attempts forbidden deployment actions although its assigned task is documentation review.
- Validate the task's actual business outcome rather than relying on agent confidence.
- Require a reviewable PR and relevant automated checks before protected-branch merge.
- Apply bounded retry with idempotency checks to external mutations.
- Tell the agent to avoid deployments but leave an administrator deployment tool available.
Explanation
Correct Answer
D:Tell the agent to avoid deployments but leave an administrator deployment tool available. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Restricting tool exposure is a stronger guard than relying only on language instructions. Safer action: Remove deployment tools from the agent profile and provide read-only documentation and repository browsing tools.
Incorrect Answers
A:Validate the task's actual business outcome rather than relying on agent confidence. This is an appropriate general safeguard, not the harmful shortcut. Self-reported completion is a weaker signal than external verification. Targeted remediation: Remove deployment tools from the agent profile and provide read-only documentation and repository browsing tools.
B:Require a reviewable PR and relevant automated checks before protected-branch merge. This is an appropriate general safeguard, not the harmful shortcut. Changes should be traceable and validated before integration. Targeted remediation: Remove deployment tools from the agent profile and provide read-only documentation and repository browsing tools.
C: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: Remove deployment tools from the agent profile and provide read-only documentation and repository browsing tools.
Question 28
Which TWO claims together describe the safe correction and measurable result? A coding agent reads a broad feature request and immediately starts deleting modules before agreeing on architecture.
- Action: Require an inspectable implementation plan with affected paths, risks, dependencies and proposed validation before enabling write operations.
- Unsafe shortcut: Treat every generated plan as automatically approved and permit any tool call while planning is still incomplete.
- Action: Write a handoff packet with task objective, base SHA, files changed, commands run, remaining failures and next steps.
- Verification: A delegated documentation task updates correct reference pages without touching application modules.
- Verification: A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope.
Explanation
Correct Answers
A:Action: Require an inspectable implementation plan with affected paths, risks, dependencies and proposed validation before enabling write operations. This fixes the target workflow. Planning should be separable from action so a human can detect bad assumptions before filesystem changes.
E:Verification: A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope. This checks the intended result. Planning should be separable from action so a human can detect bad assumptions before filesystem changes.
Incorrect Answers
B:Unsafe shortcut: Treat every generated plan as automatically approved and permit any tool call while planning is still incomplete. This is neither an appropriate remediation nor valid evidence. Planning should be separable from action so a human can detect bad assumptions before filesystem changes. Safer action: Require an inspectable implementation plan with affected paths, risks, dependencies and proposed validation before enabling write operations.
C:This action responds to a different problem (A long coding session ends before completion and the next agent cannot reconstruct why two tests were intentionally deferred.).
D:Verification: A delegated documentation task updates correct reference pages without touching application modules. This evidence relates to another situation (A documentation agent repeatedly modifies application code when asked to update API reference examples.). For the target verify: A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope.
Question 29
Consider an AI agent in the GitHub software development lifecycle: A repository agent keeps recommending a deprecated dependency version from memory months after the upgrade policy changed. What is the BEST next action?
- Minimize retained content, redact secrets and apply tenant-aware access control plus explicit retention limits.
- Define explicit queued, planning, approved, executing, blocked, reviewing and completed states with valid transitions.
- Set time-to-live and freshness checks for stored dependency recommendations, then retrieve the current policy on use.
- Attach source URL, revision timestamp and trust level to retrieved memory, then prefer current approved documentation.
Explanation
Correct Answer
C:Set time-to-live and freshness checks for stored dependency recommendations, then retrieve the current policy on use. This action addresses the stated GitHub agent engineering issue. Long-lived agent memory needs expiration and authority checks to prevent outdated choices. Verification: A new task follows the updated dependency policy rather than stale memorized advice.
Incorrect Answers
A:This action fits a different scenario (An agent stores customer account identifiers and API tokens in an unrestricted vector memory service.), not the reported problem.
B:This action fits a different scenario (An agent controller records tasks only as started or complete, hiding review holds and partial failures.), not the reported problem. Here the appropriate action is: Set time-to-live and freshness checks for stored dependency recommendations, then retrieve the current policy on use.
D:This action fits a different scenario (A maintenance agent retrieves a stale wiki snippet that contradicts the current signed release procedure.), not the reported problem. Here the appropriate action is: Set time-to-live and freshness checks for stored dependency recommendations, then retrieve the current policy on use.
Question 30
For the following agentic development case, which shortcut should be REJECTED? A coordinator retries a worker assignment after a timeout, causing two agents to open identical pull requests.
- Preserve a timestamped approved handoff when an agent session ends.
- Keep production credentials outside committed instructions and logs.
- Resubmit every timed-out task indefinitely without checking GitHub activity.
- Ensure CI work executes under event-appropriate credentials.
Explanation
Correct Answer
C:Resubmit every timed-out task indefinitely without checking GitHub activity. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Idempotent orchestration avoids duplicate work when assignment acknowledgement is lost. Safer action: Use stable task IDs and reconcile active sessions or PRs before retrying delegation.
Incorrect Answers
A:Preserve a timestamped approved handoff when an agent session ends. This is an appropriate general safeguard, not the harmful shortcut. Independent sessions need durable progress state. Targeted remediation: Use stable task IDs and reconcile active sessions or PRs before retrying delegation.
B:Keep production credentials outside committed instructions and logs. This is an appropriate general safeguard, not the harmful shortcut. Confidential secret material needs controlled storage and redaction. Targeted remediation: Use stable task IDs and reconcile active sessions or PRs before retrying delegation.
D:Ensure CI work executes under event-appropriate credentials. This is an appropriate general safeguard, not the harmful shortcut. Untrusted pull request contexts must not inherit production privileges. Targeted remediation: Use stable task IDs and reconcile active sessions or PRs before retrying delegation.