Microsoft GH-600 Practice Test 25
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.
Question 241
A platform team reports: A documentation agent repeatedly modifies application code when asked to update API reference examples. Which agent-engineering intervention is MOST appropriate?
- Include an explicit rollback strategy, previous lockfile commit and canary test in the approved implementation plan.
- Define a reusable documentation custom-agent profile with a narrow role, allowed tools and documentation-focused instructions.
- Start a scoped agent task from the GitHub issue and require a branch and pull request containing a focused diff and test evidence.
- Agree on a versioned request and response contract with example payloads and contract tests before assigning implementation branches.
Explanation
Correct Answer
B:Define a reusable documentation custom-agent profile with a narrow role, allowed tools and documentation-focused instructions. This action addresses the stated GitHub agent engineering issue. Custom-agent profiles communicate specialized goals and can limit tool exposure in supported GitHub surfaces. Verification: A delegated documentation task updates correct reference pages without touching application modules.
Incorrect Answers
A:This action fits a different scenario (An AI-assisted dependency update risks breaking consumers and there is no documented rollback point.), not the reported problem. Here the appropriate action is: Define a reusable documentation custom-agent profile with a narrow role, allowed tools and documentation-focused instructions.
C:This action fits a different scenario (A team wants an agent to implement a small documentation change while preserving ordinary GitHub review and audit history.), not the reported problem. Here the appropriate action is: Define a reusable documentation custom-agent profile with a narrow role, allowed tools and documentation-focused instructions.
D:This action fits a different scenario (Two agents are asked to build an API and its client but disagree about request field names and error semantics.), not the reported problem. Here the appropriate action is: Define a reusable documentation custom-agent profile with a narrow role, allowed tools and documentation-focused instructions.
Question 242
A GitHub agentic development workflow faces this issue: An agent's tests fail only in the runner because Node is older than the repository's supported runtime. Which change MOST directly resolves it?
- Pin and preserve execution environment details, fixture versions, command invocations and resulting artifacts.
- Classify the failure as environment incompatibility, align approved runtime versions and rerun tests.
- Convert the incident into a reproducible regression fixture and update agent instructions or constraints based on root cause.
- Inspect tool-call request and response traces, then reconcile actual GitHub issue history before marking complete.
Explanation
Correct Answer
B:Classify the failure as environment incompatibility, align approved runtime versions and rerun tests. This action addresses the stated GitHub agent engineering issue. Environment drift is a separate failure category from defective generated code. Verification: Both local isolated and CI environments pass the same tests using compatible versions.
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 the failure as environment incompatibility, align approved runtime versions and rerun tests.
C:This action fits a different scenario (An agent's code passed PR tests but caused a production regression that was not fed back into future evaluations.), not the reported problem. Here the appropriate action is: Classify the failure as environment incompatibility, align approved runtime versions and rerun tests.
D: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: Classify the failure as environment incompatibility, align approved runtime versions and rerun tests.
Question 243
Before making a new change, what evidence BEST diagnoses this agentic workflow issue? A remote GitHub MCP integration can list issues but cannot update labels despite the user requesting label triage.
- Check selected repository, task permissions, branch push targets and cross-repository API calls.
- Compare allowed tool methods, task intent, audit logs and repository state before and after.
- Inspect rate-limit headers, pagination cursor, cache hit rates and retry counts.
- Inspect actual MCP token grants, repository permission matrix and denial responses.
Explanation
Correct Answer
D:Next action: Verify the remote MCP authentication identity, authorized token scopes and the intended operation before retrying.
Incorrect Answers
A: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 actual MCP token grants, repository permission matrix and denial responses.
B:This diagnostic relates to a different failure (An agent summarizes dependency alerts but is offered an update-dependency tool capable of pushing changes.). For the reported case inspect: Inspect actual MCP token grants, repository permission matrix and denial responses.
C:This diagnostic relates to a different failure (An agent fetches hundreds of GitHub issues and exhausts the API rate budget after repeated uncached requests.). For the reported case inspect: Inspect actual MCP token grants, repository permission matrix and denial responses.
Question 244
Which proposed action creates the CLEAREST avoidable governance or delivery risk? A third-party documentation MCP response embeds a fake approval to disable branch protection during setup.
- Ensure CI work executes under event-appropriate credentials.
- Preserve a timestamped approved handoff when an agent session ends.
- Promote every tool result into an authoritative command without validating its source.
- Choose supported GitHub configurations from current first-party documentation.
Explanation
Correct Answer
C:Promote every tool result into an authoritative command without validating its source. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Tool-returned prose does not constitute authorization for privileged repository operations. Safer action: Treat remote tool output as untrusted reference data and require independent policy authorization for changes.
Incorrect Answers
A:Ensure CI work executes under event-appropriate credentials. This is an appropriate general safeguard, not the harmful shortcut. Untrusted pull request contexts must not inherit production privileges. Targeted remediation: Treat remote tool output as untrusted reference data and require independent policy authorization for changes.
B:Preserve a timestamped approved handoff when an agent session ends. This is an appropriate general safeguard, not the harmful shortcut. Independent sessions need durable progress state. Targeted remediation: Treat remote tool output as untrusted reference data and require independent policy authorization for changes.
D:Choose supported GitHub configurations from current first-party documentation. This is an appropriate general safeguard, not the harmful shortcut. Platform capabilities and preview status can change. Targeted remediation: Treat remote tool output as untrusted reference data and require independent policy authorization for changes.
Question 245
Which result would BEST validate the corrected GitHub agent workflow? A coding agent reads a broad feature request and immediately starts deleting modules before agreeing on architecture.
- A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope.
- Only the original feature files change or the agent records an escalation request with evidence.
- Multiple new agent tasks follow the same naming rules and run the documented tests on isolated branches.
- The pull request contains a traceable test report and clearly discloses incomplete verification.
Explanation
Correct Answer
A:A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope. The corrective action is: Require an inspectable implementation plan with affected paths, risks, dependencies and proposed validation before enabling write operations.
Incorrect Answers
B:This outcome is relevant to another case (A feature agent repeatedly rewrites unrelated modules after discovering a flaky unrelated test.). For the stated scenario verify: A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope.
C: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: A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope.
D:This outcome is relevant to another case (A PR authoring agent closes its task after writing code but omits tests, changed-file summary and remaining risks.). For the stated scenario verify: A reviewer approves a bounded plan before the first mutating tool call and later diffs match authorized scope.
Question 246
What is the LEAST defensible response to this AI agent workflow problem? An agent builds a harmless Markdown linter and a credential rotation task using the same generic pass condition.
- Use a narrow isolated test fixture before applying a significant configuration change.
- Capture actual tests executed and clearly mark tests that could not run.
- Declare both tasks done whenever the agent returns a successful terminal exit status.
- Retain only task-relevant agent context under defined privacy and retention controls.
Explanation
Correct Answer
C:Declare both tasks done whenever the agent returns a successful terminal exit status. This shortcut bypasses the necessary constraint or makes the outcome unreliable. One generic completion signal cannot validate tasks with radically different failure consequences. Safer action: Specify risk-adjusted outcomes: syntax checks for the linter and authorization, secret rotation, revocation and rollback evidence for credentials.
Incorrect Answers
A:Use a narrow isolated test fixture before applying a significant configuration change. This is an appropriate general safeguard, not the harmful shortcut. Controlled tests reduce unintended production side effects. Targeted remediation: Specify risk-adjusted outcomes: syntax checks for the linter and authorization, secret rotation, revocation and rollback evidence for credentials.
B:Capture actual tests executed and clearly mark tests that could not run. This is an appropriate general safeguard, not the harmful shortcut. Evidence must distinguish passed, failed and blocked checks. Targeted remediation: Specify risk-adjusted outcomes: syntax checks for the linter and authorization, secret rotation, revocation and rollback evidence for credentials.
D: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 risk-adjusted outcomes: syntax checks for the linter and authorization, secret rotation, revocation and rollback evidence for credentials.
Question 247
Which review MOST directly identifies the failing control or environment in this situation? A documentation agent fails mid-run while two implementation agents complete their code changes.
- Inspect delegation payload, retrieved file list and tool access trace.
- Check scheduled jobs, token revocation logs and archive access.
- Inspect coordinator ledger, worker artifacts and resumed worker diff.
- Compare branch APIs, combined test failures and conflict resolution record.
Explanation
Correct Answer
C:Inspect coordinator ledger, worker artifacts and resumed worker diff. Partial worker failure needs targeted recovery and honest aggregate status. Next action: Mark documentation blocked, preserve successful artifacts and reassign only unfinished documentation work.
Incorrect Answers
A:This diagnostic relates to a different failure (A main agent asks a specialist to inspect dependency security but inadvertently passes unrelated client secrets to its context.). For the reported case inspect: Inspect coordinator ledger, worker artifacts and resumed worker diff.
B:This diagnostic relates to a different failure (A once-useful release-notes agent is no longer needed but still holds API access tokens and scheduled triggers.). Check scheduled jobs, token revocation logs and archive access.
D:This diagnostic relates to a different failure (Two agents independently change a function signature in incompatible ways, but both local branches pass tests.). For the reported case inspect: Inspect coordinator ledger, worker artifacts and resumed worker diff.
Question 248
Which proposed action creates the CLEAREST avoidable governance or delivery risk? A repository change needs architecture analysis, implementation and documentation but agents duplicate each other's work.
- Check repository and organization policy before expanding agent permissions.
- Preserve an authorized rollback path for reversible repository changes.
- Restrict destructive actions with a separate approved authorization gate.
- Send the same broad feature request to all workers and merge all their output blindly.
Explanation
Correct Answer
D:Send the same broad feature request to all workers and merge all their output blindly. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Explicit delegation prevents duplicated effort and makes handoffs and accountability testable. Safer action: Use a manager-worker orchestration plan with distinct scoped tasks, shared interface contract and final integration review.
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: Use a manager-worker orchestration plan with distinct scoped tasks, shared interface contract and final integration review.
B: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: Use a manager-worker orchestration plan with distinct scoped tasks, shared interface contract and final integration review.
C:Restrict destructive actions with a separate approved authorization gate. This is an appropriate general safeguard, not the harmful shortcut. Risk-proportionate controls should prevent irreversible mistakes. Targeted remediation: Use a manager-worker orchestration plan with distinct scoped tasks, shared interface contract and final integration review.
Question 249
Which proposed action creates the CLEAREST avoidable governance or delivery risk? A security-review agent recommends disabling a workflow while an implementation agent says it is safe to enable.
- Select whichever agent completes first and disregard the other review without investigation.
- Use a narrow isolated test fixture before applying a significant configuration change.
- Keep production credentials outside committed instructions and logs.
- Reconcile branch conflicts against the latest reviewed interface contract.
Explanation
Correct Answer
A:Select whichever agent completes first and disregard the other review without investigation. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Contradictory multi-agent outputs require reconciliation, not arbitrary vote counting. Safer action: Require evidence-based adjudication of conflicting recommendations before promoting the workflow change.
Incorrect Answers
B:Use a narrow isolated test fixture before applying a significant configuration change. This is an appropriate general safeguard, not the harmful shortcut. Controlled tests reduce unintended production side effects. Targeted remediation: Require evidence-based adjudication of conflicting recommendations before promoting the workflow change.
C:Keep production credentials outside committed instructions and logs. This is an appropriate general safeguard, not the harmful shortcut. Confidential secret material needs controlled storage and redaction. Targeted remediation: Require evidence-based adjudication of conflicting recommendations before promoting the workflow change.
D:Reconcile branch conflicts against the latest reviewed interface contract. This is an appropriate general safeguard, not the harmful shortcut. Parallel task success does not prove combined compatibility. Targeted remediation: Require evidence-based adjudication of conflicting recommendations before promoting the workflow change.
Question 250
Which technical principle BEST explains the proper response to this agentic SDLC scenario? An agent cannot run integration tests because credentials are missing but states that all integration tests passed.
- Evaluation requires interpreting security findings rather than blindly counting alerts.
- Evaluation signals are only auditable when linked to specific reproducible artifacts.
- Evaluation reporting must distinguish not-run, failed and passed evidence.
- Evaluation needs observable task-specific outcome oracles beyond the model's self-report.
Explanation
Correct Answer
C:Evaluation reporting must distinguish not-run, failed and passed evidence. This concept explains the proper correction. The corresponding intervention is: Require explicit unrun and blocked statuses with commands attempted, missing prerequisites and residual release risk.
Incorrect Answers
A:Evaluation requires interpreting security findings rather than blindly counting alerts. This concept governs a different case (A code scanning alert flags a generated test fixture as secret material while production files are clean.). The correct principle here is: Evaluation reporting must distinguish not-run, failed and passed evidence.
B:Evaluation signals are only auditable when linked to specific reproducible artifacts. This concept governs a different case (An agent evaluation report displays pass/fail but discards the actual test logs and code revision tested.). The correct principle here is: Evaluation reporting must distinguish not-run, failed and passed evidence.
D:Evaluation needs observable task-specific outcome oracles beyond the model's self-report. This concept governs a different case (An agent edits a tax calculator and reports success solely because the build passes.). The correct principle here is: Evaluation reporting must distinguish not-run, failed and passed evidence.