Skip to main content

Networking Services

Docs: Google Cloud networking overview

Load Balancing​

Google Cloud load balancers are software-defined and managed globally. Choose based on traffic type (L4 vs L7), scope (global vs regional), and origin (external vs internal).

Load BalancerLayerScopeTraffic TypeUse Case
Global External HTTP(S)L7GlobalHTTP/HTTPSPublic web apps, URL-based routing, TLS termination
Regional External HTTP(S)L7RegionalHTTP/HTTPSRegional web apps with regional compliance requirements
External TCP/UDP NLBL4RegionalTCP/UDPNon-HTTP protocols, preserve client source IP
External SSL ProxyL4GlobalSSLNon-HTTP SSL traffic (e.g., WebSockets)
Internal HTTP(S)L7RegionalHTTP/HTTPSInternal microservices, service-to-service traffic
Internal TCP/UDPL4RegionalTCP/UDPInternal non-HTTP services (e.g., internal databases)

Key rule for the exam: "Global" + "HTTP(S)" = Global External HTTP(S) LB. This is the answer for any scenario involving worldwide users or CDN integration.

Docs: Cloud Load Balancing overview

Cloud CDN​

Caches responses at Google's globally distributed edge Points of Presence (PoPs) to reduce origin load and latency for end users.

  • Works with the Global External HTTP(S) Load Balancer (not regional)
  • Cache keyed on URL, headers, and cookies (configurable)
  • Signed URLs / Signed Cookies for time-limited access to private content
  • Cache invalidation to purge stale content immediately

Use when: Serving static assets (images, JS, CSS, video), software downloads, or any content accessed repeatedly by geographically distributed users.

Docs: Cloud CDN overview

Cloud Armor​

Web Application Firewall (WAF) and DDoS protection, integrated with the Global External HTTP(S) LB.

  • Pre-configured WAF rules (OWASP Top 10, SQLi, XSS)
  • Custom rules (IP allow/deny lists, geo-based blocking, rate limiting)
  • Adaptive protection (ML-based DDoS detection and automatic rule suggestions)
  • reCAPTCHA integration for bot mitigation

Not a replacement for IAP β€” Armor filters traffic at the network edge; IAP enforces identity-based access.

Docs: Cloud Armor overview

API Management: Apigee vs API Gateway vs Cloud Endpoints​

ApigeeAPI GatewayCloud Endpoints
Best forEnterprise, partner-facing APIsServerless backends (Cloud Run, Functions)Internal APIs, gRPC, OpenAPI
FeaturesFull lifecycle management, developer portal, analytics, monetisationLightweight auth, rate limitingAuth, monitoring, OpenAPI/gRPC
CostHigh (enterprise pricing)LowLow
Use whenExternal partners, complex API products, revenue-generating APIsSimple serverless API managementMicroservices internal API management

Exam signal: "Third-party partners", "developer portal", "API monetisation" β†’ Apigee. Simple backend API protection β†’ API Gateway.

Docs: Apigee overview
Docs: API Gateway overview
Docs: Cloud Endpoints overview


Apigee β€” Deep Dive​

Apigee is Google Cloud's full-lifecycle API management platform. It sits as a proxy layer between API consumers (external partners, mobile apps, third-party developers) and your backend services, handling everything from security enforcement to traffic shaping to developer onboarding.

Docs: Apigee overview

Core Concepts​

API Proxy The fundamental unit in Apigee. An API proxy is a facade that sits in front of your backend service. Consumers call the proxy URL; Apigee applies policies, then forwards the request to the backend. Your backend URL is never exposed directly.

Consumer β†’ Apigee API Proxy β†’ Backend Service (Cloud Run, GKE, on-prem)

API Product A bundle of one or more API proxies packaged with an access quota and plan. A single backend API can be packaged into multiple products β€” e.g. a "Free" product (100 calls/day) and a "Premium" product (unlimited calls). Developers subscribe to products, not proxies directly.

Developer Portal A self-service website where external developers can discover APIs, read documentation, register apps, and obtain API keys. Apigee generates the portal from your API specs (OpenAPI/Swagger) automatically.

App and API Key When a developer registers on the portal, they create an App and receive an API key. The key is tied to an API product and its quota. Apigee validates the key on every inbound request.

