Skip to content
Google Cloud Certified Professional Agentic Architect (PAA) Exam Prep

Lesson 2 of 9 · 16 min

x
2/9

Domain 2: Using Coding Agents for Application Development

This lesson covers 5 exam topics: Configuring Coding Agents, Coding Agents in Secure Sandboxes, Refactoring and Patching with Coding Agents, Customizing Antigravity, Agents CLI. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Configuring Coding Agents

Video lesson: PAA 05/34: Configuring Coding Agents

Central question: How do you configure coding agents with MCP servers, skills and tools?

Facts

  • Antigravity (CLI, SDK, App) is Google's agent-first coding environment; it supports custom skills (SKILL.md), MCP servers (local stdio and remote HTTP), custom subagents and lifecycle hooks (Antigravity docs).
  • Claude Code on Google Cloud: enable the Agent Platform API, request Claude access in Model Garden, authenticate with Google Cloud and set CLAUDE_CODE_USE_VERTEX=1, CLOUD_ML_REGION and ANTHROPIC_VERTEX_PROJECT_ID (Claude Code docs).
  • Google-managed remote MCP servers expose Google Cloud services such as BigQuery (bigquery.googleapis.com/mcp), Cloud SQL and the gcloud CLI to coding agents, authenticated with OAuth and IAM.

Exam traps

  • Giving a coding agent a broad owner key. Use least-privilege identities and IAM deny for write tools.
  • Putting secrets in skill files. Use Secret Manager or the auth manager.

2. Coding Agents in Secure Sandboxes

Video lesson: PAA 06/34: Coding Agents in Secure Sandboxes

Central question: Where should coding agents run so they can't harm production?

Facts (Google Cloud docs verified; isolation rules are design guidance)

  • Sandbox options: Cloud Workstations (managed, isolated developer environments), GKE (isolated pods or namespaces, including sandboxed containers), Antigravity sandboxes, and Managed Agents API sandboxes on Agent Platform.
  • Managed Agents API sandboxes are isolated Linux environments with a persistent file system and bash terminal; network access is disabled by default and enabled through an explicit allowlist (sandbox environment docs).
  • Give sandboxes least-privilege identities, no production credentials, and network egress only to required destinations.

Exam traps

  • Running a coding agent on a laptop with production credentials. Use an isolated sandbox.
  • Unrestricted internet from the sandbox. Allowlist only what's needed.

3. Refactoring and Patching with Coding Agents

Video lesson: PAA 07/34: Refactoring and Patching with Coding Agents

Central question: How do coding agents refactor code, optimize runtimes and patch vulnerabilities safely?

Facts (design guidance; CodeMender verified)

  • Workflow: give the agent context (repo, tests, rules), ask for a plan, let it change code in a sandbox, run tests and scanners, then review a pull request.
  • Optimization: profile first (Cloud Profiler, Cloud Trace), then let the agent change the hot path, and verify with benchmarks.
  • Security patches: agents can fix application-layer vulnerabilities from scanner findings; CodeMender on Agent Platform is an autonomous code security agent that finds, verifies and fixes vulnerabilities (Agent Platform overview).
  • Keep humans approving merges; require tests to pass in CI before merge.

Exam traps

  • Merging agent changes without tests or review.
  • Optimizing without profiling. The agent may tune the wrong code.

4. Customizing Antigravity

Video lesson: PAA 08/34: Customizing Antigravity

Central question: How do you customize Antigravity for enterprise workflows?

Facts

  • Skills: folders with a SKILL.md (name, description, instructions, optional scripts) that the agent loads when relevant.
  • Rules: always-on instruction files (for example AGENTS.md or GEMINI.md) with coding standards and constraints.
  • Hooks: lifecycle scripts that run before or after tool and model calls, for checks such as blocking dangerous commands.
  • Subagents: custom agents defined in Markdown with YAML frontmatter that the primary agent can delegate to, with their own tools and permissions.
  • MCP servers and plugins/extensions add external tools (Antigravity docs).

Exam traps

  • Putting every instruction in one giant rule file. Use skills that load when relevant.
  • Relying on a rule to block dangerous commands. Use a hook that enforces it.

5. Agents CLI

Video lesson: PAA 09/34: Agents CLI

Central question: What does Agents CLI add to coding agents?

Facts

  • Agents CLI (google/agents-cli) provides the commands and skills that turn a coding assistant into an expert at creating, evaluating and deploying agents on Google Cloud; it bundles skills across the ADK lifecycle (Agents CLI docs).
  • It works in Agent Mode (optimized for coding agents calling it) and Human Mode (you run commands directly for deterministic execution) (Google Developers Blog).
  • Typical lifecycle: scaffold an ADK agent, run evaluations, deploy to Agent Runtime or Cloud Run, and add governance.

Exam traps

  • Treating Agents CLI as a model. It's tooling and skills for coding agents.
  • Agent Mode for a scripted CI step. Human Mode gives deterministic commands.

References

  1. PAA exam guide — checked Oct 26, 2026
  2. Antigravity docs — checked Oct 26, 2026
  3. Claude Code on Google Vertex AI — checked Oct 26, 2026
  4. Managed MCP servers for Google Cloud databases — checked Oct 26, 2026
  5. Managed Agents sandbox environment — checked Oct 26, 2026
  6. Agent Platform overview — checked Oct 26, 2026
  7. Custom subagents — checked Oct 26, 2026
  8. Agents CLI getting started — checked Oct 26, 2026
  9. Agents CLI in Agent Platform — checked Oct 26, 2026

Check your understanding

  • Run Claude Code on Google Cloud?Show answer

    Answer

    CLAUDE_CODE_USE_VERTEX with Model Garden access.
  • Default network access in Managed Agents sandboxes?Show answer

    Answer

    Disabled; allowlist to enable.
  • Autonomous code security agent on Agent Platform?Show answer

    Answer

    CodeMender.
  • Enforce 'never run rm -rf'?Show answer

    Answer

    A hook.
  • Scripted, deterministic CI usage?Show answer

    Answer

    Human Mode.
Previous

Progress is saved in this browser.

Next Lesson