How to use this book
Who this book is for
This book is a textbook for those who design, build, and operate infrastructure to launch AI and web services into the real world, keep them safe from harm, and enable people inside and outside an organization to connect securely. The primary readers are full-stack and backend engineers who have written application code using coding agents or frameworks, infrastructure engineers and security administrators who need to introduce and install internal AI tools and development networks (ZTNA and VPN), and DevOps and platform engineers who want to manage multiple environments consistently with Infrastructure as Code (IaC). It assumes an application-level understanding at the level of the Blue belt (Building Apps with AI) or Red belt (Developing AI Features), along with basic literacy in Linux, networking, and cloud deployment. With that background, this book was written so that readers can master the entire scope of the AI Cloud Operations specialty course (AIN) from start to finish with this single volume.
Infrastructure in the AI era seems similar to past web infrastructure, yet differs in decisive ways. First, thanks to coding agents, application features are created multiple times a day; however, if a single environment variable leaks into a client bundle or a single database Row Level Security (RLS) policy is omitted, all customer data can be exposed within seconds. Second, due to LLM streaming responses and long tool calls, serverless function execution times, region placement, and connection pooling strategies determine the life and death of a service. Third, configurations created by clicking around in a cloud console turn over time into shadow infrastructure that no one can reproduce, making declarative code such as Terraform and OIDC pipelines without long-term secret keys essential fundamentals. Fourth, methods for protecting internal wikis, model gateways, and development databases are also moving rapidly away from traditional perimeter VPNs toward outbound tunnels, mesh VPNs, and Zero Trust Network Access (ZTNA).
This book does not cover physical-layer work such as hardware repair for on-premises physical servers or laying data center fiber-optic cables. Instead, it digs thoroughly into the principles and practical decisions behind why we must design the five core tiers that today's AI and web service teams encounter every day: managed app and data platforms (Vercel, Supabase), Infrastructure as Code (Terraform, CI/CD), global DNS and edge networks (Route 53, Cloudflare), internal network security and remote access (ZTNA and VPN introduction and installation), and infrastructure reliability, secret management, and incident response.
How this book is organized
The main text covers the five domains of the exam blueprint in order, one chapter at a time.
- Chapter 1 Managed App and Data Platforms (Basics: Vercel, Supabase) covers the internal operating principles and security boundaries of managed platforms that launch products the fastest. You will learn about Preview and Production environment separation, the boundary between
NEXT_PUBLIC_variables and server-only secrets, deployment protection and webhook automation bypasses, function regions (icn1) and physical distance to the database, Fluid Compute and streaming, Supavisor transaction mode (6543) and session mode (5432), Row Level Security (RLS)USINGandWITH CHECK, separation ofanonandservice_rolekeys, Auth redirect allowlists, and private Storage signed URLs. - Chapter 2 Infrastructure as Code and Deployment Automation (Intermediate: Terraform, IaC) covers how to control infrastructure with declarative code beyond manual click configuration. It addresses the role of state files (
terraform.tfstate), S3 remote backends and state locking (State Locking), modularization and environment-specific state isolation, decodingterraform plansymbols (~update in-place and-/+replace),prevent_destroyandmoved/importblocks, preventing plaintext secret exposure in state files, drift (Drift) detection and recovery, and secretless deployment pipelines via GitHub Actions OIDC (AssumeRoleWithWebIdentity). - Chapter 3 Global DNS and Edge Networks (Advanced: Route 53, Cloudflare) designs every gateway before user requests reach the server. You will learn about Route 53 A, AAAA, CNAME, and Alias records (resolving root domain constraints), routing policies (simple, weighted, latency, failover) and health checks, advance TTL reduction for zero-downtime migration, DNSSEC and CAA, Cloudflare proxy (orange cloud) and DNS only (grey cloud), SSL/TLS modes (the dangers of
FlexibleandFull (Strict)+ Origin CA and mTLS), WAF and rate limiting, preventing cache poisoning for personalized APIs and SSE streaming, and model traffic observability and fallbacks via Workers, Queues, and AI Gateway. - Chapter 4 Internal Network Security and Remote Access (Field Practice: ZTNA and VPN Introduction and Installation) covers practical designs that securely connect internal organizational assets and remote work environments. You will learn about the lateral movement (Lateral Movement) risks of traditional perimeter VPNs and Zero Trust (NIST SP 800-207), outbound connectors that close all inbound ports (
cloudflaredCloudflare Tunnel), subnet routers, DERP relays, and ACLs in WireGuard-based mesh VPNs (Tailscale), split tunneling (Split Tunneling) that resolves home router subnet (192.168.x.x) conflicts and split-horizon DNS (Split-Horizon DNS) that prevents exposing internal domains, IdP (SSO, MFA, and SCIM automated deprovisioning for departing employees) and device posture, and procedures for deploying internal TLS inspection root CA certificates to developer endpoints and CLI tools (NODE_EXTRA_CA_CERTS,SSL_CERT_FILE) without incidents. - Chapter 5 Infrastructure Reliability, Secret Management, and Incident Response covers techniques for operating live services without downtime. You will learn about zero-downtime dual-key (Dual-Key) secret rotation and emergency revocation, RPO and RTO design for snapshot backups and point-in-time recovery (PITR) along with recovery rehearsals, zero-downtime Expand-Contract (parallel change) schema migrations where applications and databases coexist, OpenTelemetry distributed tracing and sensitive information log masking, cost and usage anomaly alerts and quotas, and incident isolation and rollback runbooks and postmortems (Postmortem).
Every chapter consists of the exact same ten sections. We establish the problem awareness with Learning objectives and Introduction, dig into the principles and deep trade-offs in Key concepts and Going deeper, and then follow the concrete decisions faced by a hypothetical organization in two At work scenarios. These are followed by Common mistakes, which highlights the points that cause the most confusion in the exam and in practice; Summary at a glance, for reviewing the day before the exam; Check the official docs, for cross-referencing against the original documentation; Self-check, for evaluating your own understanding (answers and explanations are in Appendix B); and two Hands-on tasks, where you design solutions hands-on.
The exam at a glance
In the AI Cloud Operations Specialty exam (AIN), you solve 35 questions within 60 minutes. Questions testing basic principles and the correctness of a single setting are worth 2 points, while analytical questions that evaluate multiple constraints simultaneously (availability, security, latency, cost, deployment order) to choose the optimal configuration are worth 3 points. A converted raw score of 75 points or higher out of 100 points is a pass, and the score report displays grades 1 to 9 along with the raw score. The free practice set consists of 10 questions and lasts 25 minutes.
| Chapter | Domain | Weight | Core keywords |
|---|---|---|---|
| Chapter 1 | Managed App and Data Platforms (Foundations: Vercel, Supabase) | 20% | Preview/Production separation, NEXT_PUBLIC_, icn1, Supavisor 6543 vs 5432, RLS USING/WITH CHECK, service_role, Storage signed URLs |
| Chapter 2 | Infrastructure as Code and Deployment Automation (Intermediate: Terraform, IaC) | 20% | Remote State and locking, module/environment separation, plan (~ vs -/+), prevent_destroy, moved/import, state security, drift, GitHub OIDC |
| Chapter 3 | Global DNS and Edge Networks (Advanced: Route 53, Cloudflare) | 25% | Alias vs CNAME, routing policies and health checks, TTL reduction, Full (Strict), WAF and cache poisoning prevention, Workers, Queues, AI Gateway |
| Chapter 4 | Internal Network Security and Remote Access (Hands-on: ZTNA and VPN Adoption and Installation) | 20% | NIST SP 800-207, Cloudflare Tunnel, WireGuard/Tailscale subnet routers and DERP, Split Tunnel and RFC1918 conflicts, Split-Horizon DNS, SCIM, posture, CA certificates |
| Chapter 5 | Infrastructure Reliability, Secrets Management, and Incident Response | 15% | Dual-Key rotation, PITR, RPO, RTO, Expand-Contract migration, OpenTelemetry and log scrubbing, cost alerts, incident rollback runbooks |
By domain, Chapter 3 carries the highest weight at 25%, Chapters 1, 2, and 4 carry 20% each, and Chapter 5 carries 15%, but actual exam questions cut across multiple layers. For example, a Cloudflare cache rule question (Chapter 3) connects to Vercel's Cache-Control header and Supabase authentication cookies (Chapter 1), while a question on hiding an internal development database from the outside (Chapter 4) ties into Terraform security group changes (Chapter 2) and zero-downtime connection cutover (Chapter 5). Read each chapter not as an isolated component, but as interconnected parts of "a single living system where user requests pass through DNS and the edge to reach apps and databases, are managed as code, and are protected by internal networks and operating frameworks."
What the questions look like
The exam paper consists of five multiple-choice formats, and every question requires choosing the single most appropriate option among five choices (① to ⑤).
| Format | Appearance on the exam paper | Key strategy |
|---|---|---|
| Single choice | A short incident or design scenario with five options | Choose the only option that satisfies all bold constraints in the scenario (e.g., zero downtime, no inbound ports open, serverless environment) |
| Multiple choice | Combinations grouping a specified number from A, B, C, and D in the <Statements> box |
Weigh the side effects of each action (e.g., cache poisoning, lock release, plaintext exposure) and eliminate incorrect options first |
| Statement evaluation | Combinations selecting all correct technical statements from the <Statements> box |
A statement is correct only when both its first half (phenomenon/setting) and second half (operating principle/result) are accurate |
| Sequence arrangement | Five candidate execution orders for task steps (A) through (E) | In a zero-downtime transition (shorten TTL first, add keys first, expand schema first), find the order where the preceding step must be completed for the next step to be safe |
| Matching | Five candidate options pairing requirements and symptoms on the left with infrastructure features and settings on the right | Confirm and eliminate pairs starting with the ones that have the clearest boundaries (e.g., root domain alias ↔ Route 53 Alias) |
In infrastructure exams, the most common distractor trap is "options where the feature works, but it breaks security or zero-downtime conditions." For example, options such as "An RLS policy error occurs, so resolve it by calling with the service_role key from the client," "Lower the TTL on the day of domain migration and change the record immediately," "Execute ALTER TABLE RENAME COLUMN before deployment to change a database column name," or "Set the Cloudflare SSL mode to Flexible to omit origin server certificate configuration" appear to eliminate immediate errors, but they cause severe security incidents or service outages. Always ask first: "Does this option preserve the security perimeter and availability of the production environment?"
Key point
In sequence-arrangement questions, remember the principle that "irreversible steps always come last." Revoking old keys, shutting down legacy servers, dropping old columns (Contract), and restoring the DNS TTL to its original value are executed only after verifying that all traffic and applications have safely transitioned to the new architecture.
Six-week study plan
This is the recommended schedule based on 1 hour per day, 5 days per week. If you already have cloud operations experience, combine Weeks 1 and 2 to skim them quickly and spend more time on Weeks 3 through 5.
| Week | Scope of study | Core weekly deliverables |
|---|---|---|
| Week 1 | Chapter 1: Managed App and Data Platforms (Vercel, Supabase) | Environment variable classification table (NEXT_PUBLIC_ vs. server secrets), RLS USING/WITH CHECK policy draft, Supavisor connection string checklist |
| Week 2 | Chapter 2: Infrastructure as Code and Deployment Automation (Terraform, IaC) | S3 remote backend and locking configuration plan, terraform plan destructive change (-/+) review checklist, GitHub Actions OIDC trust policy JSON |
| Week 3 | Chapter 3: Global DNS and Edge Networks (Route 53, Cloudflare) | Zero-downtime domain migration timeline (including TTL reduction), Cloudflare Full (Strict) and dynamic API cache bypass rules table, AI Gateway routing design document |
| Week 4 | Chapter 4: Internal Network Security and Remote Access (ZTNA, VPN) | Internal resource ZTNA migration architecture diagram (Cloudflare Tunnel + Tailscale), RFC1918 range conflict resolution table, internal root CA development environment deployment guide |
| Week 5 | Chapter 5: Infrastructure Reliability, Secrets Management, and Incident Response | Dual-Key rotation procedure document, Expand-Contract three-stage migration plan, incident isolation and rollback runbook, and OTel log scrubbing rules |
| Week 6 | Appendices A through D comprehensive review, Self-check review, solving practice sets | Writing answers to 30 Self-check questions without references, completing Review notes for Common mistakes |
Key point
The Hands-on tasks at the end of each chapter are designed so you can write configuration files (HCL, SQL, JSON, DNS record tables, runbooks) by hand without incurring costs on an actual cloud account. Conditions that seem obvious when reading with your eyes alone, such as a WITH CHECK condition or the sub claim condition in AssumeRoleWithWebIdentity, immediately reveal where mistakes occur once you write them down yourself.
Notation and sources
The cloud and platform features and standards described in this book are based on details verified in the respective official documentation on October 21, 2026.
- Product names, CLI commands, environment variables, HTTP headers, configuration keys, and SQL/HCL syntax keywords are written exactly as in their official notation (
NEXT_PUBLIC_,x-vercel-protection-bypass,Supavisor,terraform.tfstate,prevent_destroy,Full (Strict),cloudflared,NODE_EXTRA_CA_CERTS). - When a technical term appears for the first time, both the Korean explanation and the original English term are provided together, after which a consistent term is used (e.g., row-level security (Row Level Security, RLS), zero-trust network access (Zero Trust Network Access, ZTNA), point-in-time recovery (Point-in-Time Recovery, PITR), parallel change (Expand-Contract)).
- Rather than values that vendors change frequently, such as pricing plan limits or detailed console menu locations, explanations focus on enduring principles such as architectural fundamentals, protocols, and security boundaries.
- Companies, institutions, services, domains, and incidents appearing in the main text and At work sections are all fictional creations for learning purposes.
- Examples inside code blocks are core structures intended to aid understanding; when applying them to actual production, cross-check them against the latest vendor documentation included in each chapter's Check the official docs and Appendix D.