Networking Services
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 Balancer | Layer | Scope | Traffic Type | Use Case |
|---|---|---|---|---|
| Global External HTTP(S) | L7 | Global | HTTP/HTTPS | Public web apps, URL-based routing, TLS termination |
| Regional External HTTP(S) | L7 | Regional | HTTP/HTTPS | Regional web apps with regional compliance requirements |
| External TCP/UDP NLB | L4 | Regional | TCP/UDP | Non-HTTP protocols, preserve client source IP |
| External SSL Proxy | L4 | Global | SSL | Non-HTTP SSL traffic (e.g., WebSockets) |
| Internal HTTP(S) | L7 | Regional | HTTP/HTTPS | Internal microservices, service-to-service traffic |
| Internal TCP/UDP | L4 | Regional | TCP/UDP | Internal 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.
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β
| Apigee | API Gateway | Cloud Endpoints | |
|---|---|---|---|
| Best for | Enterprise, partner-facing APIs | Serverless backends (Cloud Run, Functions) | Internal APIs, gRPC, OpenAPI |
| Features | Full lifecycle management, developer portal, analytics, monetisation | Lightweight auth, rate limiting | Auth, monitoring, OpenAPI/gRPC |
| Cost | High (enterprise pricing) | Low | Low |
| Use when | External partners, complex API products, revenue-generating APIs | Simple serverless API management | Microservices 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 Category | Examples |
|---|---|
| Security | OAuth 2.0 token validation, API key verification, JWT validation, HMAC signature |
| Traffic management | Quota (per API key), Spike Arrest (rate limiting), Concurrent Rate Limit |
| Mediation | JSON β XML transformation, payload masking, header manipulation, SOAP-to-REST |
| Extension | Call external services, JavaScript/Python custom logic, cache lookup/population |
| Threat protection | JSON/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 Type | Use Case |
|---|---|
| Client Credentials | Machine-to-machine (M2M), no user involved β common for partner integrations |
| Authorization Code | User-delegated access β web and mobile apps acting on behalf of a user |
| Implicit | Legacy browser-based flows (now discouraged) |
| Resource Owner Password | Direct 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 X | Apigee Hybrid | |
|---|---|---|
| Runtime location | Fully managed on Google Cloud | Runtime runs in your own Kubernetes cluster (on-prem or another cloud) |
| Management plane | Google Cloud | Google Cloud |
| Use when | All workloads on GCP | Data residency requirements, on-prem backends, low-latency to on-prem |
| Ops overhead | Low | Higher (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
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