Policy Framework​

Apigee enforces behaviour through policies attached to the request or response flow. Policies are applied without changing backend code.

Policy CategoryExamples
SecurityOAuth 2.0 token validation, API key verification, JWT validation, HMAC signature
Traffic managementQuota (per API key), Spike Arrest (rate limiting), Concurrent Rate Limit
MediationJSON ↔ XML transformation, payload masking, header manipulation, SOAP-to-REST
ExtensionCall external services, JavaScript/Python custom logic, cache lookup/population
Threat protectionJSON/XML threat protection (malformed payload rejection), RegEx threat protection

Environments and Environment Groups​

Apigee uses environments (e.g. dev, staging, prod) to deploy different versions of an API proxy. An environment group maps hostnames to environments, so api-dev.example.com routes to dev and api.example.com routes to prod.

OAuth 2.0 and Security Flows​

Apigee has built-in support for all standard OAuth 2.0 grant types:

Grant TypeUse Case
Client CredentialsMachine-to-machine (M2M), no user involved β€” common for partner integrations
Authorization CodeUser-delegated access β€” web and mobile apps acting on behalf of a user
ImplicitLegacy browser-based flows (now discouraged)
Resource Owner PasswordDirect credential exchange (avoid unless legacy requirement)

Apigee acts as the OAuth authorization server β€” it issues, validates, and revokes tokens without your backend needing to implement OAuth logic.

Analytics and Monetisation​

  • Built-in analytics dashboard β€” tracks API traffic, latency, error rates, and quota usage per developer and product
  • Custom reports β€” slice analytics by proxy, app, developer, or environment
  • Monetisation (Apigee X) β€” define billing models (pay-per-call, revenue sharing, freemium) and generate invoices for API usage directly from the platform

Apigee X vs Apigee Hybrid​

Apigee XApigee Hybrid
Runtime locationFully managed on Google CloudRuntime runs in your own Kubernetes cluster (on-prem or another cloud)
Management planeGoogle CloudGoogle Cloud
Use whenAll workloads on GCPData residency requirements, on-prem backends, low-latency to on-prem
Ops overheadLowHigher (you manage the runtime cluster)

When Apigee Appears in Case Studies​

The exam uses Apigee when a scenario includes any of:

  • External partner or developer ecosystem β€” third parties need access to your APIs with different tiers, quotas, or contracts
  • API monetisation β€” charging for API usage or managing revenue-sharing agreements
  • Legacy SOAP-to-REST β€” exposing an old SOAP backend as a modern REST API without changing the backend
  • Centralised API governance across teams β€” one team owns API security policy; product teams just deploy proxies
  • Developer self-service portal β€” developers discover, subscribe to, and test APIs without involving your engineering team

KnightMotives example: Third-party developers building in-vehicle apps need access to vehicle telemetry APIs. Apigee provides separate API products (with different quotas) for OEM partners vs. independent developers, a self-service portal, and OAuth-based authentication β€” all without changes to the backend data services.

Private Service Connect​

Allows consumers to access Google APIs and managed services (or third-party services in other VPCs) via private internal IPs, without traffic traversing the public internet.

Use cases:

  • Access Google APIs (BigQuery, Cloud Storage, Pub/Sub) from a VPC without a public IP or internet gateway
  • Expose a service from one VPC to consumers in other VPCs with full network isolation
  • Required in strict data sovereignty or compliance environments where all traffic must stay private

Docs: Private Service Connect overview

Cloud NAT​

Provides outbound internet access for VM instances and GKE nodes that have no external IP address.

  • Outbound only β€” no inbound connections initiated from the internet
  • Managed, highly available (no VMs to manage)
  • Does not apply to Cloud Run or Cloud Functions (they use serverless NAT automatically)

Docs: Cloud NAT overview

Cloud DNS​

Managed, authoritative DNS service. Supports public and private zones.

  • Private zones β€” resolve internal hostnames within a VPC (e.g., db.internal.example.com)
  • DNS peering β€” share private DNS zones across VPCs
  • Response policies β€” DNS-level firewall to block or redirect resolution of specific domains

Docs: Cloud DNS overview

Official Documentation​