Microsoft GH-600 Practice Test 51
Question 500
A platform team reports: An AI-authored pull request passes unit tests but introduces a vulnerable dependency and exposed credential. Which agent-engineering intervention is MOST appropriate?
- Classify each failure by reasoning, tool/service or environment and assign separate corrective actions.
- Define outcome quality metrics including accepted changes, escaped defects, review rework and policy violations.
- Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
- Revise instructions to state permitted files, expected outputs and explicit stop/escalation conditions.
Explanation
Correct Answer
C:Combine unit and integration tests with dependency scanning, secret scanning and code security checks. This action addresses the stated GitHub agent engineering issue. Multiple complementary evaluation signals reveal weaknesses a single passing test suite can miss. Verification: The PR shows no unresolved policy-blocking security alerts and passes behavioral tests.
Incorrect Answers
A:This action fits a different scenario (A batch of agent tasks fails for different reasons: malformed plans, API 429 responses and missing dependency versions.), not the reported problem. Here the appropriate action is: Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
B:This action fits a different scenario (A platform team measures agent quality only by how quickly it creates pull requests.), not the reported problem. Here the appropriate action is: Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
D:This action fits a different scenario (An agent writes oversized broad edits because task instructions do not specify changed-file boundaries.), not the reported problem. Here the appropriate action is: Combine unit and integration tests with dependency scanning, secret scanning and code security checks.
Question 501
After the recommended fix, which observation MOST convincingly proves success? A repository change needs architecture analysis, implementation and documentation but agents duplicate each other's work.
- A replacement resumes from the documented checkpoint without rerunning or overwriting completed code.
- The controller resumes with accurate completed/in-flight status and no duplicate worker tasks.
- The retired agent cannot act while historical release evidence remains available for audit.
- Each worker owns a nonoverlapping deliverable and the manager validates combined changes against one task goal.
Explanation
Correct Answer
D:Each worker owns a nonoverlapping deliverable and the manager validates combined changes against one task goal. The corrective action is: Use a manager-worker orchestration plan with distinct scoped tasks, shared interface contract and final integration review.
Incorrect Answers
A: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: Each worker owns a nonoverlapping deliverable and the manager validates combined changes against one task goal.
B:This outcome is relevant to another case (An orchestration controller crashes after two agents finish and one is still executing, losing temporary coordination memory.).
C:This outcome is relevant to another case (A once-useful release-notes agent is no longer needed but still holds API access tokens and scheduled triggers.). For the stated scenario verify: Each worker owns a nonoverlapping deliverable and the manager validates combined changes against one task goal.
Question 502
Consider an AI agent in the GitHub software development lifecycle: A custom agent's MCP configuration embeds an API secret directly in a tracked Markdown file. What is the BEST next action?
- Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime.
- Validate required arguments against the tool schema and handle validation errors before declaring success.
- Separate untrusted PR test context from privileged deployment environment and require approved deployment gates.
- Apply bounded retry with backoff for safe idempotent reads and resume from a tracked checkpoint for writes.
Explanation
Correct Answer
A:Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime. This action addresses the stated GitHub agent engineering issue. Agent tool configuration and secret material require separate governance and access controls. Verification: The server authenticates while no credential appears in committed files, printed logs or PR diffs.
Incorrect Answers
B: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: Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime.
C: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: Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime.
D:This action fits a different scenario (An agent uses a flaky issue-search API; transient 503 responses cause it to repeat all earlier writes.), not the reported problem. Here the appropriate action is: Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime.
Question 503
For the following agentic development case, which shortcut should be REJECTED? A team requires manager approval for every harmless README typo, delaying work while high-risk code still receives weak review.
- Limit external data access to the specific approved repository and tenant.
- Compare the current requirement with the latest approved task plan.
- Keep an accurate audit record of the agent, tool action, time and commit.
- Remove all approvals, including for irreversible production operations, to increase throughput.
Explanation
Correct Answer
D:Remove all approvals, including for irreversible production operations, to increase throughput. This shortcut bypasses the necessary constraint or makes the outcome unreliable. Human intervention should focus on material risk rather than create uniform bureaucracy. Safer action: Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
Incorrect Answers
A: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: Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
B:Compare the current requirement with the latest approved task plan. This is an appropriate general safeguard, not the harmful shortcut. Durable intent reduces autonomous task drift. Targeted remediation: Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
C:Keep an accurate audit record of the agent, tool action, time and commit. This is an appropriate general safeguard, not the harmful shortcut. Provenance supports accountability and incident reconstruction. Targeted remediation: Move low-risk reversible edits to streamlined checks while retaining explicit approval for secrets, deployment and destructive changes.
Question 504
Which result would BEST validate the corrected GitHub agent workflow? An enterprise multi-agent system retrieves a private client's incident notes while processing another client's repository.
- Cross-client synthetic retrieval attempts are denied while legitimate within-tenant queries succeed.
- The agent flags unrelated optimization work and returns to the migration review without side changes.
- The resumed branch targets current dependencies with conflict tests and recorded new base revision.
- A new session can reconcile issue labels and PR links without inventing a success state.
Explanation
Correct Answer
A:Cross-client synthetic retrieval attempts are denied while legitimate within-tenant queries succeed. The corrective action is: Partition retrieval indexes and authorization scopes by tenant and revalidate identity on each query.
Incorrect Answers
B:This outcome is relevant to another case (A long-running coding agent begins optimizing front-end performance after being assigned a database migration review.). For the stated scenario verify: Cross-client synthetic retrieval attempts are denied while legitimate within-tenant queries succeed.
C:This outcome is relevant to another case (A paused agent resumes after main branch moved and applies patches against a now-obsolete dependency graph.). For the stated scenario verify: Cross-client synthetic retrieval attempts are denied while legitimate within-tenant queries succeed.
D:This outcome is relevant to another case (An agent changes a GitHub issue label, then opens a PR without recording whether the label operation succeeded.). For the stated scenario verify: Cross-client synthetic retrieval attempts are denied while legitimate within-tenant queries succeed.
Question 505
Which result would BEST validate the corrected GitHub agent workflow? A long-running coding agent begins optimizing front-end performance after being assigned a database migration review.
- The resumed branch targets current dependencies with conflict tests and recorded new base revision.
- Cross-client synthetic retrieval attempts are denied while legitimate within-tenant queries succeed.
- Concurrent updates preserve all three results and failed version checks retry safely.
- The agent flags unrelated optimization work and returns to the migration review without side changes.
Explanation
Correct Answer
D:The agent flags unrelated optimization work and returns to the migration review without side changes. The corrective action is: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
Incorrect Answers
A:This outcome is relevant to another case (A paused agent resumes after main branch moved and applies patches against a now-obsolete dependency graph.). For the stated scenario verify: The agent flags unrelated optimization work and returns to the migration review without side changes.
B:This outcome is relevant to another case (An enterprise multi-agent system retrieves a private client's incident notes while processing another client's repository.). For the stated scenario verify: The agent flags unrelated optimization work and returns to the migration review without side changes.
C:This outcome is relevant to another case (Three agents simultaneously overwrite a common task-progress JSON file, losing two agents' completions.). For the stated scenario verify: The agent flags unrelated optimization work and returns to the migration review without side changes.
Question 506
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: A remote GitHub MCP integration can list issues but cannot update labels despite the user requesting label triage.
- Verification: The issue fetch succeeds while organization administration and unrelated repository access are denied.
- Verification: Read and authorized label updates succeed, while unrelated repository administration remains denied.
- Action: Execute tests in an appropriately constrained sandbox with only necessary file and network privileges.
- Action: Verify the remote MCP authentication identity, authorized token scopes and the intended operation before retrying.
- Unsafe shortcut: Replace the limited token with a global personal administrator credential to silence permission failures.
Explanation
Correct Answers
B:Verification: Read and authorized label updates succeed, while unrelated repository administration remains denied. This checks the intended result. Remote tool authorization requires appropriate identity and operation scope, not merely successful server discovery.
D:Action: Verify the remote MCP authentication identity, authorized token scopes and the intended operation before retrying. This fixes the target workflow. Remote tool authorization requires appropriate identity and operation scope, not merely successful server discovery.
Incorrect Answers
A:This evidence relates to another situation (A GitHub MCP server is configured with a token that can administer all repositories, though the agent only needs to read one issue.). For the target verify: Read and authorized label updates succeed, while unrelated repository administration remains denied.
C:Action: Execute tests in an appropriately constrained sandbox with only necessary file and network privileges. This action responds to a different problem (A build agent requests host-level root privileges simply to run repository unit tests.). For the target use: Verify the remote MCP authentication identity, authorized token scopes and the intended operation before retrying.
E:Unsafe shortcut: Replace the limited token with a global personal administrator credential to silence permission failures. This is neither an appropriate remediation nor valid evidence. Remote tool authorization requires appropriate identity and operation scope, not merely successful server discovery. Safer action: Verify the remote MCP authentication identity, authorized token scopes and the intended operation before retrying.
Question 507
Which THREE claims correctly connect the remediation, technical principle, and proof? An agent stores customer account identifiers and API tokens in an unrestricted vector memory service.
- Action: Minimize retained content, redact secrets and apply tenant-aware access control plus explicit retention limits.
- Verification: One contract revision is selected with an accountable decision and both agents consume the same version.
- Principle: External agent memory is a data store subject to ordinary security and retention rules.
- Verification: A cross-tenant query returns no restricted records and expired entries can be removed deterministically.
- Action: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries.
- Unsafe shortcut: Write all tool transcripts including raw credentials into a shared forever-memory index.
Explanation
Correct Answers
A:Action: Minimize retained content, redact secrets and apply tenant-aware access control plus explicit retention limits. This fixes the target workflow. External agent memory is a data store subject to ordinary security and retention rules.
C:Principle: External agent memory is a data store subject to ordinary security and retention rules. This describes why the correction and evidence align.
D:Verification: A cross-tenant query returns no restricted records and expired entries can be removed deterministically. This checks the intended result. External agent memory is a data store subject to ordinary security and retention rules.
Incorrect Answers
B:For the target verify: A cross-tenant query returns no restricted records and expired entries can be removed deterministically.
E:Action: Compare every proposed next action with the original issue goals and approved scope at checkpoint boundaries. This action responds to a different problem (A long-running coding agent begins optimizing front-end performance after being assigned a database migration review.). For the target use: Minimize retained content, redact secrets and apply tenant-aware access control plus explicit retention limits.
F:Unsafe shortcut: Write all tool transcripts including raw credentials into a shared forever-memory index. This is neither an appropriate remediation nor valid evidence. External agent memory is a data store subject to ordinary security and retention rules. Safer action: Minimize retained content, redact secrets and apply tenant-aware access control plus explicit retention limits.
Question 508
Consider an AI agent in the GitHub software development lifecycle: An agent writes oversized broad edits because task instructions do not specify changed-file boundaries. What is the BEST next action?
- Convert the incident into a reproducible regression fixture and update agent instructions or constraints based on root cause.
- Revise instructions to state permitted files, expected outputs and explicit stop/escalation conditions.
- Run old and new fixtures against a recorded baseline and compare both expected positives and negatives.
- Pin and preserve execution environment details, fixture versions, command invocations and resulting artifacts.
Explanation
Correct Answer
B:Revise instructions to state permitted files, expected outputs and explicit stop/escalation conditions. This action addresses the stated GitHub agent engineering issue. Instruction tuning can address systematic behavioral drift without expanding tool permissions. Verification: In a controlled replay the diff stays within scope while required tests pass.
Incorrect Answers
A: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: Revise instructions to state permitted files, expected outputs and explicit stop/escalation conditions.
C:This action fits a different scenario (An agent claims to improve parsing but the new branch silently drops a previously supported event format.), not the reported problem.
D: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: Revise instructions to state permitted files, expected outputs and explicit stop/escalation conditions.
Question 509
For this GH-600 agent-governance case, choose the most defensible action: An agent manager reports that five workers are progressing but cannot explain why one branch has had no commits for hours.
- Mark documentation blocked, preserve successful artifacts and reassign only unfinished documentation work.
- Define separate specialist agents with task-specific instructions and tool restrictions, and delegate by expertise.
- Escalate with precise missing authorization and pause the affected dependency task rather than broadening access automatically.
- Collect per-worker heartbeat, last tool progress, error state and branch activity and define stalled thresholds.
Explanation
Correct Answer
D:Collect per-worker heartbeat, last tool progress, error state and branch activity and define stalled thresholds. This action addresses the stated GitHub agent engineering issue. Operational multi-agent supervision requires time-series signals as well as final artifacts. Verification: The stalled worker triggers targeted investigation while healthy workers continue unaffected.
Incorrect Answers
A:This action fits a different scenario (A documentation agent fails mid-run while two implementation agents complete their code changes.), not the reported problem. Here the appropriate action is: Collect per-worker heartbeat, last tool progress, error state and branch activity and define stalled thresholds.
B:This action fits a different scenario (One generalized agent repeatedly confuses localization review with TypeScript compiler fixes.), not the reported problem. Here the appropriate action is: Collect per-worker heartbeat, last tool progress, error state and branch activity and define stalled thresholds.
C:This action fits a different scenario (A dependency-scanning worker cannot access a restricted registry and repeatedly requests wider permissions.), not the reported problem. Here the appropriate action is: Collect per-worker heartbeat, last tool progress, error state and branch activity and define stalled thresholds.
Question 510
Which result would BEST validate the corrected GitHub agent workflow? A coding agent can edit source but its isolated environment lacks the private package registry configuration required for tests.
- Every changed file and workflow permission maps to an approved trace and revision.
- The issue is summarized safely, no secret reads or outbound uploads occur, and the suspicious instruction is flagged.
- The expected workflows run after approval and their logs appear on the pull request.
- A fresh session installs approved dependencies and runs tests without exposing registry secrets in logs.
Explanation
Correct Answer
D:A fresh session installs approved dependencies and runs tests without exposing registry secrets in logs. The corrective action is: Configure permitted setup steps and package access through the supported agent environment mechanism with least privilege.
Incorrect Answers
A:This outcome is relevant to another case (An agent modifies a production workflow but cannot show which tool call produced the repository change.). For the stated scenario verify: A fresh session installs approved dependencies and runs tests without exposing registry secrets in logs.
B:This outcome is relevant to another case (A public issue description contains instructions telling the agent to upload repository secrets to an external URL.). For the stated scenario verify: A fresh session installs approved dependencies and runs tests without exposing registry secrets in logs.
C:This outcome is relevant to another case (A Copilot-generated pull request changes a GitHub Actions workflow and the CI checks have not executed automatically.). For the stated scenario verify: A fresh session installs approved dependencies and runs tests without exposing registry secrets in logs.