














































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















































































Question 1. In Envoy’s threading model, which thread is primarily responsible for accepting new TCP connections? A) Worker thread B) Main thread C) TLS thread D) IO thread Answer: B Explanation: The main thread runs the listener sockets and accepts new connections, then hands them off to worker threads for processing. Question 2. Which library does Envoy use for its non‑blocking I/O event loop? A) libuv B) libevent C) epoll D) boost::asio Answer: B Explanation: Envoy relies on libevent to provide a portable, efficient event‑driven, non‑blocking I/O model. Question 3. What is the purpose of thread‑local storage (TLS) in Envoy’s data plane? A) Share configuration across workers B) Store per‑worker statistics and caches without locking C) Persist TLS certificates across restarts D) Enable cross‑process communication Answer: B Explanation: TLS lets each worker keep its own copy of frequently accessed data (e.g., connection pools) to avoid contention.
Question 4. In the request lifecycle, which component transforms raw TCP data into HTTP messages? A) Listener filter B) Network filter C) HTTP connection manager D) Router filter Answer: C Explanation: The HTTP connection manager parses the byte stream into HTTP request/response objects after the network layer. Question 5. What distinguishes a downstream request from an upstream request in Envoy terminology? A) Downstream originates from the client; upstream targets the upstream cluster B) Downstream uses HTTP/1.1; upstream uses HTTP/ C) Downstream runs on the main thread; upstream on worker threads D) There is no distinction; both are identical Answer: A Explanation: “Downstream” refers to traffic entering Envoy from a client, while “upstream” is traffic Envoy sends to a backend service. Question 6. Which filter type runs before the HTTP connection manager in the filter chain? A) L7 HTTP filter B) L4 network filter C) Router filter D) Throttle filter Answer: B
Explanation: Ring Hash maps a hash of a request attribute (e.g., cookie) onto a ring; the host nearest to that point receives the request, providing affinity. Question 10. Which xDS service supplies Envoy with virtual host and route configurations? A) LDS B) RDS C) CDS D) EDS Answer: B Explanation: Route Discovery Service (RDS) delivers route tables, virtual hosts, and path‑based routing rules to Envoy. Question 11. In the bootstrap configuration, which field defines the address of the admin interface? A) admin.address B) admin.socket_path C) admin.listener_name D) admin.port Answer: A Explanation: The admin.address field specifies the IP and port where Envoy’s admin HTTP server listens. Question 12. Which xDS protocol variant reduces the amount of data sent when only a few resources change? A) State‑of‑the‑World (SotW) B) Delta xDS C) Full Sync xDS D) Incremental xDS
Answer: B Explanation: Delta xDS transmits only the differences (adds, removes, updates) rather than the whole resource set. Question 13. What does the “circuit breaker” in Envoy primarily protect against? A) TLS handshake failures B) Excessive concurrent connections or requests to a cluster C) DNS resolution errors D) Header size overflows Answer: B Explanation: Circuit breaking limits the number of active connections or pending requests, preventing overload of upstream services. Question 14. Which filter validates JWT tokens at the edge of the mesh? A) ext_authz filter B) jwt_authn filter C) rbac filter D) health_check filter Answer: B Explanation: The jwt_authn filter extracts and verifies JWTs according to configured issuers and audiences. Question 15. Which header does Envoy use to propagate trace context when the W3C Trace Context format is enabled? A) X‑B3‑TraceId B) traceparent C) X‑Envoy‑Trace‑Id D) X‑Request‑Id
C) Envoy will fallback to another cluster automatically D) The setting is ignored Answer: B Explanation: A max‑connections value of 0 tells Envoy to reject all new connections to that cluster. Question 19. Which filter can enforce per‑method rate limiting using a Redis backend? A) rate_limit filter B) redis_rate_limit filter C) ext_authz filter D) throttle filter Answer: A Explanation: The rate_limit filter can be configured with a Redis rate‑limit service to enforce quotas per method. Question 20. In Envoy, what does the response flag “UH” indicate? A) Upstream request timed out B) Upstream connection overflow C) Unexpected header format D) Connection was reset by upstream host Answer: D Explanation: “UH” stands for “Upstream Host Reset”, meaning the upstream closed the connection abruptly. Question 21. Which component is responsible for converting gRPC‑JSON transcoding requests into native gRPC calls? A) HTTP connection manager B) grpc_json_transcoder filter
C) router filter D) protobuf filter Answer: B Explanation: The grpc_json_transcoder filter handles HTTP/JSON to gRPC conversion based on service descriptors. Question 22. What is the default TLS handshake timeout in Envoy (as of the latest stable release)? A) 1 second B) 5 seconds C) 10 seconds D) 30 seconds Answer: B Explanation: Envoy’s default TLS handshake timeout is 5 seconds; it can be overridden via tls_context settings. Question 23. Which Envoy extension type is used to load custom WASM modules? A) HttpFilter B) NetworkFilter C) WasmExtension D) WasmFilter Answer: D Explanation: WasmFilter is the extension type that loads Proxy‑Wasm modules for both HTTP and network processing. Question 24. In the context of Envoy’s memory management, what does the term “watermark” refer to? A) The size of the TLS certificate cache
A) static_resources.clusters B) dynamic_resources.clusters C) admin.clusters D) listener.clusters Answer: A Explanation: static_resources.clusters contains the list of clusters defined directly in the bootstrap file. Question 28. What does the SDS (Secret Discovery Service) provide to Envoy? A) Dynamic TLS certificates and private keys B) Service discovery for upstream hosts C) Configuration of HTTP filters D) Health‑checking endpoints Answer: A Explanation: SDS streams secret material (TLS certs, validation contexts) to Envoy, enabling rotation without restart. Question 29. Which filter can be used to enforce CORS policies at the edge? A) cors filter B) header_to_metadata filter C) ext_authz filter D) grpc_web filter Answer: A Explanation: The cors filter validates and adds appropriate CORS response headers based on configuration. Question 30. In Envoy’s admin API, which endpoint returns the current cluster load‑balancing configuration?
A) /clusters?format=json B) /stats?format=json C) /config_dump?resource=clusters D) /listeners?format=json Answer: C Explanation: /config_dump?resource=clusters provides a dump of the active cluster configuration, including load‑balancing settings. Question 31. What is the primary benefit of using “zone‑aware routing” in Envoy? A) Reduces latency by preferring local endpoints within the same failure domain B) Guarantees equal traffic distribution across all zones C) Enables TLS termination per zone D) Allows per‑zone rate limiting Answer: A Explanation: Zone‑aware routing prefers endpoints in the same zone (or locality) as the client, minimizing cross‑zone latency and network cost. Question 32. Which Envoy filter enables external authorization via a gRPC service? A) ext_authz filter B) jwt_authn filter C) authz filter D) grpc_http1_bridge filter Answer: A Explanation: The ext_authz filter forwards request attributes to an external gRPC authorization server for decision making. Question 33. When using the “maglev” load‑balancing policy, what is the main characteristic?
Question 36. In a sidecar‑less (ambient) mesh, what role does Envoy play? A) It runs as a daemon on each node providing data‑plane functionality for all workloads B) It is embedded inside each application binary C) It is replaced by a custom proxy implementation D) It only manages ingress traffic Answer: A Explanation: In ambient mesh, a node‑level Envoy daemon handles traffic for all workloads, removing per‑pod sidecars. Question 37. Which field in a listener’s filter chain match specifies the downstream protocol? A) transport_socket_match B) downstream_protocol C) filter_chain_match.application_protocols D) listener_protocol Answer: C Explanation: filter_chain_match.application_protocols matches ALPN strings (e.g., “h2”) to select the appropriate filter chain. Question 38. What does the “retry_policy” field in a route configuration allow you to define? A) Number of retries, per‑try timeout, and backoff strategy B) DNS resolution cache size C) TLS ciphersuites for the route D) Header sanitization rules Answer: A Explanation: retry_policy configures how many times Envoy retries a failed request, the timeout for each try, and the back‑off algorithm.
Question 39. Which of the following metrics types does Envoy expose for request latency distribution? A) Counter B) Gauge C) Histogram D) Summary Answer: C Explanation: Envoy uses histograms to capture latency percentiles (e.g., request_time_histogram). Question 40. In Envoy’s Lua filter, which variable provides access to the request headers? A) request.headers B) ngx.req.get_headers() C) envoy.headers.request D) ctx.request_headers Answer: B Explanation: The Lua filter runs in an Nginx‑compatible environment; ngx.req.get_headers() returns a table of request headers. Question 41. Which xDS service is responsible for providing the actual IP addresses of pods in a Kubernetes cluster? A) LDS B) RDS C) CDS D) EDS Answer: D Explanation: Endpoint Discovery Service (EDS) supplies the list of endpoint IPs and ports for a given cluster.
Question 45. Which filter can be used to transform inbound JSON payloads into protobuf messages for gRPC services? A) json_to_proto filter B) grpc_json_transcoder filter C) protobuf_filter D) envoy_json_parser Answer: B Explanation: The grpc_json_transcoder filter performs JSON‑to‑protobuf conversion based on service descriptors. Question 46. What is the default behavior of Envoy when a request exceeds the configured per_try_timeout? A) The request is aborted and a 504 is returned to the client B) Envoy retries the request according to the retry policy C) The upstream host is marked unhealthy D) The request is forwarded without timeout enforcement Answer: B Explanation: If a per‑try timeout occurs, Envoy treats it as a failure and may retry according to the retry_policy. Question 47. Which of the following is a built‑in statistic that indicates the number of active connections to a cluster? A) cluster..upstream_cx_total B) cluster..upstream_cx_active C) cluster..upstream_cx_closed D) cluster..upstream_cx_failed
Answer: B Explanation: upstream_cx_active tracks current active upstream connections for a cluster. Question 48. When using HTTP/3 support in Envoy, which transport protocol is employed? A) QUIC over UDP B) TCP with TLS 1. C) SCTP D) HTTP/2 over TCP Answer: A Explanation: HTTP/3 runs over QUIC, which uses UDP as its transport layer. Question 49. Which of the following is NOT a valid way to configure Envoy for mutual TLS between services? A) Define a tls_context with common_tls_context containing both certificates and validation context B) Use SDS to deliver certificates dynamically C) Set require_client_certificate to true in the downstream TLS context D) Enable allow_untrusted_clients in the TLS config Answer: D Explanation: allow_untrusted_clients does not exist; mutual TLS requires proper validation contexts and client certificate enforcement. Question 50. In the context of Envoy’s “outlier detection”, what does the “consecutive_5xx” parameter control? A) Number of consecutive 5xx responses before a host is ejected B) Maximum allowed 5xx responses per second C) Percentage of 5xx responses that trigger circuit breaking D) Timeout for 5xx responses
Answer: D Explanation: WASM filters run in a sandbox, allowing safe execution of untrusted code and dynamic loading without rebuilding Envoy. Question 54. In Envoy’s statistics, what does the suffix _rq_total represent? A) Total number of requests processed by a listener B) Total number of retry attempts C) Total number of active request streams D) Total number of request timeouts Answer: A Explanation: _rq_total counts all requests that have passed through the associated listener or cluster. Question 55. Which of the following statements about Envoy’s “listener filters” is correct? A) They can modify the request path before routing B) They run before any network filter and can reject connections early C) They are only applicable to HTTP traffic D) They are executed after the HTTP connection manager Answer: B Explanation: Listener filters operate immediately after a connection is accepted, before any network filters, and can close connections based on criteria (e.g., TLS inspection). Question 56. Which field in the http_connection_manager config enables the generation of access logs? A) generate_access_log B) access_log C) logging_options D) request_logging
Answer: B Explanation: The access_log field defines one or more access log sinks and formats. Question 57. What does the cluster..membership_total statistic indicate? A) Number of hosts currently part of the cluster’s membership B) Number of requests routed to the cluster C) Total bytes sent to the cluster D) Number of failed health checks Answer: A Explanation: membership_total reflects the count of active endpoints (hosts) known for the cluster. Question 58. In Envoy’s admin UI, which endpoint returns the current list of listeners in JSON format? A) /listeners?format=json B) /stats?format=json C) /clusters?format=json D) /config_dump?resource=listeners Answer: A Explanation: /listeners?format=json provides a JSON dump of all configured listeners. Question 59. Which of the following is NOT a built‑in rate‑limit filter mode? A) Global mode B) Local mode C) Per‑route mode D) Token bucket mode