D1: Load Balancers & Session Affinity
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
Why use a load balancer?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Load Balancers & Session Affinity practice questions and answers
- Why use a load balancer?Distribute traffic, provide HA, TLS termination and a single entry point.
- Global external Application LB use?Global HTTP(S) apps, CDN, Cloud Armor, multi-region backends.
- Internal Application LB use?Internal HTTP(S) microservices.
- Passthrough Network LB use?TCP/UDP preserving client IP.
- How do you put Cloud Run behind a LB?Serverless network endpoint group (NEG).
- What is session affinity?Routing a client's requests to the same backend.
- Session affinity in Cloud Run?Enable --session-affinity (best-effort, cookie-based).
- Session affinity options on load balancers?Client IP, generated cookie, HTTP header/cookie-based.
- Downside of session affinity?Uneven load; prefer stateless design with external session stores.
- Where should session state live?Memorystore or a database, not instance memory.