GitHub Agentic AI Developer (GH-600) · 13% practice allocation

GitHub GH-600: Manage memory, state, and execution Practice Questions

5 free sample questions from the Manage memory, state, and execution domain, with answers and explanations. The full GH-600 bank has 61 questions across 6 domains. Questions are scenario-based and written from the official GitHub exam guide.

1.

A team is designing a long-running agentic workflow that processes large GitHub repository audit logs. The agent must maintain awareness of findings across thousands of log entries without exceeding the model's context window limit. The solution must also ensure that findings from six months ago do not silently influence current audit decisions unless explicitly retrieved. Which combination of THREE design choices correctly addresses these constraints? (Choose THREE.)

  • A. Summarize completed audit batches into compressed, structured durable artifacts and archive them outside the active context, making them available on explicit retrieval only.✓ Correct
  • B. Store all historical findings in an external semantic search index; retrieve only the findings relevant to the current log entry via similarity search at each step.✓ Correct
  • C. Replicate the full context window state to every tool integration endpoint so all tools always have complete historical context.
  • D. Use a rolling window that keeps only the last N log entries in the active context, discarding older entries from the window as new ones arrive.
  • E. Expand the model's context window by upgrading to a model with a larger token limit so all findings fit in memory simultaneously.
  • F. Set a staleness threshold on archived findings so that findings older than a defined period are flagged as potentially stale and require explicit agent confirmation before influencing a decision.✓ Correct
Explanation

Options A, B, and F are correct. Option B (external semantic search with on-demand retrieval) addresses the context window constraint by keeping historical data outside active context and pulling only relevant information — this is the 'external memory' pattern that prevents context overflow. Option A (compressing completed batches into durable archived artifacts) directly maps to 'capturing task progress and decisions as durable artifacts' and ensures older findings do not passively linger in context. Option F (staleness thresholds requiring explicit confirmation) directly addresses 'preventing stale context from influencing agent decisions' — findings older than the threshold are not ignored but must be deliberately retrieved and confirmed, giving the agent control over historical influence. Option D is wrong because a simple rolling window discards older findings entirely rather than archiving them — this causes loss of important audit history that may need to be retrieved deliberately. Option E is wrong because upgrading to a larger context model does not solve the architectural problem of stale context influence; even with a larger window, six-month-old findings would silently affect decisions. Option C is wrong because replicating the full context to all tool endpoints introduces massive redundancy, amplifies stale context problems across every integration, and contradicts the principle of scoping context to task-relevant information.

2.

An agent is designed to help users draft and iteratively refine long technical documents across multiple sessions. After the first session ends, the agent must remember the overall document structure and user-approved section headings, but does NOT need to retain the raw intermediate drafts the user rejected. Which memory strategy best fits this requirement?

  • A. Use external vector storage to embed every message in the conversation and retrieve all of them at the start of the next session.
  • B. Persist only the approved document structure and section headings as long-term memory artifacts, discarding intermediate drafts after each session.✓ Correct
  • C. Store the entire conversation history including all rejected drafts in short-term memory so the agent can reference the full context on next launch.
  • D. Rely on the model's in-context window across sessions by passing the full prior session transcript each time the user reconnects.
Explanation

Option B is correct because persisting only task-relevant, user-approved artifacts (document structure and headings) as long-term memory satisfies the requirement to remember decisions without retaining unnecessary rejected content — this is scoping agent memory to task-relevant information. Option C is wrong because storing all rejected drafts in short-term memory wastes context and violates the principle of scoping memory; short-term memory does not persist across sessions anyway. Option A is wrong because embedding every message — including rejected drafts — in an external store contradicts the goal of discarding non-relevant content and would cause stale, unwanted context to influence future decisions. Option D is wrong because re-injecting the full prior transcript each session bloats the context window and makes the agent process information the user explicitly rejected, risking context drift.

3.

A developer is building a multi-agent system in which two concurrent agent sessions — one triggered by a CI pipeline and one triggered by a developer's IDE chat — both read and write shared deployment configuration state. The team reports that the agents occasionally overwrite each other's configuration changes, causing deployment failures. Which TWO practices should the developer implement to prevent conflicting context between these concurrent sessions? (Choose TWO.)

  • A. Implement optimistic or pessimistic locking on the shared state store so that only one agent session can write deployment configuration at a time.✓ Correct
  • B. Store all deployment configuration in each agent's in-context short-term memory to eliminate shared state entirely.
  • C. Assign each agent session a separate, isolated memory namespace and merge changes through a conflict-resolution layer before committing to shared state.✓ Correct
  • D. Increase the polling interval of both agents so they are less likely to run at the same time.
  • E. Configure both agents to use the same system prompt so their decisions are aligned and conflicts are prevented automatically.
