Microsoft GH-600 Practice Test 41
Question 400
An engineer must find the underlying cause: A retrieved issue asks an agent to paste a production secret into a pull request discussion as debugging evidence. Which check should be prioritized?
- Inspect issue text trust level, secret access audit and PR/log secret scans.
- Review migration diff, data retention obligations, backup verification and human approval event.
- Inspect data classification, repository owner, upload attempts and approved transfer record.
- Inspect environment identity, approval timestamp, delete-tool policy and recovery evidence.
Explanation
Correct Answer
A:Inspect issue text trust level, secret access audit and PR/log secret scans. Untrusted task content cannot authorize disclosure of confidential credentials. Next action: Deny secret extraction and public disclosure, redact sensitive values, and escalate the debugging need safely.
Incorrect Answers
B:This diagnostic relates to a different failure (An autonomous coding agent proposes dropping a column containing customer history as part of a schema cleanup.). For the reported case inspect: Inspect issue text trust level, secret access audit and PR/log secret scans.
C:This diagnostic relates to a different failure (An agent is asked to migrate regulated source code and associated customer logs into a personal public workspace.). Inspect data classification, repository owner, upload attempts and approved transfer record.
D:This diagnostic relates to a different failure (An agent proposes deleting a production environment to clean up a failed staging deployment.).
Question 401
What underlying agent-development control MOST directly applies to this situation? A documentation agent repeatedly modifies application code when asked to update API reference examples.
- Agent work is review-ready when outcomes and residual uncertainty are inspectable in standard development tooling.
- Agent suitability depends on reversible scope and available evaluation evidence, not just task availability.
- Custom-agent profiles communicate specialized goals and can limit tool exposure in supported GitHub surfaces.
- Compiling code is a weaker success signal than business behavior validated against predeclared criteria.
Explanation
Correct Answer
C:Custom-agent profiles communicate specialized goals and can limit tool exposure in supported GitHub surfaces. This concept explains the proper correction. The corresponding intervention is: Define a reusable documentation custom-agent profile with a narrow role, allowed tools and documentation-focused instructions.
Incorrect Answers
A:Agent work is review-ready when outcomes and residual uncertainty are inspectable in standard development tooling.
B:Agent suitability depends on reversible scope and available evaluation evidence, not just task availability.
D:Compiling code is a weaker success signal than business behavior validated against predeclared criteria.
Question 402
Which review MOST directly identifies the failing control or environment in this situation? A custom agent cannot query the approved issue catalog because its MCP server was never configured in the environment.
- Inspect MCP server configuration, connection health, tool listing and authorized test query.
- Review setup configuration, secret redaction, cold-start logs and dependency resolution.
- Check selected repository, task permissions, branch push targets and cross-repository API calls.
- Trace successful intermediate calls, cleanup results and remaining durable references.
Explanation
Correct Answer
A:Inspect MCP server configuration, connection health, tool listing and authorized test query. An MCP tool is available only after an appropriate server connection and tool discovery succeed. Next action: Register the approved MCP endpoint in the supported agent configuration and verify authentication and transport.
Incorrect Answers
B:This diagnostic relates to a different failure (A coding agent can edit source but its isolated environment lacks the private package registry configuration required for tests.). Review setup configuration, secret redaction, cold-start logs and dependency resolution.
C:This diagnostic relates to a different failure (A Copilot cloud agent is assigned a repository task but tries to modify code in a second repository in the same session.). For the reported case inspect: Inspect MCP server configuration, connection health, tool listing and authorized test query.
D:This diagnostic relates to a different failure (An agent creates a branch and updates an issue label, then its final pull-request creation fails.). Trace successful intermediate calls, cleanup results and remaining durable references.
Question 403
A developer evaluates this agent workflow: A repository needs unrelated README cleanup and isolated unit tests added to separate modules. Which engineering concept is MOST relevant?
- Isolated success does not guarantee compatible combined changes.
- Parallelism is appropriate when outputs and state do not conflict.
- Failed dependencies must propagate to affected downstream workflow tasks.
- Contradictory multi-agent outputs require reconciliation, not arbitrary vote counting.
Explanation
Correct Answer
B:Parallelism is appropriate when outputs and state do not conflict. This concept explains the proper correction. The corresponding intervention is: Run two agents in parallel on disjoint branches with explicit scope and a later reviewed merge.
Incorrect Answers
A:Isolated success does not guarantee compatible combined changes. This concept governs a different case (Two agents independently change a function signature in incompatible ways, but both local branches pass tests.). The correct principle here is: Parallelism is appropriate when outputs and state do not conflict.
C:Failed dependencies must propagate to affected downstream workflow tasks. This concept governs a different case (A schema validation worker rejects the API contract while dependent client and test agents continue implementing it.). The correct principle here is: Parallelism is appropriate when outputs and state do not conflict.
D:Contradictory multi-agent outputs require reconciliation, not arbitrary vote counting. This concept governs a different case (A security-review agent recommends disabling a workflow while an implementation agent says it is safe to enable.). The correct principle here is: Parallelism is appropriate when outputs and state do not conflict.
Question 404
A developer evaluates this agent workflow: A team requires manager approval for every harmless README typo, delaying work while high-risk code still receives weak review. Which engineering concept is MOST relevant?
- Human authorization must be scoped to the actual side effect and cannot be generalized across operations.
- Human intervention should focus on material risk rather than create uniform bureaucracy.
- Irreversible or compliance-sensitive actions warrant an explicit human-in-the-loop gate.
- Untrusted task content cannot authorize disclosure of confidential credentials.
Explanation
Correct Answer
B:Human intervention should focus on material risk rather than create uniform bureaucracy. This concept explains the proper correction. The corresponding intervention is: Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
Incorrect Answers
A:Human authorization must be scoped to the actual side effect and cannot be generalized across operations. This concept governs a different case (An owner approves a limited staging deployment but an agent later tries to reuse that approval for production deletion.). The correct principle here is: Human intervention should focus on material risk rather than create uniform bureaucracy.
C:Irreversible or compliance-sensitive actions warrant an explicit human-in-the-loop gate. This concept governs a different case (An agent proposes deleting a production environment to clean up a failed staging deployment.). The correct principle here is: Human intervention should focus on material risk rather than create uniform bureaucracy.
D:Untrusted task content cannot authorize disclosure of confidential credentials. This concept governs a different case (A retrieved issue asks an agent to paste a production secret into a pull request discussion as debugging evidence.). The correct principle here is: Human intervention should focus on material risk rather than create uniform bureaucracy.
Question 405
Which proposed action creates the CLEAREST avoidable governance or delivery risk? A dependency-scanning worker cannot access a restricted registry and repeatedly requests wider permissions.
- Verify expected environment dependencies before diagnosing generated code.
- Give all workers repository administrator credentials to clear one restricted registry error.
- Inspect the exact tool response and system-of-record state before claiming success.
- Limit external data access to the specific approved repository and tenant.
Explanation
Correct Answer
B:Give all workers repository administrator credentials to clear one restricted registry error. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Multi-agent recovery should preserve least privilege and allow targeted human decisions. Safer action: Escalate with precise missing authorization and pause the affected dependency task rather than broadening access automatically.
Incorrect Answers
A:Verify expected environment dependencies before diagnosing generated code. This is an appropriate general safeguard, not the harmful shortcut. Tool and runtime failures are not always product defects. Targeted remediation: Escalate with precise missing authorization and pause the affected dependency task rather than broadening access automatically.
C: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: Escalate with precise missing authorization and pause the affected dependency task rather than broadening access automatically.
D:Limit external data access to the specific approved repository and tenant. This is an appropriate general safeguard, not the harmful shortcut. Context retrieval should respect authorization boundaries. Targeted remediation: Escalate with precise missing authorization and pause the affected dependency task rather than broadening access automatically.
Question 406
Which proposed action creates the CLEAREST avoidable governance or delivery risk? A package upgrade agent fails immediately because the development environment does not install the required SDK.
- Teach the agent to skip unavailable tests and report the upgrade production-ready.
- Limit external data access to the specific approved repository and tenant.
- Retain only task-relevant agent context under defined privacy and retention controls.
- Re-check current permission scopes before remote MCP calls.
Explanation
Correct Answer
A:Teach the agent to skip unavailable tests and report the upgrade production-ready. This shortcut bypasses the necessary constraint or makes the outcome unreliable. A predictable development environment is a prerequisite for reproducible agent-generated code. Safer action: Specify reproducible environment setup and dependency preparation before enabling implementation work.
Incorrect Answers
B:Limit external data access to the specific approved repository and tenant. This is an appropriate general safeguard, not the harmful shortcut. Context retrieval should respect authorization boundaries. Targeted remediation: Specify reproducible environment setup and dependency preparation before enabling implementation work.
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: Specify reproducible environment setup and dependency preparation before enabling implementation work.
D:Re-check current permission scopes before remote MCP calls. This is an appropriate general safeguard, not the harmful shortcut. Connected services inherit credential capability and must be constrained. Targeted remediation: Specify reproducible environment setup and dependency preparation before enabling implementation work.
Question 407
Before making a new change, what evidence BEST diagnoses this agentic workflow issue? A CI agent opens an unreviewed internet upload endpoint after reading internal repository files.
- Inspect permissions for the active agent identity and denied privileged operations.
- Review action risk matrix, permission tiers and required approval records.
- Inspect egress firewall policy, outbound request logs and successful approved traffic.
- Inspect example output, sensitivity classification and publishing approval.
Explanation
Correct Answer
C:Inspect egress firewall policy, outbound request logs and successful approved traffic. Network and tool boundaries enforce safety beyond text instructions and model intent. Next action: Restrict outbound network egress and permitted MCP destinations to task-required endpoints.
Incorrect Answers
A:This diagnostic relates to a different failure (A documentation agent has a token that can edit organization secret settings, despite needing only to read code.). For the reported case inspect: Inspect egress firewall policy, outbound request logs and successful approved traffic.
B:This diagnostic relates to a different failure (An agent can correct comments safely but its operator also proposes letting it rotate production credentials without review.). For the reported case inspect: Inspect egress firewall policy, outbound request logs and successful approved traffic.
D:This diagnostic relates to a different failure (An AI agent drafts user-facing explanations that reveal private customer incident details obtained from a diagnostic log.). For the reported case inspect: Inspect egress firewall policy, outbound request logs and successful approved traffic.
Question 408
Consider an AI agent in the GitHub software development lifecycle: An agent creates a branch and updates an issue label, then its final pull-request creation fails. What is the BEST next action?
- Expose only required repository read and scoped branch-write tools while withholding unrelated production mutation tools.
- Give each agent a distinct working branch based on a recorded base commit and merge through controlled review.
- Record committed side effects and perform approved compensating cleanup or escalate while preserving audit history.
- Validate required arguments against the tool schema and handle validation errors before declaring success.
Explanation
Correct Answer
C:Record committed side effects and perform approved compensating cleanup or escalate while preserving audit history. This action addresses the stated GitHub agent engineering issue. Multi-step tool workflows need explicit partial-failure recovery rather than an all-or-nothing assumption. Verification: The failed workflow leaves either a usable recovery branch or a documented reverted state with no orphaned labels.
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: Record committed side effects and perform approved compensating cleanup or escalate while preserving audit history.
B:This action fits a different scenario (Two agent sessions commit to the same feature branch and overwrite each other's generated patches.), not the reported problem.
D:This action fits a different scenario (A coding agent repeatedly calls a deployment tool with malformed JSON and silently assumes deployment succeeded.), not the reported problem. Here the appropriate action is: Record committed side effects and perform approved compensating cleanup or escalate while preserving audit history.
Question 409
A GitHub agentic development workflow faces this issue: A schema validation worker rejects the API contract while dependent client and test agents continue implementing it. Which change MOST directly resolves it?
- Run a coordinated integration test on the combined candidate after individual worker validation.
- Wait for schema approval and versioned artifact publication before starting schema-dependent client generation.
- Choose an integration order, rebase the second branch and rerun dependency resolution and tests on the combined state.
- Cancel or pause dependent tasks when their prerequisite contract is rejected, then restart from approved revision.
Explanation
Correct Answer
D:Cancel or pause dependent tasks when their prerequisite contract is rejected, then restart from approved revision. This action addresses the stated GitHub agent engineering issue. Failed dependencies must propagate to affected downstream workflow tasks. Verification: No downstream branch merges code based on the invalid schema and retained work is labeled obsolete.
Incorrect Answers
A:This action fits a different scenario (Several worker branches each pass unit tests but the integrated feature fails an end-to-end checkout flow.), not the reported problem. Here the appropriate action is: Cancel or pause dependent tasks when their prerequisite contract is rejected, then restart from approved revision.
B:This action fits a different scenario (A client-generation agent starts before the schema agent has completed its approved API contract.), not the reported problem. Here the appropriate action is: Cancel or pause dependent tasks when their prerequisite contract is rejected, then restart from approved revision.
C:This action fits a different scenario (Two approved agents update the same lockfile with different compatible dependency versions from different baselines.), not the reported problem. Here the appropriate action is: Cancel or pause dependent tasks when their prerequisite contract is rejected, then restart from approved revision.
Question 410
A developer evaluates this agent workflow: An agent session is interrupted after writing tests but before implementing the bug fix. Which engineering concept is MOST relevant?
- Memory retrieval must preserve provenance so recency and authority can be assessed.
- Long-term agent memory may need accountable records but should have purposeful retention and access limits.
- Agent memory should distinguish intended actions from verified external side effects.
- A recoverable task requires a persistent progress checkpoint separate from conversational memory.
Explanation
Correct Answer
D:A recoverable task requires a persistent progress checkpoint separate from conversational memory. This concept explains the proper correction. The corresponding intervention is: Checkpoint base SHA, changed paths, passing tests, failed tests and next steps in durable task metadata.
Incorrect Answers
A:Memory retrieval must preserve provenance so recency and authority can be assessed. This concept governs a different case (A maintenance agent retrieves a stale wiki snippet that contradicts the current signed release procedure.). The correct principle here is: A recoverable task requires a persistent progress checkpoint separate from conversational memory.
B:Long-term agent memory may need accountable records but should have purposeful retention and access limits. This concept governs a different case (A project deletes agent decision logs after each successful merge although a security audit needs to reconstruct approvals.). The correct principle here is: A recoverable task requires a persistent progress checkpoint separate from conversational memory.
C:Agent memory should distinguish intended actions from verified external side effects. This concept governs a different case (An agent changes a GitHub issue label, then opens a PR without recording whether the label operation succeeded.). The correct principle here is: A recoverable task requires a persistent progress checkpoint separate from conversational memory.