Microsoft GH-600 Practice Test 33
Question 320
Which review MOST directly identifies the failing control or environment in this situation? Three agent tasks modify the same generated client, and they start concurrently before the API schema is finalized.
- Validate sample plans against the agreed schema and review missing assumptions.
- Compare approved file globs, diff history, test failure provenance and escalation records.
- Compare task graph, base schema SHA, branch changes and merged contract tests.
- Inspect repository tool scopes, attempted cross-repository calls and access review decisions.
Explanation
Correct Answer
C:Compare task graph, base schema SHA, branch changes and merged contract tests. Dependency-aware planning prevents parallel work from creating avoidable incompatible artifacts. Next action: Sequence schema approval before client generation and run only independent work in parallel.
Incorrect Answers
A:This diagnostic relates to a different failure (A team cannot compare agent implementation plans because every agent outputs a different free-form narrative.). For the reported case inspect: Compare task graph, base schema SHA, branch changes and merged contract tests.
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 task graph, base schema SHA, branch changes and merged contract tests.
D: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.). For the reported case inspect: Compare task graph, base schema SHA, branch changes and merged contract tests.
Question 321
Consider an AI agent in the GitHub software development lifecycle: A long-running coding agent begins optimizing front-end performance after being assigned a database migration review. What is the BEST next action?
- Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
- Reset role-specific transient memory and load fresh authorized deployment context when switching responsibilities.
- Set time-to-live and freshness checks for stored dependency recommendations, then retrieve the current policy on use.
- Store verified tool outcomes with stable issue and PR IDs in durable execution state.
Explanation
Correct Answer
A:Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries. This action addresses the stated GitHub agent engineering issue. Drift detection measures current activity against a durable intent baseline. Verification: The agent flags unrelated optimization work and returns to the migration review without side changes.
Incorrect Answers
B:This action fits a different scenario (A review agent becomes a deployment agent but still carries read-only review assumptions and old sensitive snippets.), not the reported problem. Here the appropriate action is: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
C:This action fits a different scenario (A repository agent keeps recommending a deprecated dependency version from memory months after the upgrade policy changed.), not the reported problem.
D:This action fits a different scenario (An agent changes a GitHub issue label, then opens a PR without recording whether the label operation succeeded.), not the reported problem. Here the appropriate action is: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
Question 322
For this GH-600 agent-governance case, choose the most defensible action: A team requires manager approval for every harmless README typo, delaying work while high-risk code still receives weak review.
- Minimize or redact personal and sensitive fields and require appropriate review before publishing artifacts.
- Require explicit policy review, restrict permissions to necessary job operations and test a narrow replacement.
- Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
- Apply branch protection or rulesets and require checks and appropriate reviewers before merge.
Explanation
Correct Answer
C:Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes. This action addresses the stated GitHub agent engineering issue. Human intervention should focus on material risk rather than create uniform bureaucracy. Verification: Small documentation corrections move faster without reducing review protection on high-impact changes.
Incorrect Answers
A:This action fits a different scenario (An AI agent drafts user-facing explanations that reveal private customer incident details obtained from a diagnostic log.), not the reported problem. Here the appropriate action is: Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
B:This action fits a different scenario (A repository assistant wants to change a GitHub Actions job token from read-only to write-all after a failing check.), not the reported problem.
D:This action fits a different scenario (An agent's change targets a protected release branch, but its implementation plan bypasses required code review.), not the reported problem.
Question 323
Which review MOST directly identifies the failing control or environment in this situation? Three agents simultaneously overwrite a common task-progress JSON file, losing two agents' completions.
- Inspect retained context summaries, artifact references and decision coverage.
- Inspect state version history, concurrent write logs and final task totals.
- Review memory timestamps, policy version, expiry behavior and retrieval records.
- Inspect decision version IDs, competing edits, reconciliation note and downstream contract tests.
Explanation
Correct Answer
B:Inspect state version history, concurrent write logs and final task totals. Shared agent memory needs concurrency control just like any mutable database record. Next action: Use serialized writes or compare-and-swap version checks with conflict detection on shared state.
Incorrect Answers
A:This diagnostic relates to a different failure (A support agent carries hundreds of obsolete build logs into every new task and starts ignoring the current requirement.). For the reported case inspect: Inspect state version history, concurrent write logs and final task totals.
C:This diagnostic relates to a different failure (A repository agent keeps recommending a deprecated dependency version from memory months after the upgrade policy changed.). For the reported case inspect: Inspect state version history, concurrent write logs and final task totals.
D:This diagnostic relates to a different failure (Two agents update the same design decision document with incompatible API contracts.). Inspect decision version IDs, competing edits, reconciliation note and downstream contract tests.
Question 324
Before making a new change, what evidence BEST diagnoses this agentic workflow issue? A shared agent is simultaneously asked to implement code and independently approve its own security review.
- Inspect issue linkage, branch target, PR diff, workflow checks and reviewer requests.
- Compare approved file globs, diff history, test failure provenance and escalation records.
- Check PR review identities, configured roles and branch/ruleset approval events.
- Inspect issue acceptance text, tested monetary fixtures, result logs and business-owner signoff.
Explanation
Correct Answer
C:Check PR review identities, configured roles and branch/ruleset approval events. Separation of duties remains important when both implementation and review are AI-assisted. Next action: Assign implementation and review to distinct actors with separate permissions and a required human merge decision.
Incorrect Answers
A:This diagnostic relates to a different failure (A team wants an agent to implement a small documentation change while preserving ordinary GitHub review and audit history.). For the reported case inspect: Check PR review identities, configured roles and branch/ruleset approval events.
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: Check PR review identities, configured roles and branch/ruleset approval events.
D:This diagnostic relates to a different failure (An agent reports a checkout feature complete because it compiled, despite failure to meet tax rounding requirements.). Inspect issue acceptance text, tested monetary fixtures, result logs and business-owner signoff.
Question 325
For this GH-600 agent-governance case, choose the most defensible action: A review agent becomes a deployment agent but still carries read-only review assumptions and old sensitive snippets.
- Reset role-specific transient memory and load fresh authorized deployment context when switching responsibilities.
- Use versioned authoritative state and require conflict resolution against the latest approved decision before continuing.
- Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
- Define explicit queued, planning, approved, executing, blocked, reviewing and completed states with valid transitions.
Explanation
Correct Answer
A:Reset role-specific transient memory and load fresh authorized deployment context when switching responsibilities. This action addresses the stated GitHub agent engineering issue. A change in role or trust boundary may require resetting prior context rather than blindly inheriting it. Verification: New invocations use only deployment-scoped credentials and relevant current release state.
Incorrect Answers
B:This action fits a different scenario (Two agents update the same design decision document with incompatible API contracts.), not the reported problem. Here the appropriate action is: Reset role-specific transient memory and load fresh authorized deployment context when switching responsibilities.
C:This action fits a different scenario (A long-running coding agent begins optimizing front-end performance after being assigned a database migration review.), not the reported problem. Here the appropriate action is: Reset role-specific transient memory and load fresh authorized deployment context when switching responsibilities.
D: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: Reset role-specific transient memory and load fresh authorized deployment context when switching responsibilities.
Question 326
A GitHub agentic development workflow faces this issue: A tool call to create a pull request times out; the agent cannot tell whether the PR was created. Which change MOST directly resolves it?
- Configure permitted setup steps and package access through the supported agent environment mechanism with least privilege.
- Use the supported review-and-approve workflow execution path before treating CI status as validation.
- Query repository state using a stable idempotency key or unique branch before retrying creation.
- Validate required arguments against the tool schema and handle validation errors before declaring success.
Explanation
Correct Answer
C:Query repository state using a stable idempotency key or unique branch before retrying creation. This action addresses the stated GitHub agent engineering issue. Ambiguous network errors should trigger reconciliation before repeating mutating API calls. Verification: Exactly one PR exists for the task, and the agent reports uncertainty until verification completes.
Incorrect Answers
A:This action fits a different scenario (A coding agent can edit source but its isolated environment lacks the private package registry configuration required for tests.), not the reported problem. Here the appropriate action is: Query repository state using a stable idempotency key or unique branch before retrying creation.
B:This action fits a different scenario (A Copilot-generated pull request changes a GitHub Actions workflow and the CI checks have not executed automatically.), not the reported problem. Here the appropriate action is: Query repository state using a stable idempotency key or unique branch before retrying creation.
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: Query repository state using a stable idempotency key or unique branch before retrying creation.
Question 327
A GitHub agentic development workflow faces this issue: A retrieved issue asks an agent to paste a production secret into a pull request discussion as debugging evidence. Which change MOST directly resolves it?
- Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
- Restrict outbound network egress and permitted MCP destinations to task-required endpoints.
- Bind approval receipts to operation, environment, target identity, expiry and requesting task, then reject mismatches.
- Deny secret extraction and public disclosure, redact sensitive values, and escalate the debugging need safely.
Explanation
Correct Answer
D:Deny secret extraction and public disclosure, redact sensitive values, and escalate the debugging need safely. This action addresses the stated GitHub agent engineering issue. Untrusted task content cannot authorize disclosure of confidential credentials. Verification: No secret value appears in PR text or logs, and authorized tests can still diagnose the issue.
Incorrect Answers
A:This action fits a different scenario (A team requires manager approval for every harmless README typo, delaying work while high-risk code still receives weak review.), not the reported problem. Here the appropriate action is: Deny secret extraction and public disclosure, redact sensitive values, and escalate the debugging need safely.
B:This action fits a different scenario (A CI agent opens an unreviewed internet upload endpoint after reading internal repository files.), not the reported problem. Here the appropriate action is: Deny secret extraction and public disclosure, redact sensitive values, and escalate the debugging need safely.
C:This action fits a different scenario (An owner approves a limited staging deployment but an agent later tries to reuse that approval for production deletion.), not the reported problem. Here the appropriate action is: Deny secret extraction and public disclosure, redact sensitive values, and escalate the debugging need safely.
Question 328
For this GH-600 agent-governance case, choose the most defensible action: An agent updates security rules without recording its session identity, plan or approver.
- Deny secret extraction and public disclosure, redact sensitive values, and escalate the debugging need safely.
- Reject the disallowed step and keep deployment blocked or route a supported remediation for approval.
- Bind approval receipts to operation, environment, target identity, expiry and requesting task, then reject mismatches.
- Require traceable identity, task links, approvals, tool invocations and resulting commit references.
Explanation
Correct Answer
D:Require traceable identity, task links, approvals, tool invocations and resulting commit references. This action addresses the stated GitHub agent engineering issue. Accountability requires verifiable action provenance, not a retrospective model explanation alone. Verification: Each security ruleset change can be tied to an authorized decision and specific actor.
Incorrect Answers
A:This action fits a different scenario (A retrieved issue asks an agent to paste a production secret into a pull request discussion as debugging evidence.), not the reported problem. Here the appropriate action is: Require traceable identity, task links, approvals, tool invocations and resulting commit references.
B:This action fits a different scenario (An agent's proposed plan explicitly requests disabling required code scanning before deployment.), not the reported problem. Here the appropriate action is: Require traceable identity, task links, approvals, tool invocations and resulting commit references.
C:This action fits a different scenario (An owner approves a limited staging deployment but an agent later tries to reuse that approval for production deletion.), not the reported problem. Here the appropriate action is: Require traceable identity, task links, approvals, tool invocations and resulting commit references.
Question 329
Which measurable outcome demonstrates that the following agent issue is resolved? A repository needs unrelated README cleanup and isolated unit tests added to separate modules.
- The specialist returns a scoped finding without receiving unrelated secret material.
- No downstream branch merges code based on the invalid schema and retained work is labeled obsolete.
- Sensitive changes map to an accountable agent, approval and tested commit SHA.
- Both tasks finish without overlapping edits or unexpected dependency changes.
Explanation
Correct Answer
D:Both tasks finish without overlapping edits or unexpected dependency changes. The corrective action is: Run two agents in parallel on disjoint branches with explicit scope and a later reviewed merge.
Incorrect Answers
A:This outcome is relevant to another case (A main agent asks a specialist to inspect dependency security but inadvertently passes unrelated client secrets to its context.). For the stated scenario verify: Both tasks finish without overlapping edits or unexpected dependency changes.
B:This outcome is relevant to another case (A schema validation worker rejects the API contract while dependent client and test agents continue implementing it.). For the stated scenario verify: Both tasks finish without overlapping edits or unexpected dependency changes.
C:This outcome is relevant to another case (An agent team produces a large release but the reviewer cannot tell which agent edited sensitive workflow permissions.). For the stated scenario verify: Both tasks finish without overlapping edits or unexpected dependency changes.
Question 330
A platform team reports: A code scanning alert flags a generated test fixture as secret material while production files are clean. Which agent-engineering intervention is MOST appropriate?
- Maintain a separate holdout fixture set and compare training/tuning cases with unseen validation cases.
- Inspect tool-call request and response traces, then reconcile actual GitHub issue history before marking complete.
- Confirm the alert context, rule and fixture provenance; document a narrowly reviewed disposition if appropriate.
- Classify the failure as environment incompatibility, align approved runtime versions and rerun tests.
Explanation
Correct Answer
C:Confirm the alert context, rule and fixture provenance; document a narrowly reviewed disposition if appropriate. This action addresses the stated GitHub agent engineering issue. Evaluation requires interpreting security findings rather than blindly counting alerts. Verification: Security checks retain true-positive detection while the reviewed fixture alert has a justified audit trail.
Incorrect Answers
A:This action fits a different scenario (A team tunes agent instructions on the exact same five test cases used for final evaluation.), not the reported problem. Here the appropriate action is: Confirm the alert context, rule and fixture provenance; document a narrowly reviewed disposition if appropriate.
B:This action fits a different scenario (An agent's final summary says it updated an issue, but the issue has no change.), not the reported problem. Here the appropriate action is: Confirm the alert context, rule and fixture provenance; document a narrowly reviewed disposition if appropriate.
D:This action fits a different scenario (An agent's tests fail only in the runner because Node is older than the repository's supported runtime.), not the reported problem. Here the appropriate action is: Confirm the alert context, rule and fixture provenance; document a narrowly reviewed disposition if appropriate.