Explanation

Options A and C are correct. Option A (locking) is the classical concurrency control mechanism — preventing simultaneous writes to shared state eliminates the race condition directly. Option C (isolated namespaces with a conflict-resolution merge layer) is the modern agent-design pattern that lets each session operate independently and then reconciles changes safely before committing, directly addressing the 'preventing conflicting context between concurrent agent sessions' skill. Option D is wrong because increasing polling intervals only reduces collision probability and does not eliminate conflicts; under load, the race condition will still occur. Option B is wrong because putting shared deployment config in each agent's short-term in-context memory does NOT eliminate shared state — it duplicates it, making conflicts worse and losing cross-session visibility. Option E is wrong because a shared system prompt aligns intent but does nothing to coordinate writes to external state; both agents could make independent, well-intentioned but conflicting changes with identical system prompts.

4.

A GitHub Copilot agent is coordinating a complex feature rollout across multiple tools: a GitHub repository, an Azure DevOps board, and a Slack workspace. At each step, the agent updates state in one tool and must ensure subsequent steps in other tools reflect the current, consistent state. A developer notices that after the agent posts a deployment approval to Slack, it then opens a GitHub PR as if approval had NOT yet been granted. Which root cause MOST likely explains this behavior, and which mitigation addresses it?

  • A. Root cause: The agent uses siloed per-tool context representations that are not synchronized, so the GitHub tool invocation reads stale pre-approval state. Mitigation: Implement a shared canonical state object that is updated after each tool action and injected into subsequent tool invocations.✓ Correct
  • B. Root cause: The agent's Slack integration has a bug that prevents message delivery. Mitigation: Debug and fix the Slack integration SDK.
  • C. Root cause: GitHub's API has a propagation delay. Mitigation: Add exponential back-off retry logic on all GitHub API calls.
  • D. Root cause: The agent's system prompt does not mention GitHub PRs. Mitigation: Add explicit GitHub PR instructions to the system prompt.
Explanation

Option A is correct because the described symptom — the agent acting as if approval was not yet granted when it clearly was — is a classic cross-tool context inconsistency. When each tool integration maintains its own siloed view of state, later tool calls read stale snapshots. The fix is a shared canonical state object (a centralized state record) that is updated atomically after each tool action and passed into every subsequent invocation, directly addressing the 'sharing agent state across tools and environments' and 'preventing stale context from influencing agent decisions' skills. Option B is wrong because the scenario explicitly states the approval was posted to Slack successfully — the problem is not delivery but the agent's subsequent context when calling GitHub. Option C is wrong because API propagation delay would affect whether GitHub sees the PR, not whether the agent knows approval was granted; the agent's own state tracking is the broken link. Option D is wrong because the system prompt governs the agent's general behavior and goals — it does not resolve runtime state synchronization across tool invocations.

5.

A GitHub Copilot agent autonomously executes a multi-step code migration task that can take several hours. Midway through execution, the compute environment is recycled and the agent process is terminated. When a new agent instance starts, it must resume work from the point of interruption without repeating already-completed migration steps. What is the MOST effective approach to enable this behavior?

  • A. Re-run the entire migration from the beginning each time, relying on idempotent operations to avoid side effects.
  • B. Increase the agent's in-context memory allocation so the model retains intermediate state even after the process restarts.
  • C. Configure the orchestrator to send a summary email of completed steps to the user, who then re-enters them manually when the agent resumes.
  • D. Capture task progress and each completed migration step as durable artifacts (e.g., a persisted progress ledger) that the new agent instance reads on startup.✓ Correct
Explanation

Option D is correct because capturing task progress and decisions as durable, externally persisted artifacts (a progress ledger or checkpoint file) allows a new agent instance to read the ledger, determine what has already been completed, and resume from the correct point — directly addressing the 'capturing task progress as durable artifacts' and 'resuming without repeating steps' competencies. Option A is wrong because re-running from the start wastes time and can cause unintended side effects even with idempotency; it does not represent a resume strategy. Option B is wrong because in-context memory is volatile and does not survive process termination; there is no 'context allocation' that persists across restarts. Option C is wrong because requiring manual re-entry introduces human error, breaks automation, and is not a scalable or reliable pattern for agent continuity.

Test yourself across every GH-600 domain

The free GH-600 practice test mixes about 20 questions weighted like the exam. The full 61-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Manage memory, state, and execution study guide (GH-600) →

Other GH-600 domains

← All GitHub Agentic AI Developer study resources