
This post walks through 10 realistic Professional Agentic Architect exam questions. After each one, we talk through every option, the wrong ones included, and explain why it does or does not meet the scenario's requirements. Try to settle on your own answer before you read the walk-through. The set leans toward security and governance (Agent Gateway, Agent Identity, VPC Service Controls, principal access boundaries and Model Armor), and it also covers connecting agents with MCP and A2A, choosing where to deploy an agent, and the agents-cli tool.
If you want more practice like this, take a look at our Professional Agentic Architect practice exams.
Your company runs a customer support agent on Agent Runtime. The agent calls several third-party MCP servers and one partner agent over A2A. The security team requires a single enforcement point for all outbound agent traffic, and any call to a destination that has not been approved and cataloged must be rejected by default. What should you do?
Choose only ONE best answer.
A) Create a VPC Service Controls perimeter around the agent's project and add the MCP server domains to an egress rule
B) Create an Agent Gateway in Client-to-Agent mode, attach an access policy for approved destinations, and bind it to the agent
C) Create an Agent Gateway in Agent-to-Anywhere mode, register the approved destinations in Agent Registry, and bind it to the agent
D) Configure Cloud NAT with firewall rules that allow egress only to the IP addresses of the approved servers and partner agent
This question is about outbound traffic. The agent calls third-party MCP servers and a partner agent over A2A, and the security team wants two things: one place where all of that egress is enforced, and a default-deny stance for any destination that has not been approved and cataloged. The right option has to see the agent's outbound calls, know which destinations are approved, and reject everything else.
Option A uses a VPC Service Controls perimeter. A perimeter controls access to Google Cloud APIs, such as BigQuery and Cloud Storage, and keeps protected data inside a set of projects. Its egress rules govern access to Google Cloud resources outside the perimeter. They do not catalog third-party MCP servers or partner agents, so this option gives the security team neither an approved-destination catalog nor a default-deny point for agent traffic.
Option B picks the right product but the wrong mode. A gateway in Client-to-Agent mode governs traffic coming into the agent from users. The agent's calls out to MCP servers and the partner agent never pass through it, so an access policy attached here cannot enforce anything on egress. It solves an inbound problem the question does not ask about.
Option C creates a gateway in Agent-to-Anywhere mode. In this mode, Agent Gateway sits between the agent and the tools and agents it calls. For each outbound call, the gateway checks the destination against Agent Registry and evaluates the access policies for the agent's identity. When no matching access policy exists, the gateway denies the request. Registering the approved MCP servers and partner agent provides the catalog, and binding the gateway to the agent makes it the single enforcement point. This meets both requirements.
Option D restricts egress with firewall rules behind Cloud NAT. These rules work on IP addresses only. They cannot recognize MCP or A2A traffic, so they have no idea which tool or agent a request is meant for. They also break whenever a provider changes its addresses, and an IP allowlist is not the approved, cataloged set of destinations the security team described.
The best answer is Option C. Option B is the closest alternative because it also uses Agent Gateway, but Client-to-Agent mode only sees inbound user traffic. Agent-to-Anywhere mode is the one that sees the agent's outbound calls, checks each destination against Agent Registry, and denies anything without a matching access policy.
For a side-by-side comparison of the two gateway modes, see our article on Client-to-Agent vs. Agent-to-Anywhere gateways.
A financial services company stores customer transaction data in BigQuery and Cloud Storage. Several agents on Agent Runtime read this data through Google Cloud APIs. An audit found that a developer with valid credentials could copy tables to a personal project outside the organization. The security team must prevent this data from leaving a defined set of projects, regardless of which identity makes the API call. What should you do?
Choose only ONE best answer.
A) Place the data and agent projects in a VPC Service Controls perimeter that restricts BigQuery and Cloud Storage
B) Bind an Agent-to-Anywhere gateway to every agent and deny egress to destinations that are not in Agent Registry
C) Apply a principal access boundary policy to the agents' identities that limits them to resources in the data projects
D) Configure a Model Armor template with Sensitive Data Protection to block agent responses that contain transaction data
The audit finding decides this one. A developer with valid credentials, not an agent, was able to copy tables to a personal project. The requirement is to keep the data inside a defined set of projects regardless of which identity makes the API call. So the control cannot depend on who the caller is, and it has to cover data moving through the BigQuery and Cloud Storage APIs.
Option A places the data projects and agent projects in a VPC Service Controls perimeter that restricts BigQuery and Cloud Storage. The perimeter stops protected data from being copied to a project outside it, and it applies even when the caller holds valid IAM permissions. That covers the developer from the audit finding as well as the agents.
Option B binds an Agent-to-Anywhere gateway to every agent. A gateway governs only the traffic of agents that are bound to it. The developer's direct BigQuery call never passes through a gateway, so this does nothing about the audit finding. It controls which tools and agents an agent can call, not whether data can leave a set of projects.
Option C applies a principal access boundary policy to the agents' identities. That would keep the agents limited to resources in the data projects, which is a reasonable guardrail for the agents. The developer is a separate principal, though, and stays unrestricted. The requirement says the data must stay put regardless of which identity makes the call, and a policy bound to specific principals cannot promise that.
Option D configures Model Armor with Sensitive Data Protection. Model Armor screens prompts and responses for content, so this could stop an agent from repeating transaction data in its replies. It has no control over data that moves between projects through Google Cloud APIs. A developer copying a table never touches Model Armor at all.
The best answer is Option A. Option C is the closest alternative because it is also a preventive guardrail on access, but it is tied to particular principals. A perimeter is tied to the projects and the APIs instead, so it holds no matter who makes the call, which is exactly what the audit finding requires.
Your organization deploys dozens of agents with Agent Identity in a project named agents-prod. The security team is concerned that a future IAM misconfiguration could grant one of these agents a role on resources in unrelated projects. They want a guardrail that limits every agent identity in agents-prod to resources in two approved projects, even if broader roles are granted later. What should you do?
Choose only ONE best answer.
A) Create an IAM deny policy on each unrelated project that denies all permissions to the agents' service accounts
B) Grant the agents roles only on the two approved projects and review IAM bindings across the organization each month
C) Create an organization policy constraint that restricts which projects can host Agent Runtime deployments
D) Create a principal access boundary policy for the two approved projects and bind it to the agent identities in agents-prod
The phrase that decides this question is "even if broader roles are granted later." The security team is not asking for careful grants today. They want a guardrail that keeps working after someone makes a mistake, so that a future role grant on an unrelated project cannot extend any agent in agents-prod beyond the two approved projects.
Option A creates an IAM deny policy on each unrelated project. Even if it reached the agents, this approach does not scale. Every new project in the organization would need its own deny policy, and any project that is missed becomes a gap. There is a second problem too. Agents with Agent Identity do not run as service accounts, so a deny policy aimed at the agents' service accounts would miss them.
Option B grants roles only on the two approved projects and reviews bindings monthly. Careful grants are good practice, but this is a process, not a guardrail. A misconfigured grant would take effect right away and stay in effect until a review finds it. The requirement is to limit access even if broader roles are granted later, and a review only finds those mistakes after they have happened.
Option C creates an organization policy constraint on which projects can host Agent Runtime deployments. That controls where agents are deployed. It says nothing about which resources a deployed agent can reach, so an agent in agents-prod could still be granted a role on an unrelated project.
Option D creates a principal access boundary policy. This kind of policy defines which resources a set of principals is eligible to access, and it still applies when an allow policy grants a broader role. You list the two approved projects in the policy and bind it to the principal set for every agent identity in agents-prod. That principal set has the form //agents.global.org-ORG_ID.system.id.goog/attribute.container/projects/PROJECT_NUMBER. A later role grant on an unrelated project would not give those agents access there.
The best answer is Option D. Option A is the closest alternative because it is also an enforced policy rather than a process. But a deny policy is attached to resources, one project at a time, and this one targets service accounts that these agents do not use. A principal access boundary is attached to the agent identities themselves, so a single policy limits every agent in agents-prod to the two approved projects.
For more on how these policies apply to agents, see our article on principal access boundary policies for Agent Identity.
A healthcare company runs several agents that share one user-managed service account with a downloaded key. Auditors raised three findings: the agents cannot be told apart in audit logs, the key is long-lived, and any developer with the Service Account Token Creator role can impersonate the account. You need to resolve all three findings. What should you do?
Choose only ONE best answer.
A) Redeploy each agent with Agent Identity and grant IAM roles directly to each agent's own SPIFFE-based principal
B) Create a dedicated service account for each agent and store each account's key in Secret Manager with automatic rotation
C) Configure Workload Identity Federation with the company's identity provider and map each agent to an external identity
D) Move the agents to the Compute Engine default service account and remove the Token Creator role from developers
There are three separate findings here, and the question asks us to resolve all of them: the agents must be distinguishable in audit logs, there should be no long-lived key, and developers should not be able to impersonate the identity the agents use. An option that fixes one or two of these is not enough.
Option A redeploys each agent with Agent Identity. Agent Identity gives every agent its own cryptographic identity based on the SPIFFE standard, so each agent appears separately in audit logs. These identities cannot have long-lived keys. Their access tokens are bound to an X.509 certificate that renews automatically every 24 hours. They also cannot be impersonated. Granting IAM roles directly to each agent's principal completes the move away from the shared account. All three findings are resolved.
Option B creates a dedicated service account for each agent. That fixes the audit log finding, since each agent would have its own identity. But each account would still have a key, and rotating it shortens its lifetime without removing it. Developers with the Token Creator role could also still impersonate these accounts. Two of the three findings remain open.
Option C configures Workload Identity Federation. Federation is designed for workloads that run outside Google Cloud, letting them use credentials from an external identity provider instead of service account keys. Mapping each agent to an external identity would mean maintaining those identities and mappings in a separate system, while Agent Identity gives each agent its own keyless identity that cannot be impersonated as part of deploying it. Federation is aimed at a different problem, so it is not the best way to give these agents their own identities.
Option D moves the agents to the Compute Engine default service account. That account is shared by many workloads, so the agents become even harder to tell apart in audit logs. Removing the Token Creator role from developers addresses impersonation, but the first finding gets worse, not better.
The best answer is Option A. Option B is the closest alternative because separate service accounts do make the agents distinguishable. But service accounts can still have keys and can still be impersonated. Agent Identity resolves all three findings at once because each agent gets its own identity that has no long-lived key and cannot be impersonated.
For more on SPIFFE principals and how they work with access controls, see our article on Agent Identity on Google Cloud.
Your company exposes an ADK agent on Agent Runtime to external users. The security team wants every user prompt screened for prompt injection and jailbreak attempts before the agent processes it, using a centrally managed policy instead of code in the agent. The agent runs with Agent Identity in us-central1. What should you do?
Choose only ONE best answer.
A) Bind an Agent-to-Anywhere gateway to the agent and attach a Model Armor template that screens MCP tools/call requests
B) Configure Model Armor floor settings at the organization level and rely on them to screen all traffic to the agent
C) Create a Model Armor template in us-central1 and attach it to a Client-to-Agent gateway that is bound to the agent
D) Call the Model Armor sanitize API from a before_model_callback and block requests that the filter flags
Three details narrow this down. The prompts come from external users and must be screened before the agent processes them. The policy must be managed centrally rather than written into the agent's code. And the agent runs in us-central1. The right option has to sit in the path of incoming user traffic and use a policy that lives outside the agent.
Option A binds an Agent-to-Anywhere gateway. That gateway governs the agent's outbound traffic to tools and other agents. A template that screens MCP tools/call requests would inspect the agent's calls to its tools, not the user's prompt on the way in. The prompt never passes through this gateway, so injection attempts would reach the agent unscreened.
Option B relies on Model Armor floor settings at the organization level. Floor settings set baseline Model Armor requirements across part of the resource hierarchy, but Agent Gateway works with Model Armor templates rather than floor settings. Floor settings alone would not screen the agent's incoming traffic, so nothing would actually inspect each prompt before the agent sees it.
Option C attaches a Model Armor template to a Client-to-Agent gateway bound to the agent. A Client-to-Agent gateway sits in front of the agent and handles traffic coming in from users, so it can scan each prompt before the agent sees it. The template defines the prompt injection and jailbreak filters, and it must be in the same region as the gateway, which here is the agent's region, us-central1. Because the policy lives in the gateway and the template, the security team manages it centrally without changing the agent's code.
Option D calls the Model Armor sanitize API from a before_model_callback. This would work, but it is exactly the in-code approach the security team wants to avoid, because the screening lives inside the agent. A direct API call also makes Model Armor a detector only, so the agent's own code must decide what to block.
The best answer is Option C. Option D is the closest alternative because it does screen each prompt before the model sees it. The difference is where the policy lives. With a Client-to-Agent gateway and a Model Armor template in the same region, screening happens outside the agent and is managed centrally, which is what the security team asked for.
Your company's procurement agent must work with a supplier's quoting agent. The supplier's agent runs on the supplier's infrastructure and uses models and tools that the supplier will not disclose. A final quote can take several hours. Your agent needs to submit requests, track progress, and receive the final result. Which integration should you use?
Choose only ONE best answer.
A) Connect to the supplier's quoting tools through an MCP server that is hosted in your project
B) Integrate with the supplier's agent through the A2A protocol by using its published Agent Card
C) Import the supplier's agent code as a local sub-agent inside your own ADK application
D) Call the supplier's model endpoint directly with a function declaration for each quoting step
The constraints here are about ownership and time. The supplier's agent runs on the supplier's infrastructure, the supplier will not disclose its models or tools, and a quote can take several hours. Our agent needs to submit requests, track progress and receive the final result. The integration has to treat the supplier's agent as an independent peer whose internals stay hidden, and it has to support long-running work.
Option A connects to the supplier's quoting tools through an MCP server in our project. MCP connects an agent to its own tools and data. Using it here would require the supplier to expose the very tools it has chosen to keep private. It would also go around the supplier's agent rather than asking that agent for a quote.
Option B integrates through the A2A protocol using the supplier's Agent Card. A2A is designed for collaboration between independent agents that may not reveal their internals. It models work as tasks that can run for hours while the client tracks their status and receives the final result. The Agent Card describes how to reach the agent, what it can do and how clients must authenticate. The procurement agent can submit a request and check back later without knowing how the supplier produces its quotes.
Option C imports the supplier's agent code as a local sub-agent. That would require the supplier's code, which the supplier will not share. The agent also runs on the supplier's infrastructure, not ours, so there is nothing for us to import.
Option D calls the supplier's model endpoint directly. That skips the supplier's agent logic entirely, and the supplier has not offered access to its models. Writing a function declaration for each quoting step would also assume we know how the supplier builds a quote, which we do not.
The best answer is Option B. Option A is the closest alternative because MCP is also an open protocol for reaching outside capabilities. But MCP gives an agent access to tools, while A2A lets one agent hand a task to another agent and follow it through to completion. Only A2A fits a partner agent that keeps its internals private and does work that takes hours.
For a broader comparison of these integration patterns, see our article on choosing between MCP, A2A, and sub-agents.
Your support agent needs to read order history from an internal PostgreSQL database and create return labels through an internal REST API. Several other agents in the company will need the same two capabilities. Neither capability involves reasoning or a multi-step conversation. How should you expose these capabilities?
Choose only ONE best answer.
A) Build a separate ADK agent for each capability and expose each one to other agents over A2A
B) Add the database credentials and API client code directly to every agent that needs them
C) Build an MCP server that exposes the two capabilities as tools and connect each agent to it
D) Publish both capabilities as separate agents in the company's Gemini Enterprise web app
The stem gives two strong hints. The capabilities are a database read and a REST API call, and neither involves reasoning or a multi-step conversation. Several agents also need the same two capabilities. So the question is how to package simple, shared operations so that many agents can reuse them, without adding layers that do no useful work.
Option A builds a separate ADK agent for each capability and exposes it over A2A. That wraps a plain lookup and a plain write in a reasoning layer and adds network hops between agents. A2A is meant for agents collaborating on tasks, not for simple lookups and writes. It would function, but it adds moving parts and latency to operations that need neither.
Option B copies the database credentials and API client code into every agent. That spreads secrets across many deployments, and every agent becomes another copy of the client code to update when the database or the label API changes. It meets the functional need, but it multiplies maintenance and the number of places the credentials live.
Option C builds an MCP server that exposes the two capabilities as tools. MCP is the protocol for connecting agents to tools and data, and reading order history and creating return labels are plain tool operations. Building the server once lets every agent use the same tools, and the credentials stay in one place. Any change to the database or the label API then happens in one place as well.
Option D publishes the capabilities as agents in Gemini Enterprise. Gemini Enterprise makes agents available to employees. Publishing the capabilities there gives people a way to use them, but it does not give other agents a way to call them as tools.
The best answer is Option C. Option A is the closest alternative because it also builds each capability once in a place other agents can reach. The difference is that these capabilities involve no reasoning, so they belong as tools rather than agents. An MCP server shares them across agents without putting an extra agent in the middle of every call.
A startup with two engineers is building a Python agent with ADK. The agent needs conversation history that persists across requests, long-term memory of user preferences, autoscaling, and built-in tracing. The team has no platform engineers and wants the least operational overhead. Where should you deploy the agent?
Choose only ONE best answer.
A) GKE Autopilot with a Firestore database for session history and memories
B) Cloud Run with Memorystore for session state and Cloud SQL for memories
C) A Compute Engine managed instance group behind an external load balancer
D) Agent Runtime with Agent Platform Sessions and Memory Bank enabled
The requirement list is long, but the deciding constraint is the team. Two engineers with no platform engineers want the least operational overhead, and the agent needs persistent conversation history, long-term memory of user preferences, autoscaling and built-in tracing. The best option provides all four with as little building and running on the team's part as possible.
Option A uses GKE Autopilot with Firestore. Autopilot takes node management off the team's hands, but GKE is still a Kubernetes platform. It fits complex stateful requirements and fine-grained infrastructure control, which this team does not need and has no one to manage. The team would also have to build its own session history and memory handling on top of Firestore.
Option B uses Cloud Run with Memorystore and Cloud SQL. Cloud Run autoscales, but it is stateless. The team would have to build and operate its own session and memory storage on Memorystore and Cloud SQL, along with the code that reads and writes them. That is platform work this team has no engineers for.
Option C uses a Compute Engine managed instance group behind a load balancer. This leaves scaling, patching, sessions, memory and tracing to the team. It is the most hands-on of the four options and the furthest from the least operational overhead.
Option D deploys to Agent Runtime with Sessions and Memory Bank enabled. Agent Runtime is a fully managed place to run Python agents built with ADK. It includes managed sessions for conversation history, Memory Bank for long-term memory, autoscaling, and built-in logging, monitoring and tracing. Every requirement in the stem is covered by a managed feature, so the two engineers can focus on the agent instead of the platform underneath it.
The best answer is Option D. Option B is the closest alternative because Cloud Run also autoscales and needs no cluster management. But Cloud Run leaves sessions and memory for the team to build on separate services, while Agent Runtime provides them as managed features alongside autoscaling and tracing. That makes it the option with the least operational overhead.
For more on when each platform fits, see our article on Agent Runtime vs. Cloud Run and GKE.
You are deploying a new ADK agent to Agent Runtime with agents-cli. Security policy requires that the agent run with its own Agent Identity and that all of its outbound traffic pass through an existing gateway whose governedAccessPath is AGENT_TO_ANYWHERE. Which command meets these requirements?
Choose only ONE best answer.
A) agents-cli deploy --service-account=AGENT_SA --agent-gateway-ingress=GATEWAY
B) agents-cli deploy --no-agent-identity --agent-gateway-egress=GATEWAY
C) agents-cli deploy --agent-identity --agent-gateway-egress=GATEWAY
D) agents-cli deploy --agent-identity --network-attachment=GATEWAY
Two requirements decide this command. The agent must run with its own Agent Identity, and all of its outbound traffic must pass through an existing gateway whose governedAccessPath is AGENT_TO_ANYWHERE. We need one flag that turns on Agent Identity and another that binds a gateway to outbound traffic, in the same command.
Option A sets a service account instead of Agent Identity, so it misses the first requirement. It also uses the ingress flag, which binds a gateway to inbound traffic rather than outbound traffic. An Agent-to-Anywhere gateway governs egress, so this misses the second requirement as well.
Option B uses the right gateway flag, --agent-gateway-egress, but --no-agent-identity turns Agent Identity off. That breaks the first requirement. It also breaks the second, because Agent Runtime requires Agent Identity before a gateway can be bound, so the gateway binding cannot work without it.
Option C combines --agent-identity and --agent-gateway-egress. The --agent-identity flag gives the agent its own Agent Identity. That flag matters, because a new deployment has Agent Identity turned off when neither identity flag is given. The --agent-gateway-egress flag routes the agent's outbound traffic through the gateway whose governedAccessPath is AGENT_TO_ANYWHERE. Both requirements are met.
Option D turns on Agent Identity correctly, but --network-attachment connects the agent to a private VPC network through Private Service Connect. Naming the gateway in that flag does not bind a gateway at all, so outbound traffic would not pass through it.
The best answer is Option C. Option B is the closest alternative because it uses the same egress flag. But it explicitly turns Agent Identity off, and Agent Runtime needs Agent Identity before any gateway can be bound. Option C enables Agent Identity and binds the egress gateway together, which is what both requirements call for.
A developer wants to try an agent locally in an interactive web interface before deploying it. Later, the developer wants to send a single test prompt to the deployed agent from a terminal script. Which pair of agents-cli commands should the developer use?
Choose only ONE best answer.
A) agents-cli run for the local interface, then agents-cli playground with --url for the deployed agent
B) agents-cli build for the local interface, then agents-cli eval run for the deployed agent
C) agents-cli scaffold enhance for the local interface, then agents-cli deploy --status for the deployed agent
D) agents-cli playground for the local interface, then agents-cli run with --url and --mode for the deployed agent
This question pairs two different jobs. The first is trying the agent locally in an interactive web interface. The second is sending a single test prompt to the deployed agent from a terminal script. Each job maps to a specific agents-cli command, and the right option has to get both of them right, in the right order.
Option A names two real commands but swaps them. The run command does not open an interactive interface, and the playground command does not send a prompt to a remote agent. Both halves of this option are wrong.
Option B uses build and eval run. The build command builds the project, which is not the same as opening an interface to try the agent. The eval run command executes an evaluation instead of sending one prompt. Neither command does the job described.
Option C uses scaffold enhance and deploy --status. The scaffold enhance command adds deployment, CI/CD or RAG scaffolding to a project, so it does not start an interface. The deploy command's --status flag reports on a pending deployment rather than talking to the agent.
Option D uses playground locally and run against the deployed agent. The playground command starts a local interactive web interface for trying the agent. The run command sends a single prompt to an agent and prints the reply, which suits a terminal script. For a deployed agent, run takes --url and requires --mode, which accepts a2a, adk or adk_live.
The best answer is Option D. Option A is the closest alternative because it names the same two commands, but in the wrong roles. The playground command is the interactive local interface, and the run command, given --url and --mode, is the one that sends a single prompt to a deployed agent.
For more on the commands that take an agent from a local prototype to a deployment, see our article on moving agents from prototype to production with agents-cli.
The real Professional Agentic Architect exam uses scenario-based questions like these, where a company, a set of requirements and a constraint or two point to one best answer. It helps to read each stem for the detail that decides it, such as inbound versus outbound traffic, or a guardrail versus a process, because that detail is usually what rules out an option that would work in general but misses a stated requirement.
If you are preparing for the Professional Agentic Architect exam, there are many more questions like these, each with a full explanation, in our Professional Agentic Architect practice exams.