Hands-on with Envoy Gateway · wrap-up
Cheat sheet & self-check
16 questions across 4 lessons. Each answer links back to the lesson it came from.
Pick an answer to see if you got it, and why.
Q1. Why did the lab give the gateway a ClusterIP Service?
Show answer
B. On kind, use port-forward (or install a load-balancer provider) instead of waiting for an external IP.
From lesson 04 · Lab: your first gatewayQ2. After 200 requests with a 90/10 split, the lab saw 183 for v1 and 17 for v2. Is the split broken?
Show answer
B. Weighted routing is random per request; over many requests it converges to the weights.
From lesson 04 · Lab: your first gatewayQ3. A request for a hostname the route doesn't list (other.example.test) returns what?
Show answer
B. Routes match on hostnames; nothing matches, so the gateway answers 404.
From lesson 04 · Lab: your first gatewayQ4. curl to the HTTPS listener without --cacert failed with exit code 60. Why?
Show answer
B. Exit code 60 is a certificate verification failure; pass the CA (or use a certificate from a trusted CA).
From lesson 04 · Lab: your first gatewayQ5. A JWT's payload is base64-encoded JSON. Why can't a client change the tenant claim in it?
Show answer
B. In the lab, a token with an edited payload got 401.
From lesson 05 · Authentication at the edgeQ6. In the lab, a client with a valid token for acme also sent x-tenant-id: globex. What did the backend receive?
Show answer
B. Headers derived from verified claims must overwrite client-supplied ones; the lab confirmed it.
From lesson 05 · Authentication at the edgeQ7. Where should the decision 'may this user approve this invoice?' be made?
Show answer
B. The gateway authenticates and applies coarse rules; fine-grained, data-dependent authorization belongs to the service.
From lesson 05 · Authentication at the edgeQ8. Which is a good reason to choose external authorization over built-in JWT checks?
Show answer
B. ext_authz calls a policy service per request: flexible and central, at the cost of latency and a dependency.
From lesson 05 · Authentication at the edgeQ9. Fifty gateway replicas each apply a local limit of 100 requests per second for one tenant. What can the tenant actually send?
Show answer
B. Local limits multiply with replicas; use a global limit or divide the limit by replica count.
From lesson 06 · Rate limiting and quotasQ10. In the lab, why were tenant and plan taken from x-tenant-id and x-tenant-plan headers safely?
Show answer
B. Keys for limits must come from something the client can't forge.
From lesson 06 · Rate limiting and quotasQ11. What does the header selector type Distinct do?
Show answer
B. One rule with Distinct gives every tenant its own limit.
From lesson 06 · Rate limiting and quotasQ12. What should a well-behaved client do on a 429 with Retry-After: 38?
Show answer
B. Immediate retries add load exactly when the system is protecting itself.
From lesson 06 · Rate limiting and quotasQ13. In the lab, the backend failed 50% of the time. With three retries on 503, what did clients see?
Show answer
B. Each extra attempt must also fail for the client to see an error: 0.5 × 0.5 × 0.5 × 0.5.
From lesson 07 · Timeouts, retries and traffic managementQ14. The backend was completely down (always 503). How many requests did 10 client calls send it, with three retries?
Show answer
B. Retries multiply load on a failing service: a retry storm.
From lesson 07 · Timeouts, retries and traffic managementQ15. Which requests are safe to retry automatically?
Show answer
B. Retrying a non-idempotent POST may charge a card twice.
From lesson 07 · Timeouts, retries and traffic managementQ16. What does a circuit breaker in Envoy limit?
Show answer
B. When a backend is saturated, failing fast protects it and the gateway.
From lesson 07 · Timeouts, retries and traffic management