Microsoft GH-600 Practice Test 29
Question 280
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: One generalized agent repeatedly confuses localization review with TypeScript compiler fixes.
- Verification: The frontend integrates without guessing token handling or status codes and contract tests pass.
- Unsafe shortcut: Give every specialist all tools and assign identical tasks regardless of role.
- Action: Define separate specialist agents with task-specific instructions and tool restrictions, and delegate by expertise.
- Verification: Localization changes stay within resource files and TypeScript fixes stay in code under normal review.
- Action: Restore durable task state and inspect current worker sessions before restarting only missing work.
Explanation
Correct Answers
C:Action: Define separate specialist agents with task-specific instructions and tool restrictions, and delegate by expertise. This fixes the target workflow. Specialist roles improve coordination when tool permissions and work products differ.
D:Verification: Localization changes stay within resource files and TypeScript fixes stay in code under normal review. This checks the intended result. Specialist roles improve coordination when tool permissions and work products differ.
Incorrect Answers
A:This evidence relates to another situation (A backend worker tells a frontend worker only that the API is done, omitting authentication and error response rules.).
B:Unsafe shortcut: Give every specialist all tools and assign identical tasks regardless of role. This is neither an appropriate remediation nor valid evidence. Specialist roles improve coordination when tool permissions and work products differ. Safer action: Define separate specialist agents with task-specific instructions and tool restrictions, and delegate by expertise.
E:Action: Restore durable task state and inspect current worker sessions before restarting only missing work. This action responds to a different problem (An orchestration controller crashes after two agents finish and one is still executing, losing temporary coordination memory.). For the target use: Define separate specialist agents with task-specific instructions and tool restrictions, and delegate by expertise.
Question 281
For the following agentic development case, which shortcut should be REJECTED? A tool call to create a pull request times out; the agent cannot tell whether the PR was created.
- Review both positive and negative acceptance scenarios after an agent edit.
- Validate the task's actual business outcome rather than relying on agent confidence.
- Retry PR creation blindly until multiple duplicates appear, then report all as successful.
- Require verified test evidence for any proposed release promotion.
Explanation
Correct Answer
C:Retry PR creation blindly until multiple duplicates appear, then report all as successful. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Ambiguous network errors should trigger reconciliation before repeating mutating API calls. Safer action: Query repository state using a stable idempotency key or unique branch before retrying creation.
Incorrect Answers
A:Review both positive and negative acceptance scenarios after an agent edit. This is an appropriate general safeguard, not the harmful shortcut. Regression tests should catch new defects and accidental scope loss. Targeted remediation: Query repository state using a stable idempotency key or unique branch before retrying creation.
B: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: Query repository state using a stable idempotency key or unique branch before retrying creation.
D: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: Query repository state using a stable idempotency key or unique branch before retrying creation.
Question 282
After the recommended fix, which observation MOST convincingly proves success? An agent modifies a production workflow but cannot show which tool call produced the repository change.
- Every changed file and workflow permission maps to an approved trace and revision.
- The report lists alert facts without any branch, package or ruleset changes.
- Tests pass without root host access and deny attempts to read outside scoped workspace.
- The agent writes only to its selected repository branch, with any cross-repo work tracked in another approved task.
Explanation
Correct Answer
A:Every changed file and workflow permission maps to an approved trace and revision. The corrective action is: Capture per-tool action identifiers, arguments, identity, timestamps and resulting commit SHA as review artifacts.
Incorrect Answers
B:This outcome is relevant to another case (An agent summarizes dependency alerts but is offered an update-dependency tool capable of pushing changes.). For the stated scenario verify: Every changed file and workflow permission maps to an approved trace and revision.
C:This outcome is relevant to another case (A build agent requests host-level root privileges simply to run repository unit tests.). For the stated scenario verify: Every changed file and workflow permission maps to an approved trace and revision.
D:This outcome is relevant to another case (A Copilot cloud agent is assigned a repository task but tries to modify code in a second repository in the same session.). For the stated scenario verify: Every changed file and workflow permission maps to an approved trace and revision.
Question 283
For the following agentic development case, which shortcut should be REJECTED? A team cannot compare agent implementation plans because every agent outputs a different free-form narrative.
- Check repository and organization policy before expanding agent permissions.
- Inspect the exact tool response and system-of-record state before claiming success.
- Keep an accurate audit record of the agent, tool action, time and commit.
- Ask agents to output optimistic prose without test cases and interpret it as a machine-readable plan.
Explanation
Correct Answer
D:Ask agents to output optimistic prose without test cases and interpret it as a machine-readable plan. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Structured plans support consistent human review and downstream orchestration decisions. Safer action: Require structured plan fields for objectives, assumptions, file changes, dependencies, tests, risks and approval status.
Incorrect Answers
A:Check repository and organization policy before expanding agent permissions. This is an appropriate general safeguard, not the harmful shortcut. An issue request cannot override higher-priority security boundaries. Targeted remediation: Require structured plan fields for objectives, assumptions, file changes, dependencies, tests, risks and approval status.
B:Inspect the exact tool response and system-of-record state before claiming success. This is an appropriate general safeguard, not the harmful shortcut. Intended operations can fail or partially commit. Targeted remediation: Require structured plan fields for objectives, assumptions, file changes, dependencies, tests, risks and approval status.
C: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: Require structured plan fields for objectives, assumptions, file changes, dependencies, tests, risks and approval status.
Question 284
Which result would BEST validate the corrected GitHub agent workflow? A team cannot compare agent implementation plans because every agent outputs a different free-form narrative.
- The branch remains unchanged during the hold, then the approved diff matches the signed-off migration plan.
- A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope.
- Plans from separate agents can be validated and automatically flagged for missing required sections.
- Multiple new agent tasks follow the same naming rules and run the documented tests on isolated branches.
Explanation
Correct Answer
C:Plans from separate agents can be validated and automatically flagged for missing required sections. The corrective action is: Require structured plan fields for objectives, assumptions, file changes, dependencies, tests, risks and approval status.
Incorrect Answers
A:This outcome is relevant to another case (An agent needs to rename a public API but the organization requires architects to approve breaking interfaces.). For the stated scenario verify: Plans from separate agents can be validated and automatically flagged for missing required sections.
B:This outcome is relevant to another case (A coding agent reads a broad feature request and immediately starts deleting modules before agreeing on architecture.). For the stated scenario verify: Plans from separate agents can be validated and automatically flagged for missing required sections.
D:This outcome is relevant to another case (A team wants all agent changes in one repository to use its API naming conventions and existing test runner.). For the stated scenario verify: Plans from separate agents can be validated and automatically flagged for missing required sections.
Question 285
For the following agentic development case, which shortcut should be REJECTED? An agent controller records tasks only as started or complete, hiding review holds and partial failures.
- Map every network timeout directly to completed because some tool actions might have succeeded.
- Validate the task's actual business outcome rather than relying on agent confidence.
- Retain only task-relevant agent context under defined privacy and retention controls.
- Preserve an authorized rollback path for reversible repository changes.
Explanation
Correct Answer
A:Map every network timeout directly to completed because some tool actions might have succeeded. This shortcut bypasses the necessary constraint or makes the outcome unreliable. A state machine exposes intermediate task obligations and prevents false finality. Safer action: Define explicit queued, planning, approved, executing, blocked, reviewing and completed states with valid transitions.
Incorrect Answers
B: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: Define explicit queued, planning, approved, executing, blocked, reviewing and completed states with valid transitions.
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: Define explicit queued, planning, approved, executing, blocked, reviewing and completed states with valid transitions.
D:Preserve an authorized rollback path for reversible repository changes. This is an appropriate general safeguard, not the harmful shortcut. A known-good state makes failures recoverable. Targeted remediation: Define explicit queued, planning, approved, executing, blocked, reviewing and completed states with valid transitions.
Question 286
An engineer must find the underlying cause: A Copilot cloud agent is assigned a repository task but tries to modify code in a second repository in the same session. Which check should be prioritized?
- Review runner identity, mounts, network egress and syscall or permission-denial logs.
- Inspect token grants, MCP server settings and attempted denied operations.
- Check selected repository, task permissions, branch push targets and cross-repository API calls.
- Inspect request IDs, operation types, retry timeline and post-failure repository state.
Explanation
Correct Answer
C:Check selected repository, task permissions, branch push targets and cross-repository API calls. Cloud agent task scope is repository-bound in supported workflows and should not be bypassed through token expansion. Next action: Split work into separately authorized repository-scoped tasks and coordinate through reviewed interface changes.
Incorrect Answers
A:This diagnostic relates to a different failure (A build agent requests host-level root privileges simply to run repository unit tests.). For the reported case inspect: Check selected repository, task permissions, branch push targets and cross-repository API calls.
B: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: Check selected repository, task permissions, branch push targets and cross-repository API calls.
D:This diagnostic relates to a different failure (An agent uses a flaky issue-search API; transient 503 responses cause it to repeat all earlier writes.). Inspect request IDs, operation types, retry timeline and post-failure repository state.
Question 287
For this GH-600 agent-governance case, choose the most defensible action: A CI remediation agent proposes changing deployment secrets because tests fail in an untrusted pull-request environment.
- Expose only required repository read and scoped branch-write tools while withholding unrelated production mutation tools.
- Separate untrusted PR test context from privileged deployment environment and require approved deployment gates.
- Keep work in the isolated execution context and transfer changes through branch commits or reviewable artifacts.
- Pin supported runtime and dependency versions for the agent workspace and CI or document a compatible matrix.
Explanation
Correct Answer
B:Separate untrusted PR test context from privileged deployment environment and require approved deployment gates. This action addresses the stated GitHub agent engineering issue. Workflow event trust level determines safe secret exposure and deployment permissions. Verification: Untrusted PR checks run with restricted credentials and privileged deployment occurs only after authorized merge.
Incorrect Answers
A:This action fits a different scenario (A bug-fixing agent needs to inspect repository files but its configuration also exposes production cloud deletion tools.), not the reported problem. Here the appropriate action is: Separate untrusted PR test context from privileged deployment environment and require approved deployment gates.
C:This action fits a different scenario (An AI coding session executes builds in an isolated runner but the owner expects local workstation edits.), not the reported problem. Here the appropriate action is: Separate untrusted PR test context from privileged deployment environment and require approved deployment gates.
D:This action fits a different scenario (A test-writing agent passes in a local container but fails in CI because the container image uses an older runtime.), not the reported problem. Here the appropriate action is: Separate untrusted PR test context from privileged deployment environment and require approved deployment gates.
Question 288
Before making a new change, what evidence BEST diagnoses this agentic workflow issue? A support agent carries hundreds of obsolete build logs into every new task and starts ignoring the current requirement.
- Inspect transition log, required gate fields and rejection results.
- Inspect retained context summaries, artifact references and decision coverage.
- Inspect memory contents, tenant filters, secret scans and retention deletion tests.
- Review initial issue criteria, successive plans and changed-file lists.
Explanation
Correct Answer
B:Inspect retained context summaries, artifact references and decision coverage. Context pruning should reduce noise without deleting authoritative state needed for a task. Next action: Summarize validated history into a short artifact and prune irrelevant context while preserving current issue constraints.
Incorrect Answers
A:This diagnostic relates to a different failure (An agent controller records tasks only as started or complete, hiding review holds and partial failures.). For the reported case inspect: Inspect retained context summaries, artifact references and decision coverage.
C:This diagnostic relates to a different failure (An agent stores customer account identifiers and API tokens in an unrestricted vector memory service.). Inspect memory contents, tenant filters, secret scans and retention deletion tests.
D:This diagnostic relates to a different failure (A long-running coding agent begins optimizing front-end performance after being assigned a database migration review.). For the reported case inspect: Inspect retained context summaries, artifact references and decision coverage.
Question 289
A developer evaluates this agent workflow: A GitHub MCP server is configured with a token that can administer all repositories, though the agent only needs to read one issue. Which engineering concept is MOST relevant?
- Structured tool contracts prevent ambiguous partial execution and false-positive completion claims.
- Remote tool authorization requires appropriate identity and operation scope, not merely successful server discovery.
- Workflow event trust level determines safe secret exposure and deployment permissions.
- MCP servers inherit credential capabilities and must not be treated as automatically sandboxed.
Explanation
Correct Answer
D:MCP servers inherit credential capabilities and must not be treated as automatically sandboxed. This concept explains the proper correction. The corresponding intervention is: Restrict the token and server tool exposure to the target repository and required read operations.
Incorrect Answers
A:Structured tool contracts prevent ambiguous partial execution and false-positive completion claims. This concept governs a different case (A coding agent repeatedly calls a deployment tool with malformed JSON and silently assumes deployment succeeded.). The correct principle here is: MCP servers inherit credential capabilities and must not be treated as automatically sandboxed.
B:Remote tool authorization requires appropriate identity and operation scope, not merely successful server discovery. This concept governs a different case (A remote GitHub MCP integration can list issues but cannot update labels despite the user requesting label triage.). The correct principle here is: MCP servers inherit credential capabilities and must not be treated as automatically sandboxed.
C:Workflow event trust level determines safe secret exposure and deployment permissions. This concept governs a different case (A CI remediation agent proposes changing deployment secrets because tests fail in an untrusted pull-request environment.). The correct principle here is: MCP servers inherit credential capabilities and must not be treated as automatically sandboxed.
Question 290
A developer evaluates this agent workflow: An AI-authored pull request passes unit tests but introduces a vulnerable dependency and exposed credential. Which engineering concept is MOST relevant?
- Repeatable evaluation requires stable inputs, environment and code provenance.
- Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss.
- Coverage volume is not equivalent to behavioral correctness or useful test strength.
- Error analysis requires distinguishing causal failure types before selecting a tuning strategy.
Explanation
Correct Answer
B:Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss. This concept explains the proper correction. The corresponding intervention is: Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
Incorrect Answers
A: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: Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss.
C: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: Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss.
D:Error analysis requires distinguishing causal failure types before selecting a tuning strategy.