Microsoft GH-600 Practice Test 24
Question 230
Which result would BEST validate the corrected GitHub agent workflow? A third-party documentation MCP response embeds a fake approval to disable branch protection during setup.
- No protection rule changes occur and the suspicious approval claim is documented as untrusted.
- A simulated 503 recovers without duplicate labels, branch commits or issue comments.
- A valid controlled invocation returns a documented result, while malformed requests remain visible failures.
- Tool inventory and invocation traces show only approved repository operations for the bug fix.
Explanation
Correct Answer
A:No protection rule changes occur and the suspicious approval claim is documented as untrusted. The corrective action is: Treat remote tool output as untrusted reference data and require independent policy authorization for changes.
Incorrect Answers
B:This outcome is relevant to another case (An agent uses a flaky issue-search API; transient 503 responses cause it to repeat all earlier writes.). For the stated scenario verify: No protection rule changes occur and the suspicious approval claim is documented as untrusted.
C:This outcome is relevant to another case (A coding agent repeatedly calls a deployment tool with malformed JSON and silently assumes deployment succeeded.). For the stated scenario verify: No protection rule changes occur and the suspicious approval claim is documented as untrusted.
D:This outcome is relevant to another case (A bug-fixing agent needs to inspect repository files but its configuration also exposes production cloud deletion tools.). For the stated scenario verify: No protection rule changes occur and the suspicious approval claim is documented as untrusted.
Question 231
What underlying agent-development control MOST directly applies to this situation? Two agents edit the same migration file concurrently and their commits alternately overwrite each other.
- Concurrent agents need write isolation and conflict-aware integration boundaries.
- Dependent agent tasks must be ordered by required artifacts rather than launched solely for maximum parallelism.
- Agent lifecycle changes must preserve auditability and avoid silent mid-task behavior shifts.
- Explicit delegation prevents duplicated effort and makes handoffs and accountability testable.
Explanation
Correct Answer
A:Concurrent agents need write isolation and conflict-aware integration boundaries. This concept explains the proper correction. The corresponding intervention is: Give agents isolated branches and nonoverlapping file scopes or serialize work on shared migrations.
Incorrect Answers
B:Dependent agent tasks must be ordered by required artifacts rather than launched solely for maximum parallelism. This concept governs a different case (A client-generation agent starts before the schema agent has completed its approved API contract.). The correct principle here is: Concurrent agents need write isolation and conflict-aware integration boundaries.
C:Agent lifecycle changes must preserve auditability and avoid silent mid-task behavior shifts. This concept governs a different case (An organization replaces a legacy code-review agent profile with a stricter approved version during a release.). The correct principle here is: Concurrent agents need write isolation and conflict-aware integration boundaries.
D:Explicit delegation prevents duplicated effort and makes handoffs and accountability testable. This concept governs a different case (A repository change needs architecture analysis, implementation and documentation but agents duplicate each other's work.). The correct principle here is: Concurrent agents need write isolation and conflict-aware integration boundaries.
Question 232
An engineer must find the underlying cause: A team cannot compare agent implementation plans because every agent outputs a different free-form narrative. Which check should be prioritized?
- Review risk classification, expected output artifacts and acceptance test coverage by task.
- Compare API schema revisions, contract test results and both branches' generated payloads.
- Validate sample plans against the agreed schema and review missing assumptions.
- Compare approved file globs, diff history, test failure provenance and escalation records.
Explanation
Correct Answer
C:Validate sample plans against the agreed schema and review missing assumptions. Structured plans support consistent human review and downstream orchestration decisions. Next action: Require structured plan fields for objectives, assumptions, file changes, dependencies, tests, risks and approval status.
Incorrect Answers
A:This diagnostic relates to a different failure (An agent builds a harmless Markdown linter and a credential rotation task using the same generic pass condition.). For the reported case inspect: Validate sample plans against the agreed schema and review missing assumptions.
B:This diagnostic relates to a different failure (Two agents are asked to build an API and its client but disagree about request field names and error semantics.). For the reported case inspect: Validate sample plans against the agreed schema and review missing assumptions.
D: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: Validate sample plans against the agreed schema and review missing assumptions.
Question 233
Before making a new change, what evidence BEST diagnoses this agentic workflow issue? An agent continuously labels every generated diff low risk despite repeated security-sensitive changes.
- Inspect alert location, scanner rule, sample fixtures and documented approval.
- Review acceptance fixtures, expected amounts and post-change test results.
- Inspect lockfile hashes, test scripts, runner image and run history.
- Inspect confusion matrix, sampled high-risk edits and classifier revisions.
Explanation
Correct Answer
D:Inspect confusion matrix, sampled high-risk edits and classifier revisions. Evaluation of governance classifiers requires false-negative and false-positive evidence. Next action: Calibrate risk labels with sampled expert review and update classification thresholds using observed misses.
Incorrect Answers
A:This diagnostic relates to a different failure (A code scanning alert flags a generated test fixture as secret material while production files are clean.). For the reported case inspect: Inspect confusion matrix, sampled high-risk edits and classifier revisions.
B:This diagnostic relates to a different failure (An agent edits a tax calculator and reports success solely because the build passes.). For the reported case inspect: Inspect confusion matrix, sampled high-risk edits and classifier revisions.
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 confusion matrix, sampled high-risk edits and classifier revisions.
Question 234
What underlying agent-development control MOST directly applies to this situation? An agent uses a flaky issue-search API; transient 503 responses cause it to repeat all earlier writes.
- Retries must distinguish idempotent and non-idempotent tool calls to avoid duplicate side effects.
- A curated MCP registry improves discovery and governance without implicitly granting every tool access.
- 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.
Explanation
Correct Answer
A:Retries must distinguish idempotent and non-idempotent tool calls to avoid duplicate side effects. This concept explains the proper correction. The corresponding intervention is: Apply bounded retry with backoff for safe idempotent reads and resume from a tracked checkpoint for writes.
Incorrect Answers
B:This concept governs a different case (An organization has dozens of third-party MCP endpoints and developers cannot tell which are reviewed for use.). A curated MCP registry improves discovery and governance without implicitly granting every tool access.
C:Multi-step tool workflows need explicit partial-failure recovery rather than an all-or-nothing assumption.
D: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: Retries must distinguish idempotent and non-idempotent tool calls to avoid duplicate side effects.
Question 235
A developer evaluates this agent workflow: An agent is granted permission to write source, approve its own PR and merge to production in one uninterrupted loop. Which engineering concept is MOST relevant?
- Human authorization must be scoped to the actual side effect and cannot be generalized across operations.
- A security control is weaker when one autonomous identity both changes and approves code.
- Accountability requires verifiable action provenance, not a retrospective model explanation alone.
- Workflow credential scope should be a reviewed control, not a debugging shortcut.
Explanation
Correct Answer
B:A security control is weaker when one autonomous identity both changes and approves code. This concept explains the proper correction. The corresponding intervention is: Separate writing, review and merge authority with enforced branch rules and distinct accountable actors.
Incorrect Answers
A:Human authorization must be scoped to the actual side effect and cannot be generalized across operations.
C:Accountability requires verifiable action provenance, not a retrospective model explanation alone. This concept governs a different case (An agent updates security rules without recording its session identity, plan or approver.). The correct principle here is: A security control is weaker when one autonomous identity both changes and approves code.
D:This concept governs a different case (A repository assistant wants to change a GitHub Actions job token from read-only to write-all after a failing check.).
Question 236
Which result would BEST validate the corrected GitHub agent workflow? An organization replaces a legacy code-review agent profile with a stricter approved version during a release.
- Both independent changes survive final integration without force-push loss.
- New tasks use the approved profile while in-flight work is tracked and historical reviews remain attributable.
- Both tasks finish without overlapping edits or unexpected dependency changes.
- A replacement resumes from the documented checkpoint without rerunning or overwriting completed code.
Explanation
Correct Answer
B:New tasks use the approved profile while in-flight work is tracked and historical reviews remain attributable. The corrective action is: Version the profile, migrate only validated tasks and preserve old session audit trails and rollback options.
Incorrect Answers
A:This outcome is relevant to another case (Two agents edit the same migration file concurrently and their commits alternately overwrite each other.).
C:This outcome is relevant to another case (A repository needs unrelated README cleanup and isolated unit tests added to separate modules.). For the stated scenario verify: New tasks use the approved profile while in-flight work is tracked and historical reviews remain attributable.
D:This outcome is relevant to another case (A documentation agent fails mid-run while two implementation agents complete their code changes.). For the stated scenario verify: New tasks use the approved profile while in-flight work is tracked and historical reviews remain attributable.
Question 237
Which review MOST directly identifies the failing control or environment in this situation? An agent proposes deleting a production environment to clean up a failed staging deployment.
- Inspect environment identity, approval timestamp, delete-tool policy and recovery evidence.
- Compare tiered policy, approval counts and sampled risk outcomes.
- Review action risk matrix, permission tiers and required approval records.
- Inspect egress firewall policy, outbound request logs and successful approved traffic.
Explanation
Correct Answer
A:Inspect environment identity, approval timestamp, delete-tool policy and recovery evidence. Irreversible or compliance-sensitive actions warrant an explicit human-in-the-loop gate. Next action: Require a human decision and verified target identity before any irreversible deletion action.
Incorrect Answers
B:This diagnostic relates to a different failure (A team requires manager approval for every harmless README typo, delaying work while high-risk code still receives weak review.). For the reported case inspect: Inspect environment identity, approval timestamp, delete-tool policy and recovery evidence.
C: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.). Review action risk matrix, permission tiers and required approval records.
D:This diagnostic relates to a different failure (A CI agent opens an unreviewed internet upload endpoint after reading internal repository files.). For the reported case inspect: Inspect environment identity, approval timestamp, delete-tool policy and recovery evidence.
Question 238
Which TWO claims together describe the safe correction and measurable result? A remote issue-tracker MCP server is unavailable while the task requires authoritative issue status.
- Verification: The local workstation remains unchanged and the PR reflects the complete authorized agent diff.
- Verification: The agent labels missing authoritative data explicitly and makes no unsupported status changes.
- Unsafe shortcut: Guess the issue state from unrelated code comments and update external records anyway.
- Action: Restrict the token and server tool exposure to the target repository and required read operations.
- Action: Pause or escalate the issue-dependent decision and use an approved authoritative alternative only if available.
Explanation
Correct Answers
B:Verification: The agent labels missing authoritative data explicitly and makes no unsupported status changes. This checks the intended result. A failed data source is not permission to fabricate tool results or silently change record systems.
E:Action: Pause or escalate the issue-dependent decision and use an approved authoritative alternative only if available. This fixes the target workflow. A failed data source is not permission to fabricate tool results or silently change record systems.
Incorrect Answers
A:This evidence relates to another situation (An AI coding session executes builds in an isolated runner but the owner expects local workstation edits.). For the target verify: The agent labels missing authoritative data explicitly and makes no unsupported status changes.
C:Unsafe shortcut: Guess the issue state from unrelated code comments and update external records anyway. This is neither an appropriate remediation nor valid evidence. A failed data source is not permission to fabricate tool results or silently change record systems. Safer action: Pause or escalate the issue-dependent decision and use an approved authoritative alternative only if available.
D:This action responds to a different problem (A GitHub MCP server is configured with a token that can administer all repositories, though the agent only needs to read one issue.).
Question 239
Consider an AI agent in the GitHub software development lifecycle: A batch of agent tasks fails for different reasons: malformed plans, API 429 responses and missing dependency versions. What is the BEST next action?
- Pin and preserve execution environment details, fixture versions, command invocations and resulting artifacts.
- Classify each failure by reasoning, tool/service or environment and assign separate corrective actions.
- Persist run ID, commit SHA, inputs, scanner output and reproducible test artifacts under reviewed retention policy.
- Run matched task cases with controlled environments and equivalent tool access, then compare outcomes.
Explanation
Correct Answer
B:Classify each failure by reasoning, tool/service or environment and assign separate corrective actions. This action addresses the stated GitHub agent engineering issue. Error analysis requires distinguishing causal failure types before selecting a tuning strategy. Verification: The report links every case to its actual cause and the appropriate targeted remediation.
Incorrect Answers
A:This action fits a different scenario (An agent passes its tests once but the result cannot be reproduced because dependency versions were not saved.), not the reported problem. Here the appropriate action is: Classify each failure by reasoning, tool/service or environment and assign separate corrective actions.
C: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: Classify each failure by reasoning, tool/service or environment and assign separate corrective actions.
D:This action fits a different scenario (Two agent profiles are being compared, but each is tested on different tasks and tool permissions.), not the reported problem. Here the appropriate action is: Classify each failure by reasoning, tool/service or environment and assign separate corrective actions.
Question 240
A platform team reports: An organization has dozens of third-party MCP endpoints and developers cannot tell which are reviewed for use. Which agent-engineering intervention is MOST appropriate?
- Publish approved MCP servers through a managed registry and document ownership, scopes and lifecycle review.
- Split work into separately authorized repository-scoped tasks and coordinate through reviewed interface changes.
- Restrict the token and server tool exposure to the target repository and required read operations.
- Separate untrusted PR test context from privileged deployment environment and require approved deployment gates.
Explanation
Correct Answer
A:Publish approved MCP servers through a managed registry and document ownership, scopes and lifecycle review. This action addresses the stated GitHub agent engineering issue. A curated MCP registry improves discovery and governance without implicitly granting every tool access. Verification: Agents select cataloged tools with accountable owners instead of arbitrary unreviewed endpoints.
Incorrect Answers
B:This action fits a different scenario (A Copilot cloud agent is assigned a repository task but tries to modify code in a second repository in the same session.), not the reported problem. Here the appropriate action is: Publish approved MCP servers through a managed registry and document ownership, scopes and lifecycle review.
C:This action fits a different scenario (A GitHub MCP server is configured with a token that can administer all repositories, though the agent only needs to read one issue.), not the reported problem. Here the appropriate action is: Publish approved MCP servers through a managed registry and document ownership, scopes and lifecycle review.
D:This action fits a different scenario (A CI remediation agent proposes changing deployment secrets because tests fail in an untrusted pull-request environment.), not the reported problem. Here the appropriate action is: Publish approved MCP servers through a managed registry and document ownership, scopes and lifecycle review.