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 5 · 2 topics · about 15 minTopics in this domainTopics

Domain 5 · Overview

Overview

Up next: Configuring agent security and governance · 11 steps + check · 8 min

Domain 5 · Topic 1 of 2

Configuring agent security and governance

Step 1 of 11

Think first How do agent identity, Agent Gateway policies and content filters work together to keep an agent's actions safe?

Why it matters: Questions describe an agent's access or safety need and ask which identity, policy, auth method or filter meets it.

Every agent has its own identity, and Agent Gateway denies its connections unless IAM allows them. The gateway also reports on traffic. Model Armor and semantic governance policies then check content and tool calls.

Step 2 of 11

Term Meaning
SPIFFE ID The unique ID that Agent Identity gives each agent for authentication, access control and audit.
Agent Gateway Enforces IAM allow policies on agent traffic to resources registered in Agent Registry, using Identity-Aware Proxy (IAP).
Egress policy An IAM policy that grants roles/iap.egressor on registered agents, MCP servers and endpoints.
Model Armor A content filter on a gateway that scans user prompts and tool responses in real time.
Semantic governance policy Business rules in natural language that a policy engine checks each agent tool call against.

Step 3 of 11

Each agent gets a unique SPIFFE ID from Agent Identity. That ID works as the agent's digital signature for authentication, access control and audit. Identity and Access Management (IAM) policies then decide what the agent may reach.

Step 4 of 11

A CX Agent Studio tool's auth config sets at most one method. API key, OAuth, service agent ID token, service account and bearer token are mutually exclusive, so you pick only one. An API key can travel in an HTTP header or in the query string.

Three auth methods for tool API calls compared

Feature OAuth Service account Bearer token
Where the credential comes from Client secret, named by a Secret Manager secret version The service account, used to get an access token A session context variable
Key setting The provider's token endpoint, used to get an access token Scopes; the cloud-platform scope is the default Token given as $context.variables plus the variable name
Notes Supports only the client credential grant Access token is sent in the Authorization header Suits a token collected from the end user

Exam trap OAuth for tool calls does not accept every grant type. Only the client credential grant is supported.

Step 5 of 11

OpenAPI tool actions run as the CX Agent Studio service account. They do not use the end user's own permissions. Deploy agent applications in a dedicated project to limit what that service account can reach. A conditional IAM role binding can also restrict a principal to one agent application.

Exam trap A tool action does not run with the permissions of the user chatting with the agent. It runs with the CX Agent Studio service account's permissions.

Step 6 of 11

Agent Gateway blocks every connection unless an IAM policy allows it. You write IAM allow policies for resources registered in Agent Registry. The gateway enforces them through IAP, so enable the IAP API (iap.googleapis.com) in your project. It also terminates mTLS handshakes and handles OAuth 2.0 and workload identity federation for you.

Exam trap An agent cannot reach a registered tool just because both are registered. With no explicit IAM policy, the gateway blocks the connection.

Step 7 of 11

Egress policies cover four kinds of agent interaction. They control traffic from an agent to a registry, another agent, an MCP server or an endpoint. One policy condition, ReadOnly, limits the agent to reading data and prevents writes. A condition's CEL expression must evaluate to true to allow access.

Exam trap Binding a policy to an unregistered resource does not wait until runtime to fail. It is checked at bind time and fails at once with a NOT_FOUND error.

Step 8 of 11

The gateway produces telemetry for every agent interaction. It captures this telemetry at the network level and exports it to Agent Observability. That gives you a full view of what your agents do. One gateway instance can govern up to 5,000 resources registered in Agent Registry.

Step 9 of 11

Model Armor filters content; the policy engine judges tool calls. Semantic governance constraints are business rules in plain language, up to 5,000 characters. In DRY_RUN mode, the engine evaluates tool calls and logs verdicts but never blocks them.

Model Armor and semantic governance compared

Feature Model Armor Semantic governance
What it checks User prompts and tool responses, in real time Agent tool calls, against your constraints
What it stops Prompt injection, sensitive data leaks and harmful content Tool calls that break a constraint or do not match the user's request
Where it applies Attached to gateways Agents linked to an Agent Gateway

Exam trap A tool call that breaks no constraint can still be denied. With user intent matching on, the engine rejects calls that do not match the user's request.

Step 10 of 11

Governed agents need two deployment fields set. Deploy the agent with identity_type=AGENT_IDENTITY and agent_gateway_config, or it is left out of the policy's agent selector. The agent must also call its model without streaming. With several projects, define policies in the management project, because the engine evaluates only its own project's policies.

Exam trap You cannot add the two fields to an existing agent. Both are immutable, so an agent deployed without them must be redeployed.

Step 11 of 11

Check

Check: Configuring agent security and governance

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

Loading the cards and questions…

Up next: Implementing secure agent behavior and execution · 11 steps + check · 6 min

