A full GitHub Certified: Agentic AI Developer mock exam: 60 questions in 120 minutes, scored against the real exam's pass mark. Your first one is free.
Think first Before an agent starts, how do you decide what a successful result looks like and how you will measure it?
Why it matters: Questions describe an agent task and ask which outcomes, constraints and evaluation signals show the work truly succeeded.
Define each agent task by its inputs, its outputs and its success criteria. The criteria should match the task's real intent, not just a green build. Signals from checks, scans and reviews then tell you whether the result meets them.
Reported, thanks
Step 2 of 11
Term
Meaning
Success criteria
How an agent's results are judged: through checks, scans and review outcomes.
Operational constraint
A boundary on the task, such as adding no secrets or never pushing directly to main.
Resolution rate
The percentage of tasks an agent completes successfully; a key evaluation metric.
Required check
A CI workflow a pull request must pass before it can merge, set through rulesets or branch protection.
Hook
Code that runs at key points of agent work and enforces a rule instead of asking the model.
Reported, thanks
Step 3 of 11
Describe the outcome you want and its constraints. A good issue gives a clear problem, complete acceptance criteria and hints about which files to change. Vague tasks invite changes that look plausible but miss the real problem. The Optional prompt field can add coding patterns, files to modify or testing requirements.
Exam trap Comments added to an issue after assignment never reach Copilot. Post follow-up details on the pull request instead.
Reported, thanks
Step 4 of 11
Constraints state what the agent must not do. Typical ones: workflow edits need platform review, no secrets may be added, and nothing goes straight to main. Another criterion is that scope matches intent, with no unexpected files changed. Hooks enforce rules by running code, and preToolUse can approve or deny any tool call.
Reported, thanks
Step 5 of 11
Passing CI is necessary but not always sufficient. Write criteria around the real goal, such as "vulnerability resolved" rather than "tests passed". Making the CI workflow a required check blocks merging until it passes. Copilot can still produce incorrect or insecure code, so review and test it before production.
Reported, thanks
Step 6 of 11
Plan mode settles requirements before any code changes. The plan agent researches the task with read-only tools and codebase analysis to find its requirements and constraints. Its plan gives a summary, a breakdown of steps and open questions. You can iterate on it to clarify requirements or adjust scope.
Reported, thanks
Step 7 of 11
Measure resolution rate, token efficiency, latency and tool call reliability. GitHub uses these metrics to evaluate Copilot. Each evaluation includes several independent runs, because model outputs are nondeterministic. For one session, the session log and overview show progress, token usage and session length.
Reported, thanks
Step 8 of 11
Review comments carry a High, Medium or Low severity. Attributions under each comment name the agent skill or MCP server that produced it. Rating comments helps improve future suggestions.
Evaluation signals and what each tells you
Signal
Kind
What it tells you
Resolution rate
Quantitative
Share of tasks completed successfully
Session token usage and length
Quantitative
How much one session used and how long it ran
Review comment severity
Qualitative
How important each issue found is
Session history query
Qualitative
Sessions where the agent struggled or needed repeated correction
Exam trap A default Copilot code review leaves a Comment review. It does not count toward the approvals a pull request requires.
Reported, thanks
Step 9 of 11
Copilot cloud agent scans its own code by default. While generating, it runs CodeQL, secret scanning and dependency analysis on new code. New dependencies are checked in the GitHub Advisory Database for malware and High or Critical vulnerabilities. This needs no GitHub Advanced Security license. The agent also gets a second opinion from Copilot code review.
Exam trap Copilot does not re-review new pushes on its own. Configure automatic reviews to include new pushes if you want that.
Reported, thanks
Step 10 of 11
Hooks can run lint, format and security checks during execution. Copilot cloud agent also runs tests and linters in its own ephemeral environment before pushing. Test a hook locally by piping input into it, checking its exit code and validating its JSON output. Code scanning alerts in a security campaign can be handed to Copilot to fix.
Reported, thanks
Step 11 of 11
Define every agent task by its inputs, outputs and success criteria.
Write criteria for the real intent; passing CI alone may not be enough.
Track resolution rate, token efficiency, latency and tool call reliability.
Copilot cloud agent scans new code with CodeQL, secret scanning and dependency analysis.
Default Copilot reviews are Comment reviews and do not count as approvals.
Think first When an agent's workflow run fails, how do you tell a reasoning error from tool misuse or an environment problem?
Why it matters: Questions describe a failed agent run and ask where to find the evidence and which kind of root cause it points to.
GitHub makes an agent's actions traceable through workflow logs, commit history and pull request discussions. During a session, you can also follow a session log that shows what the agent is doing. The steps below show where to look in that evidence.
Reported, thanks
Step 2 of 10
Term
Meaning
Workflow artifact
Files a job saves, such as build logs, kept after the run ends and shareable with other jobs.
Check run
The record GitHub creates for each job inside the check suite of a workflow run.
Expanded line
The part of an expression log that shows the if condition with its runtime values filled in.
Transient failure
A temporary failure, such as a network issue, that a retry is meant to handle.
Execution context
The setting an agent runs in. It enforces branch-based scope, which the custom agent itself does not set.
Reported, thanks
Step 3 of 10
A failed run's logs are where diagnosis starts. You can view and search the build logs of a failed run, then re-run it. Search only looks inside expanded steps, so expand a step before you search it. Each job also logs two steps GitHub adds itself: "Set up job" and "Complete job".
Exam trap A log search that finds nothing does not prove the text is absent. Collapsed steps are left out of the search results.
Reported, thanks
Step 4 of 10
--log-failed shows only the failed steps. In GitHub CLI, swap --log for --log-failed to cut the output down to the steps that failed. Each run has one check suite with a check run per job. Copilot CLI includes the GitHub MCP server, so it can read runs, job logs and check statuses directly.
Reported, thanks
Step 5 of 10
Artifacts keep logs and files after the run ends. Use artifacts, not caching, when you need build logs or binaries after a run. By default, logs and artifacts are kept for 90 days. You can customize that period, depending on the repository type.
Evidence sources for a failed run and their limits
Evidence
What it shows
Watch for
Build logs
Step output of a failed run, searchable
Search skips collapsed steps
Log archive after a partial re-run
Logs of the jobs you re-ran
Jobs you did not re-run are missing
Artifacts
Saved files such as binaries or build logs
Deleted together with the workflow run
Expression log
How a job-level if was evaluated
Not written for step-level conditions
Exam trap Deleting a workflow run also deletes its artifacts from storage. Download the evidence before you clean up old runs.
Reported, thanks
Step 6 of 10
Job-level if evaluations are logged. GitHub Actions evaluates a job's if itself and sends the job to a runner only when it is true. The log explains a skipped job and one that ran unexpectedly. Find it in JOB-NAME/system.txt inside the downloaded log archive. Its Expanded line shows the actual runtime values.
Exam trap Expression logs exist only for job-level conditions. For a step-level if, turn on debug logging to see the evaluation in the job logs.
Reported, thanks
Step 7 of 10
Some failures come from the environment, not the code. A test that passes locally but fails in CI with a one-day difference may be a timezone issue, because the runner uses UTC. Comparing a passing and a failing log can expose a race condition, like a test not waiting for a background job. GitHub Actions contexts hold run values, and most can be used at any point in a workflow. Contexts change with the run's conditions, so a context can be empty in some jobs.
Reported, thanks
Step 8 of 10
An agent can only act within its tools and access. A custom agent's tools field defines its actions, and applyTo limits the files it focuses on. Copilot in the cloud reaches only the repository it works in. Agentic Workflows give the agent read-only tokens by default. Check these limits before you blame the agent's reasoning.
Exam trap Branch-based scope is not set by a custom agent's tools or applyTo. The execution context the agent runs in always enforces it.
Reported, thanks
Step 9 of 10
Retries are for temporary failures. Use a retry for network issues or other transient errors. A failure on every new commit has a different cause. An invalid workflow file in .github/workflows produces a failed run for each new commit, so fix the file instead.
Reported, thanks
Step 10 of 10
Expand steps before searching a failed run's logs; search skips collapsed steps.
Use --log-failed in GitHub CLI to see only the failed steps.
Logs and artifacts stay 90 days by default, and deleting a run deletes its artifacts.
Job-level if evaluations are in system.txt; step-level ones need debug logging.
A local pass with a CI failure can come from the runner using UTC.
Think first When an evaluation shows an agent behaving badly, should you change its instructions, its memory, or its tools?
Why it matters: Questions describe an evaluation finding and ask which instruction, workflow, memory, or tool setting to change.
Tuning an agent means adjusting three levers: the instructions and workflows it follows, the memory it draws on, and the tools it may use. Rules that must hold every time belong in custom instructions, because a stored memory is not guaranteed to be used.
Reported, thanks
Step 2 of 11
Term
Meaning
Custom instructions
Markdown files, such as .github/copilot-instructions.md, that tell Copilot how to work in a repository.
Copilot Memory
Stored repository-level facts and user-level preferences that Copilot can retrieve in later work.
Safe outputs
Validated write actions declared in agentic workflow frontmatter; the only way the agent may write.
MCP server
A server that gives an agent extra tools, such as the GitHub or Playwright MCP server.
Tool search
A Copilot CLI mode that avoids loading every tool at once; it is skipped below about 30 tools.
Reported, thanks
Step 3 of 11
Each instruction file type has its own location and reach. Put rules for every task in the root .github/copilot-instructions.md file. Those rules also reach Copilot Chat and Copilot code review. Narrow a rule to certain file types with a glob in the front matter of a path-specific file.
Instruction file types compared
Instruction type
File location
What it covers
Repository-wide
.github/copilot-instructions.md in the repository root
All tasks given to Copilot, plus Chat and code review
Path-specific
.github/instructions/**/*.instructions.md
File types matched by the glob in its front matter
Personal
~/.copilot/copilot-instructions.md or ~/.copilot/instructions/**/*.instructions.md
Your own personal instructions
Agent instructions
AGENTS.md, CLAUDE.md, GEMINI.md or REVIEW.md
Supported by Copilot code review
Exam trap Storing a must-follow rule as a memory is the wrong fix. A saved memory may still go unused, so consistent rules belong in custom instructions.
Reported, thanks
Step 4 of 11
Edit the markdown, recompile, then push both files. Change the workflow file in .github/workflows/ and run gh aw compile to refresh its lock file. Commit both files and check the GitHub Actions results in a pull request. Use gh aw logs and gh aw audit to compare duration, tokens, and cost.
Example: Reviews recent runs, inspects one run, then rebuilds the lock file after an edit.
gh aw logs
gh aw audit RUN-ID
gh aw compile
gh aw audit RUN-ID: shows token usage and estimated inference cost for one run
Reported, thanks
Step 5 of 11
Frontmatter limits what the agent can read, write, and spend. The permissions field defaults to read-all. Writes such as new issues or pull requests happen only through declared safe outputs. Secrets stay in isolated downstream jobs. The engine field picks the coding agent, with GitHub Copilot as the default.
Example: Keeps the agent read-only and lowers its per-run inference cap.
permissions: read-all
max-ai-credits: 500
max-ai-credits: 500: caps inference usage for a single run
Exam trap Leaving out max-ai-credits does not mean unlimited spend. Each run still has a default cap of 1,000 AIC.
Reported, thanks
Step 6 of 11
Give risky tasks less autonomy instead of one rule for all. Cloud sessions start in interactive mode with assisted tool approvals. Users can turn on allow-all mode unless the enterprise blocks it. Enterprises use managed-settings.json to disable allow-all or assisted approval, or to set permissions per operation.
Reported, thanks
Step 7 of 11
By default, memories expire 90 days after creation or last upvote. Copilot decides if a memory is a user-level preference or a repository-level fact by whom it applies to, not who said it. So say the scope plainly. Owners can set fact retention from 7 to 180 days, and the shorter of organization and enterprise settings applies.
Exam trap Retrieving a memory does not extend its life. Only its creation or an upvote starts the default 90-day clock again.
Reported, thanks
Step 8 of 11
Turning memory off does not erase what is already stored. Pick the action that actually removes unwanted context. Users with write access can review stored repository facts in settings and delete wrong or misleading ones.
Memory actions and their limits
Action
Effect
Limit or next step
Turn off memory in the CLI
Stops further storage and retrieval
Memories already in the conversation stay; start a new session
Disable memory use
Copilot stops using memories
Stored memories are not deleted
Ask Copilot to forget
Downvotes the memory
To delete now, use personal or repository settings
Disable memory for a repository
Repository memory stops
User-level preferences still apply; disable at organization or enterprise level
Run copilot -p
Memory is off by default for that run
Add --enable-memory to turn it on
Exam trap Telling Copilot to forget something does not delete it. Copilot only downvotes the memory, which stays in the store.
Reported, thanks
Step 9 of 11
Custom agents inherit repository MCP tools unless you restrict them. You can limit a custom agent to specific tools. The GitHub and Playwright MCP servers are on by default for cloud agent. Organization owners use the firewall to choose which external hosts and URLs the agent can reach.
Exam trap A deniedMcpServers entry in managed-settings.json will not block a server defined in a repository custom agent profile. Those settings cover user and repository settings only.
Reported, thanks
Step 10 of 11
Tool search pays off only above roughly 30 tools. With fewer tools, Copilot CLI simply loads them all. A Markdown custom agent that names many tools can add deferred-tool-loading: true to its frontmatter. Set an MCP server's deferTools to "never" to keep its tools always listed.
Reported, thanks
Step 11 of 11
Put rules that must always apply in custom instructions, not memory, since a stored memory may go unused.
After editing an agentic workflow, run gh aw compile and commit both the markdown and the lock file.
Asking Copilot to forget only downvotes a memory; delete it in personal or repository settings.
Subagents in Copilot CLI can use memories, but only the root agent may store or vote on them.
Custom agents inherit repository MCP tools by default, but you can limit them to specific tools.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 4 quiz
10 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.
Thank you. It goes straight to the people who write these notes.
Test yourself in exam conditions
A full GitHub Certified: Agentic AI Developer mock exam: 60 questions in 120 minutes, scored against the real exam's pass mark. Your first one is free.
Free to start: the study notes and plan, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.