Microsoft GH-600 Practice Test 6
Question 50
Which technical principle BEST explains the proper response to this agentic SDLC scenario? A platform team measures agent quality only by how quickly it creates pull requests.
- Evaluation metrics should align agent output quality and safety with business delivery goals.
- Evaluation requires interpreting security findings rather than blindly counting alerts.
- Repeatable evaluation requires stable inputs, environment and code provenance.
- Instruction tuning can address systematic behavioral drift without expanding tool permissions.
Explanation
Correct Answer
A:Evaluation metrics should align agent output quality and safety with business delivery goals. This concept explains the proper correction. The corresponding intervention is: Define outcome quality metrics including accepted changes, escaped defects, review rework and policy violations.
Incorrect Answers
B: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 metrics should align agent output quality and safety with business delivery goals.
C:Repeatable evaluation requires stable inputs, environment and code provenance. This concept governs a different case (An agent passes its tests once but the result cannot be reproduced because dependency versions were not saved.). The correct principle here is: Evaluation metrics should align agent output quality and safety with business delivery goals.
D:Instruction tuning can address systematic behavioral drift without expanding tool permissions. This concept governs a different case (An agent writes oversized broad edits because task instructions do not specify changed-file boundaries.). The correct principle here is: Evaluation metrics should align agent output quality and safety with business delivery goals.
Question 51
For this GH-600 agent-governance case, choose the most defensible action: An agent needs to rename a public API but the organization requires architects to approve breaking interfaces.
- Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
- Require a completion artifact with diff summary, tests run, uncovered cases and requested reviewer attention.
- Require an inspectable implementation plan with affected paths, risks, dependencies and proposed validation before enabling write operations.
- Capture a concise proposed action list and rationale before allowing repository modifications, and link actual commits back to decisions.
Explanation
Correct Answer
A:Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval. This action addresses the stated GitHub agent engineering issue. High-impact design transitions require distinct approval checkpoints before action, not just post-hoc review. Verification: The branch remains unchanged during the hold, then the approved diff matches the signed-off migration plan.
Incorrect Answers
B:This action fits a different scenario (A PR authoring agent closes its task after writing code but omits tests, changed-file summary and remaining risks.), not the reported problem. Here the appropriate action is: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
C:This action fits a different scenario (A coding agent reads a broad feature request and immediately starts deleting modules before agreeing on architecture.), not the reported problem. Here the appropriate action is: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
D:This action fits a different scenario (An autonomous agent promises a detailed plan but commits files before recording why a dependency should change.), not the reported problem. Here the appropriate action is: Allow discovery and planning autonomously, but block the interface-changing commit until recorded architectural approval.
Question 52
Consider an AI agent in the GitHub software development lifecycle: An agent reports a checkout feature complete because it compiled, despite failure to meet tax rounding requirements. What is the BEST next action?
- Specify reproducible environment setup and dependency preparation before enabling implementation work.
- Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
- Include an explicit rollback strategy, previous lockfile commit and canary test in the approved implementation plan.
- Keep the delegated task restricted to its authorized repository and request explicit access approval for any cross-repository source.
Explanation
Correct Answer
B:Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins. This action addresses the stated GitHub agent engineering issue. Compiling code is a weaker success signal than business behavior validated against predeclared criteria. Verification: Acceptance tests include boundary values and match the agreed tax policy in the pull request.
Incorrect Answers
A:This action fits a different scenario (A package upgrade agent fails immediately because the development environment does not install the required SDK.), not the reported problem. Here the appropriate action is: Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
C: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 behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
D:This action fits a different scenario (An issue requests a fix in one GitHub repository, but agent research references private code from a different organization.), not the reported problem. Here the appropriate action is: Define behavioral acceptance cases for fractional amounts, currency rounding and rollback before coding begins.
Question 53
Which technical principle BEST explains the proper response to this agentic SDLC scenario? An agent's proposed plan explicitly requests disabling required code scanning before deployment.
- Policy guardrails must block incompatible actions even when an agent predicts faster completion.
- Autonomy should be proportional to task risk rather than identical for all repository operations.
- Responsible AI and data governance guardrails constrain agent output as well as input permissions.
- Database destruction demands a stronger control than reversible code edits in a feature branch.
Explanation
Correct Answer
A:Policy guardrails must block incompatible actions even when an agent predicts faster completion. This concept explains the proper correction. The corresponding intervention is: Reject the disallowed step and keep deployment blocked or route a supported remediation for approval.
Incorrect Answers
B:This concept governs a different case (An agent can correct comments safely but its operator also proposes letting it rotate production credentials without review.). Autonomy should be proportional to task risk rather than identical for all repository operations.
C:This concept governs a different case (An AI agent drafts user-facing explanations that reveal private customer incident details obtained from a diagnostic log.). Responsible AI and data governance guardrails constrain agent output as well as input permissions.
D:Database destruction demands a stronger control than reversible code edits in a feature branch.
Question 54
Which technical principle BEST explains the proper response to this agentic SDLC scenario? An agent edits a tax calculator and reports success solely because the build passes.
- Optimization should target genuine workflow waste, not remove evidence-producing safety gates.
- Evaluation requires interpreting security findings rather than blindly counting alerts.
- Meaningful A/B evaluation requires controlling confounding factors.
- Evaluation needs observable task-specific outcome oracles beyond the model's self-report.
Explanation
Correct Answer
D:Evaluation needs observable task-specific outcome oracles beyond the model's self-report. This concept explains the proper correction. The corresponding intervention is: Define expected outputs for representative monetary cases and compare computed values with independent acceptance fixtures.
Incorrect Answers
A:Optimization should target genuine workflow waste, not remove evidence-producing safety gates. This concept governs a different case (An organization reduces agent execution time by disabling all security checks, causing rejected changes to increase.). The correct principle here is: Evaluation needs observable task-specific outcome oracles beyond the model's self-report.
B: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 needs observable task-specific outcome oracles beyond the model's self-report.
C:Meaningful A/B evaluation requires controlling confounding factors. This concept governs a different case (Two agent profiles are being compared, but each is tested on different tasks and tool permissions.). The correct principle here is: Evaluation needs observable task-specific outcome oracles beyond the model's self-report.
Question 55
What underlying agent-development control MOST directly applies to this situation? A maintenance agent retrieves a stale wiki snippet that contradicts the current signed release procedure.
- Short-term model context is not a durable source of project memory.
- Context pruning should reduce noise without deleting authoritative state needed for a task.
- Context reuse must never cross an authorization boundary merely because content is semantically similar.
- Memory retrieval must preserve provenance so recency and authority can be assessed.
Explanation
Correct Answer
D:Memory retrieval must preserve provenance so recency and authority can be assessed. This concept explains the proper correction. The corresponding intervention is: Attach source URL, revision timestamp and trust level to retrieved memory, then prefer current approved documentation.
Incorrect Answers
A:Short-term model context is not a durable source of project memory. This concept governs a different case (A coding agent forgets earlier decisions after a long session reaches its context limit.). The correct principle here is: Memory retrieval must preserve provenance so recency and authority can be assessed.
B:This concept governs a different case (A support agent carries hundreds of obsolete build logs into every new task and starts ignoring the current requirement.). Context pruning should reduce noise without deleting authoritative state needed for a task.
C:This concept governs a different case (An enterprise multi-agent system retrieves a private client's incident notes while processing another client's repository.).
Question 56
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: A custom agent's MCP configuration embeds an API secret directly in a tracked Markdown file.
- Verification: The server authenticates while no credential appears in committed files, printed logs or PR diffs.
- Unsafe shortcut: Store reusable API tokens inside public custom-agent profile frontmatter for convenience.
- Action: Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime.
- Action: Capture per-tool action identifiers, arguments, identity, timestamps and resulting commit SHA as review artifacts.
- Verification: The local workstation remains unchanged and the PR reflects the complete authorized agent diff.
Explanation
Correct Answers
A:Verification: The server authenticates while no credential appears in committed files, printed logs or PR diffs. This checks the intended result. Agent tool configuration and secret material require separate governance and access controls.
C:Action: Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime. This fixes the target workflow. Agent tool configuration and secret material require separate governance and access controls.
Incorrect Answers
B:Unsafe shortcut: Store reusable API tokens inside public custom-agent profile frontmatter for convenience. This is neither an appropriate remediation nor valid evidence. Agent tool configuration and secret material require separate governance and access controls. Safer action: Move secrets to the supported secret management mechanism and pass only scoped environment references at runtime.
D:This action responds to a different problem (An agent modifies a production workflow but cannot show which tool call produced the repository change.).
E: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 server authenticates while no credential appears in committed files, printed logs or PR diffs.
Question 57
An engineer must find the underlying cause: An agent writes oversized broad edits because task instructions do not specify changed-file boundaries. Which check should be prioritized?
- Review acceptance fixtures, expected amounts and post-change test results.
- Review instructions before and after, diff footprint and regression results.
- Inspect raw HTTP status, token scopes, resource identity and final retrieval log.
- Review incident timeline, root cause, new fixture and subsequent evaluation outcomes.
Explanation
Correct Answer
B:Review instructions before and after, diff footprint and regression results. Instruction tuning can address systematic behavioral drift without expanding tool permissions. Next action: Revise instructions to state permitted files, expected outputs and explicit stop/escalation conditions.
Incorrect Answers
A:This diagnostic relates to a different failure (An agent edits a tax calculator and reports success solely because the build passes.). Review acceptance fixtures, expected amounts and post-change test results.
C:This diagnostic relates to a different failure (An agent reports a missing file after a repository API returned 403 permission denied.). Inspect raw HTTP status, token scopes, resource identity and final retrieval log.
D: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.). Review incident timeline, root cause, new fixture and subsequent evaluation outcomes.
Question 58
Which result would BEST validate the corrected GitHub agent workflow? A test-writing agent passes in a local container but fails in CI because the container image uses an older runtime.
- 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.
- Both isolated agent environment and CI execute the same fixtures without runtime mismatch.
- Untrusted PR checks run with restricted credentials and privileged deployment occurs only after authorized merge.
Explanation
Correct Answer
C:Both isolated agent environment and CI execute the same fixtures without runtime mismatch. The corrective action is: Pin supported runtime and dependency versions for the agent workspace and CI or document a compatible matrix.
Incorrect Answers
A:This outcome is relevant to another case (A third-party documentation MCP response embeds a fake approval to disable branch protection during setup.). For the stated scenario verify: Both isolated agent environment and CI execute the same fixtures without runtime mismatch.
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: Both isolated agent environment and CI execute the same fixtures without runtime mismatch.
D:This outcome is relevant to another case (A CI remediation agent proposes changing deployment secrets because tests fail in an untrusted pull-request environment.). For the stated scenario verify: Both isolated agent environment and CI execute the same fixtures without runtime mismatch.
Question 59
Which technical principle BEST explains the proper response to this agentic SDLC scenario? A tool call to create a pull request times out; the agent cannot tell whether the PR was created.
- CI invocation must respect workflow event permissions and the exact code revision being evaluated.
- An MCP tool is available only after an appropriate server connection and tool discovery succeed.
- Server allow lists define trusted connection boundaries separate from a model's own suggestions.
- Ambiguous network errors should trigger reconciliation before repeating mutating API calls.
Explanation
Correct Answer
D:Ambiguous network errors should trigger reconciliation before repeating mutating API calls. This concept explains the proper correction. The corresponding intervention is: Query repository state using a stable idempotency key or unique branch before retrying creation.
Incorrect Answers
A: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: Ambiguous network errors should trigger reconciliation before repeating mutating API calls.
B:This concept governs a different case (A custom agent cannot query the approved issue catalog because its MCP server was never configured in the environment.). An MCP tool is available only after an appropriate server connection and tool discovery succeed.
C:This concept governs a different case (A repository agent attempts to connect to an unapproved public MCP server while an authorized internal server is available.). Server allow lists define trusted connection boundaries separate from a model's own suggestions.
Question 60
Select TWO appropriate statements, one remediation and one verification, for this GitHub agent scenario: A code-writing agent boosts coverage percentage with trivial assertions that do not verify error handling.
- Verification: A deliberately broken negative case fails while valid positive cases still pass.
- Action: Classify the failure as authorization or tool access rather than absent repository content and correct the authorized scope.
- Unsafe shortcut: Count many trivial lines as sufficient regardless of assertion quality.
- Verification: The issue label or comment exists with a traceable successful request and actor.
- Action: Add assertions for failure modes, outputs and invariants aligned to the intended feature behavior.
Explanation
Correct Answers
A:Verification: A deliberately broken negative case fails while valid positive cases still pass. This checks the intended result. Coverage volume is not equivalent to behavioral correctness or useful test strength.
E:Action: Add assertions for failure modes, outputs and invariants aligned to the intended feature behavior. This fixes the target workflow. Coverage volume is not equivalent to behavioral correctness or useful test strength.
Incorrect Answers
B:Action: Classify the failure as authorization or tool access rather than absent repository content and correct the authorized scope. This action responds to a different problem (An agent reports a missing file after a repository API returned 403 permission denied.). For the target use: Add assertions for failure modes, outputs and invariants aligned to the intended feature behavior.
C:Unsafe shortcut: Count many trivial lines as sufficient regardless of assertion quality. This is neither an appropriate remediation nor valid evidence. Coverage volume is not equivalent to behavioral correctness or useful test strength. Safer action: Add assertions for failure modes, outputs and invariants aligned to the intended feature behavior.
D:Verification: The issue label or comment exists with a traceable successful request and actor. This evidence relates to another situation (An agent's final summary says it updated an issue, but the issue has no change.). For the target verify: A deliberately broken negative case fails while valid positive cases still pass.