Domain 5 · Topic 2 of 2

Implementing secure agent behavior and execution

Step 1 of 11

Think first How would you layer identity, access checks and content filtering so an agent can only do what it should?

Why it matters: Questions describe an agent deployment and ask which control blocks a risk, proves identity or approves a destination.

Agent Gateway is the checkpoint for agent traffic: it denies every connection by default and checks who is asking and where they are going. Model Armor then screens the content of prompts and responses for attacks and data leaks.

Step 2 of 11

Term Meaning
Agent Registry The central directory of approved agents, tools, MCP servers and endpoints in an organization.
SPIFFE ID The unique, secure ID that Agent Identity gives each agent, acting as its digital signature.
Model Armor Content security filters that scan prompts and responses to block prompt injection, data leaks and harmful content.
Floor settings Minimum protection rules that every Model Armor template created at the project level must meet.
Semantic governance policy A plain-language rule that controls how agents use tools and is enforced at runtime.

Step 3 of 11

Agent Gateway blocks every connection unless IAM allows it. Access starts closed. An agent can reach a destination only after an explicit IAM policy grants that access. Before allowing a connection, the gateway also checks permissions against Agent Registry.

Exam trap Registering a tool in Agent Registry is not enough on its own. Without an explicit IAM policy that grants access, the connection stays blocked.

Step 4 of 11

Agent Identity answers who; Agent Registry answers where. Each agent's SPIFFE ID acts as its digital signature, so authentication, access control and audits tie back to one agent. The registry lists which Model Context Protocol (MCP) servers, tools and endpoints are approved targets.

The two identity and access building blocks of Agent Gateway

Feature Agent Identity Agent Registry
Question it answers Who made the request? What destinations are approved?
What it holds A unique SPIFFE ID for each agent Approved agents, tools, MCP servers and endpoints
What it is used for Authentication, access control and auditing Checking permissions before a connection is allowed

Step 5 of 11

The gateway handles OAuth and Workload Identity Federation for agents. Agent Gateway works with the Agent Identity Auth Manager. Together they handle OAuth handshakes and Workload Identity Federation transparently, as part of secure transport between agents and their destinations.

Step 6 of 11

Semantic governance policies stop unintended agent actions at runtime. These rules are written in plain language and enforce business rules while the agent runs. For example, a policy can stop an agent from running an unsafe combination of tools.

Step 7 of 11

Model Armor scans both what goes into a model and what comes out. Attached to a gateway, it checks user prompts and tool responses in real time. It covers traffic going to the agent and traffic leaving it. Some integrations, such as Apigee, also clean intermediate steps like grounding data.

Step 8 of 11

Start Model Armor in Inspect only, then move to Inspect and block. Watching first shows likely block rates for your use case. After you review the logs and tune settings, switch modes for active protection.

Model Armor enforcement types compared

Feature Inspect only Inspect and block
On a violation Logs details to Cloud Logging; processing continues Gives active protection
When to use it First, to learn block rates and efficacy After analyzing logs and adjusting settings

Exam trap Calling Model Armor through its REST API does not block anything by itself. It only detects and reports violations, so the application must decide whether to block.

Step 9 of 11

Floor settings set the minimum bar for every project template. A floor setting violation blocks the prompt or response and sends a finding to Security Command Center. Floor settings also protect MCP tool calls and responses. Keep separate templates for user prompts and model responses.

Step 10 of 11

Model Armor checks each turn alone and cannot read encoded text. It does not track conversation history across turns. It does not decode Base64, hexadecimal, URL-encoded or encrypted prompts. Only the Gemini Enterprise integration scans documents and images; every other integration scans text only.

Exam trap An attack split across several turns is not caught by conversation context, because Model Armor treats each prompt and response as a single-turn request.

Step 11 of 11

  • Agent Gateway blocks all connections until an explicit IAM policy grants access.
  • Agent Identity gives each agent a SPIFFE ID; Agent Registry lists approved destinations.
  • Model Armor screens prompts and responses, in real time, on both ingress and egress paths.
  • Begin with Inspect only, read the logs, then switch to Inspect and block.
  • Model Armor sees one turn at a time and skips encoded content.

Sources: Agent Gateway overview | Gemini Enterprise Agent Platform | Google Cloud Documentation (opens in a new tab) · Model Armor overview | Google Cloud Documentation (opens in a new tab) · Overview | Model Armor | Google Cloud Documentation (opens in a new tab)

Check

Check: Implementing secure agent behavior and execution

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

Loading the cards and questions…

Domain 5 · after the last topic

Domain 5 review

Each topic's Check tested it on its own; this mixes them.

Mixed quiz

Take the Domain 5 quiz

9 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 5 flashcards

4 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
All domains studiedTry a timed mock exam

Report a problem

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

What is the problem?

Optional.