Think first How do you give a coding agent useful tools while keeping its code, credentials and clusters safe?
Why it matters: Questions describe a coding agent setup and ask which tool setting, sandbox control or patching approach fits it.
An agent's tools carry risk hints that clients use to decide when to ask the user. Untrusted workloads run in isolated sandboxes, and Workload Identity Federation is the most secure way to give their Pods access. GKE then keeps clusters patched through staged release channels.
Reported, thanks
Step 2 of 11
Term
Meaning
Tool annotation
A hint sent to MCP clients that describes a tool's basic risk, such as whether it is read-only.
GKE Sandbox
A GKE feature, built on gVisor, that isolates untrusted workloads in sandboxes on the node.
Workload Identity Federation
Lets a Kubernetes service account run as an IAM service account, so its Pods get that account's permissions.
Network policy
A namespace rule that limits which Pods can send and receive traffic, based on Pod labels.
Soak time
The time a patch version spends in earlier release channels before it reaches later ones.
Reported, thanks
Step 3 of 11
Annotations tell MCP clients how risky a tool is. Most clients treat these hints as untrusted. Still, a client can use them to decide when to show the user a confirmation prompt before a tool runs.
Reported, thanks
Step 4 of 11
With no annotation, a tool is assumed able to cause harm. The destructiveHint defaults to true and the readOnlyHint defaults to false. A tool must say otherwise to look safe. For openWorldHint, a web search tool is open world, while a memory tool is not.
Two MCP annotations compared
Feature
destructiveHint
readOnlyHint
Meaning when true
The tool can perform destructive actions
The tool does not modify its environment
Default value
true
false
Value on the list_agents tool
false
true
Exam trap A tool with no annotations is not treated as safe. Its destructive hint defaults to true and its read-only hint defaults to false.
Reported, thanks
Step 5 of 11
A client runs a tool with the JSON-RPC tools/call method. The request names the tool inside params. For example, the read-only list_agents tool is called this way.
Example: Asks an MCP server to run the list_agents tool.
Protect the node's operating system from untrusted Pods. That is the good practice for clusters running unknown or untrusted workloads. Separately, you can enable GKE Sandbox on a cluster to isolate untrusted workloads in sandboxes on the node. It is built on the open gVisor project.
Reported, thanks
Step 7 of 11
Workload Identity Federation is the most secure way to grant Pod access. It also works with GKE Sandbox, unlike the node's Compute Engine service account. Giving Pods a service account key is strongly discouraged, because keys are hard to manage securely. Autopilot clusters always have Workload Identity Federation turned on.
Two ways for Pods to get Google Cloud credentials
Feature
Workload Identity Federation
Node service account
Works with GKE Sandbox
Yes
No, GKE Sandbox blocks the Compute Engine metadata server
How Pods get permissions
A Kubernetes service account runs as an IAM service account
From the node's Compute Engine service account
Exam trap In Standard clusters, Workload Identity Federation is not on by default. Pods can reach instance metadata until you enable it manually.
Reported, thanks
Step 8 of 11
With no network policy, all Pod traffic is allowed. Ingress and egress flow freely into and out of every Pod. Once you apply a network policy in a namespace, traffic to and from Pods that don't match its labels is dropped.
Exam trap A network policy does not only affect the Pods it names. Pods in that namespace that don't match its labels lose all traffic.
Reported, thanks
Step 9 of 11
GKE upgrades control planes and nodes automatically. Google scans Kubernetes and Google-managed containers and starts patching when a fix exists. Patches reach the Rapid channel first, then Regular, then Stable. Some fixes need only a control plane upgrade, while others also need node upgrades.
Exam trap An automatic control plane upgrade does not fix every vulnerability. Some fixes also require node upgrades.
Reported, thanks
Step 10 of 11
Accelerated patch auto-upgrades skip the in-channel soak time. First, test the patch on other GKE clusters with rollout sequencing before production gets it. In Regular or Stable, you can then manually upgrade to that exact patch version. Google recommends upgrading clusters at least once a month.
Reported, thanks
Step 11 of 11
MCP clients treat tool annotations as untrusted hints, but can use them to decide when to ask the user.
A tool is assumed destructive and not read-only unless its annotations say otherwise.
GKE Sandbox isolates untrusted workloads and blocks the metadata server, so use Workload Identity Federation for credentials.
Applying a network policy drops traffic for Pods in its namespace that don't match its labels.
Patches move from Rapid to Regular to Stable, and accelerated auto-upgrades skip that soak time.
Think first How would you package a new agent skill, then build, govern, and safely stop the agents that use it?
Why it matters: Questions describe an enterprise need and ask which skill, registry, CLI, or governance feature meets it.
Skills are reusable packages that extend what an agent can do, stored in a private registry. Deployed agents move through a set lifecycle, from scaffold to observe. Gateway policies govern what deployed agents may do.
Reported, thanks
Step 2 of 11
Term
Meaning
Skill
A self-contained package of instructions and executable code that extends an agent's capabilities.
Skill revision
An immutable snapshot of one skill version, with a name, a description, and a link to its parent skill.
Agents CLI
A tool that walks agents through the lifecycle: scaffold, evaluate, deploy, publish, and observe.
Agent Registry
The central catalog for governing, discovering, and searching agents, tools, MCP servers, and skills.
Semantic governance policy
A plain-language rule that controls how an agent uses tools at runtime.
Reported, thanks
Step 3 of 11
Skill Registry stores agent skills privately and securely. Each skill is a self-contained package that adds a capability to an agent. A built-in skill named gcp-skill-registry lets agents create, search for, and manage skills themselves.
A skill compared with a skill revision
Feature
Skill
Skill revision
Can change?
Yes, it is mutable
No, it is an immutable snapshot
What it holds
Metadata, the default revision, and the content
A name, a description, and a parent skill reference
Exam trap A skill revision cannot be edited. To change a skill, you work with the mutable skill, which points to a default revision.
Reported, thanks
Step 4 of 11
A skill zip needs SKILL.md, no symbolic links, and at most 10 MB. Inside SKILL.md, the YAML front matter must have a valid name and description. Skill Registry checks every payload on create or update, and these checks run asynchronously.
The two required SKILL.md fields compared
Feature
name
description
Maximum length
64 characters
1024 characters
If the field is missing
Validation fails
Validation fails
Exam trap A name like My-Skill fails because names allow only lowercase letters, numbers, and hyphens. A name that starts or ends with a hyphen also fails.
Reported, thanks
Step 5 of 11
The Agents CLI gives one path: scaffold, evaluate, deploy, publish, observe. It serves both coding agents and developers. It manages infrastructure with Terraform and deploys through CI/CD pipelines on Cloud Build. Observability is built in through Cloud Trace and Cloud Logging.
Reported, thanks
Step 6 of 11
ADK agents run locally or scale globally on three platforms. The platforms are Agent Runtime, Cloud Run, and Google Kubernetes Engine. ADK comes in Python, TypeScript, Go, and Java. You can build predictable pipelines with workflow agents. For more adaptive behavior, let agents coordinate dynamic routing instead.
Reported, thanks
Step 7 of 11
Agents deployed to Agent Platform join Agent Registry automatically. The registry is one catalog for governance, discovery, and search. It holds MCP servers, tools, standalone skills, and AI agents across your organization.
Reported, thanks
Step 8 of 11
Agent Gateway blocks every agent connection unless IAM grants it. For Agent Runtime agents, Google runs the gateway proxy, so no proxy setup is needed. In dry run mode, the Semantic governance engine logs verdicts on tool calls but never blocks them.
Three kinds of policy for governing agents compared
Feature
IAM Unified Access Policy
Semantic governance policy
Token management policy
Controls
Which tools and endpoints an agent may reach
How an agent uses tools
Shared LLM token budgets
Example use
Grant one agent access to an approved tool
Stop an unsafe combination of tools
Prevent runaway token spending
Exam trap A tool call can be denied even with no constraints set. By default, the Semantic governance engine also checks that the call matches what the user asked for.
Reported, thanks
Step 9 of 11
Deleting a deployed agent is the kill switch. Deletion stops all running containers at once and invalidates the agent's identity. Any IAM Unified Access Policy binding for it stays active until you update or delete it.
Exam trap Revoking a policy alone is not an immediate halt. Policy changes take 2 to 7 minutes to spread, so pair revocation with deletion or traffic rerouting.
Reported, thanks
Step 10 of 11
Deploying with ADK collects traces, logs, and metrics by default. An agent's observability dashboards include an Evaluation view. It tracks response quality, safety, hallucination rates, and tool-use quality. To improve an agent, the adk optimize command refines its root system instructions against your test suite with the GEPA algorithm.
Reported, thanks
Step 11 of 11
A skill is mutable, but each skill revision is an immutable snapshot.
SKILL.md limits are 64 characters for the name and 1024 for the description.
Agent Gateway denies all agent connections by default until an IAM policy grants access.
For an immediate stop, delete the agent instead of relying only on policy revocation.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 2 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.
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.