Microsoft GH-600 Practice Test 17
Question 160
A platform team reports: A backend worker tells a frontend worker only that the API is done, omitting authentication and error response rules. Which agent-engineering intervention is MOST appropriate?
- Pass a versioned handoff artifact with endpoint contracts, sample responses, constraints and test references.
- Restore durable task state and inspect current worker sessions before restarting only missing work.
- Detect overlapping API signatures and run combined contract tests before accepting either branch.
- Collect per-worker heartbeat, last tool progress, error state and branch activity and define stalled thresholds.
Explanation
Correct Answer
A:Pass a versioned handoff artifact with endpoint contracts, sample responses, constraints and test references. This action addresses the stated GitHub agent engineering issue. Agent handoffs should transfer explicit deliverables and assumptions rather than vague completion claims. Verification: The frontend integrates without guessing token handling or status codes and contract tests pass.
Incorrect Answers
B:This action fits a different scenario (An orchestration controller crashes after two agents finish and one is still executing, losing temporary coordination memory.), not the reported problem. Here the appropriate action is: Pass a versioned handoff artifact with endpoint contracts, sample responses, constraints and test references.
C:This action fits a different scenario (Two agents independently change a function signature in incompatible ways, but both local branches pass tests.), not the reported problem. Here the appropriate action is: Pass a versioned handoff artifact with endpoint contracts, sample responses, constraints and test references.
D: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: Pass a versioned handoff artifact with endpoint contracts, sample responses, constraints and test references.
Question 161
A GitHub agentic development workflow faces this issue: An agent edits a tax calculator and reports success solely because the build passes. Which change MOST directly resolves it?
- Persist run ID, commit SHA, inputs, scanner output and reproducible test artifacts under reviewed retention policy.
- Measure end-to-end review acceptance and risk alongside latency, then optimize safe bottlenecks.
- Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
- Define expected outputs for representative monetary cases and compare computed values with independent acceptance fixtures.
Explanation
Correct Answer
D:Define expected outputs for representative monetary cases and compare computed values with independent acceptance fixtures. This action addresses the stated GitHub agent engineering issue. Evaluation needs observable task-specific outcome oracles beyond the model's self-report. Verification: Boundary and rounding tests match the approved tax calculation rules after the agent patch.
Incorrect Answers
A:This action fits a different scenario (An agent evaluation report displays pass/fail but discards the actual test logs and code revision tested.), not the reported problem. Here the appropriate action is: Define expected outputs for representative monetary cases and compare computed values with independent acceptance fixtures.
B:This action fits a different scenario (An organization reduces agent execution time by disabling all security checks, causing rejected changes to increase.), not the reported problem.
C:This action fits a different scenario (An AI-authored pull request passes unit tests but introduces a vulnerable dependency and exposed credential.), not the reported problem. Here the appropriate action is: Define expected outputs for representative monetary cases and compare computed values with independent acceptance fixtures.
Question 162
A developer evaluates this agent workflow: A Copilot cloud agent is assigned a repository task but tries to modify code in a second repository in the same session. Which engineering concept is MOST relevant?
- Cloud agent task scope is repository-bound in supported workflows and should not be bypassed through token expansion.
- Multi-step tool workflows need explicit partial-failure recovery rather than an all-or-nothing assumption.
- CI invocation must respect workflow event permissions and the exact code revision being evaluated.
- Agent environment setup must be reproducible and scoped rather than dependent on a developer laptop.
Explanation
Correct Answer
A:Cloud agent task scope is repository-bound in supported workflows and should not be bypassed through token expansion. This concept explains the proper correction. The corresponding intervention is: Split work into separately authorized repository-scoped tasks and coordinate through reviewed interface changes.
Incorrect Answers
B:This concept governs a different case (An agent creates a branch and updates an issue label, then its final pull-request creation fails.). Multi-step tool workflows need explicit partial-failure recovery rather than an all-or-nothing assumption.
C:CI invocation must respect workflow event permissions and the exact code revision being evaluated. This concept governs a different case (A team wants an agent's proposed change checked by an existing CI workflow before merge.). The correct principle here is: Cloud agent task scope is repository-bound in supported workflows and should not be bypassed through token expansion.
D:Agent environment setup must be reproducible and scoped rather than dependent on a developer laptop.
Question 163
For this GH-600 agent-governance case, choose the most defensible action: A project deletes agent decision logs after each successful merge although a security audit needs to reconstruct approvals.
- Retain approved plan and tool-decision artifacts under the organization's auditable retention policy.
- Use serialized writes or compare-and-swap version checks with conflict detection on shared state.
- Store verified tool outcomes with stable issue and PR IDs in durable execution state.
- Partition retrieval indexes and authorization scopes by tenant and revalidate identity on each query.
Explanation
Correct Answer
A:Retain approved plan and tool-decision artifacts under the organization's auditable retention policy. This action addresses the stated GitHub agent engineering issue. Long-term agent memory may need accountable records but should have purposeful retention and access limits. Verification: An auditor traces a merged change to its request, risk classification, approvals and tool results.
Incorrect Answers
B:This action fits a different scenario (Three agents simultaneously overwrite a common task-progress JSON file, losing two agents' completions.), not the reported problem. Here the appropriate action is: Retain approved plan and tool-decision artifacts under the organization's auditable retention policy.
C: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: Retain approved plan and tool-decision artifacts under the organization's auditable retention policy.
D:This action fits a different scenario (An enterprise multi-agent system retrieves a private client's incident notes while processing another client's repository.), not the reported problem. Here the appropriate action is: Retain approved plan and tool-decision artifacts under the organization's auditable retention policy.
Question 164
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: A main agent asks a specialist to inspect dependency security but inadvertently passes unrelated client secrets to its context.
- Verification: The integrated branch passes cross-module scenarios and not just isolated unit suites.
- Unsafe shortcut: Send full confidential tool transcripts to every new specialist to maximize shared context.
- Action: Define separate specialist agents with task-specific instructions and tool restrictions, and delegate by expertise.
- Action: Delegate only task-relevant files and authorized permissions to a separated specialist context.
- Verification: The specialist returns a scoped finding without receiving unrelated secret material.
Explanation
Correct Answers
D:Action: Delegate only task-relevant files and authorized permissions to a separated specialist context. This fixes the target workflow. Subagents benefit from isolated context when inputs and tools are constrained to their mandate.
E:Verification: The specialist returns a scoped finding without receiving unrelated secret material. This checks the intended result. Subagents benefit from isolated context when inputs and tools are constrained to their mandate.
Incorrect Answers
A:Verification: The integrated branch passes cross-module scenarios and not just isolated unit suites. This evidence relates to another situation (Several worker branches each pass unit tests but the integrated feature fails an end-to-end checkout flow.). For the target verify: The specialist returns a scoped finding without receiving unrelated secret material.
B:Unsafe shortcut: Send full confidential tool transcripts to every new specialist to maximize shared context. This is neither an appropriate remediation nor valid evidence. Subagents benefit from isolated context when inputs and tools are constrained to their mandate. Safer action: Delegate only task-relevant files and authorized permissions to a separated specialist context.
C:Action: Define separate specialist agents with task-specific instructions and tool restrictions, and delegate by expertise. This action responds to a different problem (One generalized agent repeatedly confuses localization review with TypeScript compiler fixes.). For the target use: Delegate only task-relevant files and authorized permissions to a separated specialist context.
Question 165
Which result would BEST validate the corrected GitHub agent workflow? An agent reports a missing file after a repository API returned 403 permission denied.
- The same file is retrieved with the required grants while unrelated access stays denied.
- 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.
- Improvement persists on previously unseen held-out cases without unexpected safety regressions.
Explanation
Correct Answer
A:The same file is retrieved with the required grants while unrelated access stays denied. The corrective action is: Classify the failure as authorization or tool access rather than absent repository content and correct the authorized scope.
Incorrect Answers
B:This outcome is relevant to another case (An agent's final summary says it updated an issue, but the issue has no change.). For the stated scenario verify: The same file is retrieved with the required grants while unrelated access stays denied.
C: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 same file is retrieved with the required grants while unrelated access stays denied.
D:This outcome is relevant to another case (A team tunes agent instructions on the exact same five test cases used for final evaluation.).
Question 166
Which review MOST directly identifies the failing control or environment in this situation? An agent evaluation report displays pass/fail but discards the actual test logs and code revision tested.
- Review incident timeline, root cause, new fixture and subsequent evaluation outcomes.
- Inspect task assignment, runner variables, tool inventory and matched results.
- Inspect lockfile hashes, test scripts, runner image and run history.
- Inspect artifact links, SHA binding and independent rerun evidence.
Explanation
Correct Answer
D:Inspect artifact links, SHA binding and independent rerun evidence. Evaluation signals are only auditable when linked to specific reproducible artifacts. Next action: Persist run ID, commit SHA, inputs, scanner output and reproducible test artifacts under reviewed retention policy.
Incorrect Answers
A:This diagnostic relates to a different failure (An agent's code passed PR tests but caused a production regression that was not fed back into future evaluations.). For the reported case inspect: Inspect artifact links, SHA binding and independent rerun evidence.
B:This diagnostic relates to a different failure (Two agent profiles are being compared, but each is tested on different tasks and tool permissions.). For the reported case inspect: Inspect artifact links, SHA binding and independent rerun evidence.
C:This diagnostic relates to a different failure (An agent passes its tests once but the result cannot be reproduced because dependency versions were not saved.). For the reported case inspect: Inspect artifact links, SHA binding and independent rerun evidence.
Question 167
Which TWO claims together describe the safe correction and measurable result? A team wants an agent's proposed change checked by an existing CI workflow before merge.
- Verification: A valid controlled invocation returns a documented result, while malformed requests remain visible failures.
- Action: Configure an approved workflow trigger and use the branch and event context supported by that repository.
- Action: Treat remote tool output as untrusted reference data and require independent policy authorization for changes.
- Verification: The PR displays relevant test and security checks against the intended head SHA.
- Unsafe shortcut: Run an unrelated successful workflow on another branch and call the proposed change verified.
Explanation
Correct Answers
B:Action: Configure an approved workflow trigger and use the branch and event context supported by that repository. This fixes the target workflow. CI invocation must respect workflow event permissions and the exact code revision being evaluated.
D:Verification: The PR displays relevant test and security checks against the intended head SHA. This checks the intended result. CI invocation must respect workflow event permissions and the exact code revision being evaluated.
Incorrect Answers
A:For the target verify: The PR displays relevant test and security checks against the intended head SHA.
C:Action: Treat remote tool output as untrusted reference data and require independent policy authorization for changes. This action responds to a different problem (A third-party documentation MCP response embeds a fake approval to disable branch protection during setup.). For the target use: Configure an approved workflow trigger and use the branch and event context supported by that repository.
E:Unsafe shortcut: Run an unrelated successful workflow on another branch and call the proposed change verified. This is neither an appropriate remediation nor valid evidence. CI invocation must respect workflow event permissions and the exact code revision being evaluated. Safer action: Configure an approved workflow trigger and use the branch and event context supported by that repository.
Question 168
After the recommended fix, which observation MOST convincingly proves success? Three agents simultaneously overwrite a common task-progress JSON file, losing two agents' completions.
- An auditor traces a merged change to its request, risk classification, approvals and tool results.
- A new task follows the updated dependency policy rather than stale memorized advice.
- The controller rejects completion when required checks or human approval remain pending.
- Concurrent updates preserve all three results and failed version checks retry safely.
Explanation
Correct Answer
D:Concurrent updates preserve all three results and failed version checks retry safely. The corrective action is: Use serialized writes or compare-and-swap version checks with conflict detection on shared state.
Incorrect Answers
A:This outcome is relevant to another case (A project deletes agent decision logs after each successful merge although a security audit needs to reconstruct approvals.). For the stated scenario verify: Concurrent updates preserve all three results and failed version checks retry safely.
B:This outcome is relevant to another case (A repository agent keeps recommending a deprecated dependency version from memory months after the upgrade policy changed.). For the stated scenario verify: Concurrent updates preserve all three results and failed version checks retry safely.
C:This outcome is relevant to another case (An agent controller records tasks only as started or complete, hiding review holds and partial failures.). For the stated scenario verify: Concurrent updates preserve all three results and failed version checks retry safely.
Question 169
An engineer must find the underlying cause: An agent updates security rules without recording its session identity, plan or approver. Which check should be prioritized?
- Compare workflow YAML grants, audit approval and authorized API calls.
- Inspect policy evaluator result, proposed diff and workflow security settings.
- Inspect audit events, workflow artifacts, commit SHA and approval records.
- Inspect author/reviewer identity, ruleset enforcement and merge approvals.
Explanation
Correct Answer
C:Inspect audit events, workflow artifacts, commit SHA and approval records. Accountability requires verifiable action provenance, not a retrospective model explanation alone. Next action: Require traceable identity, task links, approvals, tool invocations and resulting commit references.
Incorrect Answers
A: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.). Compare workflow YAML grants, audit approval and authorized API calls.
B:This diagnostic relates to a different failure (An agent's proposed plan explicitly requests disabling required code scanning before deployment.). For the reported case inspect: Inspect audit events, workflow artifacts, commit SHA and approval records.
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: Inspect audit events, workflow artifacts, commit SHA and approval records.
Question 170
Which TWO claims together describe the safe correction and measurable result? An AI-authored pull request passes unit tests but introduces a vulnerable dependency and exposed credential.
- Action: Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
- Unsafe shortcut: Merge as soon as unit tests are green while ignoring repository security scan findings.
- Verification: A reviewer can reconstruct why each status was assigned to a particular commit.
- Action: Classify the failure as environment incompatibility, align approved runtime versions and rerun tests.
- Verification: The PR shows no unresolved policy-blocking security alerts and passes behavioral tests.
Explanation
Correct Answers
A:Action: Combine unit and integration tests with dependency scanning, secret scanning and code security checks. This fixes the target workflow. Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss.
E:Verification: The PR shows no unresolved policy-blocking security alerts and passes behavioral tests. This checks the intended result. Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss.
Incorrect Answers
B:Unsafe shortcut: Merge as soon as unit tests are green while ignoring repository security scan findings. This is neither an appropriate remediation nor valid evidence. Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss. Safer action: Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
C:This evidence relates to another situation (An agent evaluation report displays pass/fail but discards the actual test logs and code revision tested.). For the target verify: The PR shows no unresolved policy-blocking security alerts and passes behavioral tests.
D:This action responds to a different problem (An agent's tests fail only in the runner because Node is older than the repository's supported runtime.).