MockCertMockCert
Menu

Test yourself in exam conditions

A full Google Cloud Professional Agentic Architect mock exam: 60 questions in 120 minutes. Your first one is free.

Start a free mock exam
Domain 2 · 2 topics · about 15 minTopics in this domainTopics

Domain 2 · Overview

Overview

Up next: Using coding agents effectively · 11 steps + check · 7 min

Domain 2 · Topic 1 of 2

Using coding agents effectively

Step 1 of 11

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.

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.

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.

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.

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.

{
  "method": "tools/call",
  "params": { "name": "list_agents" }
}
  • "name": "list_agents": the tool to run

Step 6 of 11

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.

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.

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.

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.

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.

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.

Sources: MCP Tools Reference: ces.googleapis.com | CX Agent Studio | Google Cloud Documentation (opens in a new tab) · GKE security overview | Google Cloud Documentation (opens in a new tab) · Security patching | GKE security | Google Cloud Documentation (opens in a new tab) · GKE overview | Google Kubernetes Engine (GKE) | Google Cloud Documentation (opens in a new tab)

Check

Check: Using coding agents effectively

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Customizing coding agents for enterprise workflows · 11 steps + check · 7 min

Domain 2 · Topic 2 of 2

Customizing coding agents for enterprise workflows

Step 1 of 11

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Step 11 of 11

Check

Check: Customizing coding agents for enterprise workflows

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Domain 2 · after the last topic

Domain 2 review

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.

Flashcards

Domain 2 flashcards

3 cards with this domain's key facts. Flip each one and check what you knew. No account needed.

Test yourself in exam conditions

A full Google Cloud Professional Agentic Architect mock exam: 60 questions in 120 minutes. Your first one is free.

Start a free mock exam
Next domain · 33% of the examDeveloping custom agents3 topics

Report a problem

On “”. Tell us what looks wrong; we read every report.

What is the problem?

Optional.