Docsity

Envoy Interview Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
Envoy Interview Ultimate Exam
Question 1. What component in Envoy is responsible for accepting inbound connections and applying
listener‑level filters?
A) Cluster manager
B) Listener subsystem
C) Route matcher
D) HTTP connection manager
Answer: B
Explanation: The listener subsystem creates TCP/UDP listeners, binds ports, and runs listener filters
before handing traffic to the filter chain.
Question 2. In Envoy’s threading model, which thread runs the event loop that performs non‑blocking
I/O?
A) Main thread
B) Worker thread
C) Admin thread
D) Watchdog thread
Answer: B
Explanation: Worker threads each run an independent event loop handling non‑blocking reads/writes
for connections they own.
Question 3. Which of the following best describes a downstream connection in Envoy terminology?
A) Connection from Envoy to an upstream service
B) Connection from a client to Envoy
C) Connection between two Envoy proxies
D) Internal connection to the admin interface
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56

Partial preview of the text

Download Envoy Interview Ultimate Exam and more Exams Technology in PDF only on Docsity!

Question 1. What component in Envoy is responsible for accepting inbound connections and applying listener‑level filters? A) Cluster manager B) Listener subsystem C) Route matcher D) HTTP connection manager Answer: B Explanation: The listener subsystem creates TCP/UDP listeners, binds ports, and runs listener filters before handing traffic to the filter chain. Question 2. In Envoy’s threading model, which thread runs the event loop that performs non‑blocking I/O? A) Main thread B) Worker thread C) Admin thread D) Watchdog thread Answer: B Explanation: Worker threads each run an independent event loop handling non‑blocking reads/writes for connections they own. Question 3. Which of the following best describes a downstream connection in Envoy terminology? A) Connection from Envoy to an upstream service B) Connection from a client to Envoy C) Connection between two Envoy proxies D) Internal connection to the admin interface Answer: B

Explanation: Downstream connections are the inbound client connections that Envoy receives and processes. Question 4. Which filter type operates on raw byte streams before any protocol parsing occurs? A) HTTP filter B) Network (L3/L4) filter C) Access log filter D) Rate limit filter Answer: B Explanation: Network filters see data at the transport layer, handling raw bytes prior to protocol‑specific decoding. Question 5. The HTTP connection manager in Envoy primarily handles which of the following? A) TLS termination only B) Listener creation only C) HTTP request/response processing and filter chain execution D) Service discovery Answer: C Explanation: The HTTP connection manager is the core HTTP L7 filter that parses HTTP, applies the HTTP filter chain, and manages routing. Question 6. Which xDS API provides dynamic updates for Envoy listeners without requiring a restart? A) RDS B) CDS C) LDS D) EDS Answer: C

Explanation: ADS multiplexes LDS, RDS, CDS, and EDS over one stream, ensuring consistent, ordered updates. Question 10. Delta xDS improves efficiency over state‑of‑the‑world xDS by: A) Sending full configuration on every change B) Sending only incremental changes since the last update C) Using UDP instead of gRPC D) Encrypting all payloads with AES‑ 256 Answer: B Explanation: Delta xDS transmits only the delta (added, removed, or updated resources), reducing bandwidth and processing. Question 11. Which routing rule allows Envoy to select a route based on the value of an HTTP header? A) Path rewrite B) Header‑based routing C) Prefix matching D) Weighted cluster selection Answer: B Explanation: Header‑based routing matches requests on specific header names/values to choose a route. Question 12. In a weighted cluster configuration, what does a higher weight signify? A) Lower latency to that cluster B) Higher probability of traffic being sent to that cluster C) Larger request timeout for that cluster D) More retries allowed for that cluster Answer: B

Explanation: Weights determine the proportion of traffic directed to each cluster; a higher weight means more traffic. Question 13. Which Envoy feature enables “canary” deployments by sending a fraction of traffic to a new version? A) Circuit breaking B) Traffic shifting C) Outlier detection D) Global rate limiting Answer: B Explanation: Traffic shifting (or traffic splitting) allows a percentage of requests to be routed to a canary cluster. Question 14. Exponential backoff in retry configuration is primarily used to: A) Increase request size on each retry B) Reduce load on upstream services by spacing retries progressively C) Randomize request headers D) Disable TLS on retries Answer: B Explanation: Exponential backoff adds increasing delays between retries, preventing thundering herd effects. Question 15. Circuit breaking in Envoy protects upstream services by limiting: A) Number of TLS handshakes per second B) Connection pool size, pending requests, and active retries per cluster C) Number of listener filters D) Size of the admin interface logs

Answer: B Explanation: Maglev provides consistent hashing with low churn when cluster membership changes. Question 19. Which service discovery type resolves DNS names only once at startup and never refreshes? A) Strict DNS B) Logical DNS C) Static discovery D) Original Destination Answer: C Explanation: Static discovery uses a fixed list of hosts defined in the config; DNS is not queried. Question 20. In Envoy, “Original Destination” cluster type is useful for: A) Load balancing across a fixed set of IPs B) Forwarding traffic to the address that the client originally intended to reach C) Performing DNS lookups for each request D) Enabling TLS termination only Answer: B Explanation: Original Destination preserves the original destination IP/port, often used for transparent proxying. Question 21. Zone‑aware routing aims to: A) Randomly distribute traffic across all zones B) Prefer hosts in the same failure domain as the downstream client to reduce latency C) Disable retries across zones D) Enforce TLS only within a zone

Answer: B Explanation: Zone‑aware routing steers traffic to hosts in the same availability zone when possible. Question 22. What does Envoy’s panic threshold control? A) Maximum size of HTTP headers B) Percentage of unhealthy hosts that triggers fallback to all hosts, ignoring health checks C) Number of worker threads allowed to crash D) Maximum concurrent streams per HTTP/2 connection Answer: B Explanation: When unhealthy hosts exceed the panic threshold (default 50%), Envoy relaxes health checks and routes to all hosts. Question 23. Which secret management mechanism allows Envoy to fetch TLS certificates dynamically? A) SDS (Secret Discovery Service) B) RDS (Route Discovery Service) C) EDS (Endpoint Discovery Service) D) LDS (Listener Discovery Service) Answer: A Explanation: SDS streams secrets (TLS certs, validation context) to Envoy, enabling dynamic updates. Question 24. Server Name Indication (SNI) in Envoy is used to: A) Choose the listener port dynamically B) Select the appropriate TLS certificate based on the hostname requested by the client C) Encrypt HTTP headers only D) Route traffic based on HTTP method

D) Runtime feature flags Answer: C Explanation: Hot counters (e.g., request total) are stored per thread and summed on query to avoid contention. Question 28. To export Envoy metrics to Prometheus, which admin endpoint must be enabled? A) /stats/prometheus B) /clusters C) /listeners D) /runtime Answer: A Explanation: The /stats/prometheus endpoint renders metrics in Prometheus exposition format. Question 29. Which trace header does Envoy use when interoperating with Zipkin? A) x-request-id B) x-b3-traceid C) x-ot-span-context D) traceparent Answer: B Explanation: Zipkin uses the B3 header format (x-b3-traceid, x-b3-spanid, etc.) which Envoy propagates. Question 30. Custom access log formats in Envoy can be defined using which syntax? A) JSONPath only B) Envoy’s format string language with percent‑style placeholders C) Regular expressions only D) XML schema

Answer: B Explanation: Envoy’s access log format uses percent‑style placeholders (e.g., %REQ(:METHOD)%) to compose logs. Question 31. Global rate limiting in Envoy is typically implemented via: A) Local token bucket per listener B) A gRPC rate limit service that all proxies query C) HTTP headers only D) DNS‑based throttling Answer: B Explanation: The global rate limit filter calls an external gRPC service to enforce cluster‑wide limits. Question 32. The overload manager in Envoy is triggered when which resource metric exceeds its configured threshold? A) Number of listeners b) CPU or memory usage via a custom resource monitor c) Number of TLS certificates d) Length of the admin URL Answer: B Explanation: Overload manager monitors resource usage (CPU, memory, file descriptors) and activates actions when thresholds are crossed. Question 33. Which setting controls the maximum number of concurrent downstream connections that Envoy will keep alive? A) max_requests_per_connection b) max_connection_duration c) max_connections_per_listener

d) Admin UI Answer: B Explanation: Envoy’s Wasm filter ABI lets you load compiled Wasm modules without recompiling Envoy. Question 37. Which language is NOT natively supported for writing Envoy Wasm filters? A) C++ b) Rust c) Go d) Python Answer: D Explanation: Wasm modules are compiled from languages that can target WebAssembly (C++, Rust, Go), but not directly from Python. Question 38. Lua scripts in Envoy are typically used for: A) Rewriting TLS certificates on the fly b) Simple request/response transformations without recompiling Envoy c) Managing worker threads d) Performing DNS lookups Answer: B Explanation: The Lua filter provides an embedded interpreter for quick, lightweight request/response manipulation. Question 39. In a service mesh, Envoy acting as a sidecar proxy primarily handles: A) Ingress traffic from the internet only b) East‑west traffic between services within the mesh c) DNS resolution for the entire cluster

d) Load balancing of external APIs only Answer: B Explanation: Sidecar proxies intercept inter‑service (east‑west) traffic, applying mesh policies and telemetry. Question 40. Which of the following best differentiates an edge proxy from a sidecar proxy in Envoy? A) Edge proxies run on the client machine; sidecars run on the server b) Edge proxies terminate external traffic at the mesh boundary, while sidecars handle internal service‑to‑service traffic c) Edge proxies use HTTP/1.1 only; sidecars use HTTP/2 only d) Edge proxies cannot use TLS; sidecars must use mTLS Answer: B Explanation: Edge proxies sit at the mesh ingress/egress points, whereas sidecars are deployed alongside each service instance. Question 41. What is the default behavior of Envoy when a listener filter returns “stop iteration”? A) Continue processing remaining filters b) Halt further listener filter processing and wait for additional data c) Drop the connection immediately d) Restart the listener Answer: B Explanation: “Stop iteration” tells Envoy to pause further listener filter execution until more data arrives or the filter resumes. Question 42. Which attribute of a Cluster in Envoy determines the DNS resolution policy? A) load_balancing_policy b) dns_lookup_family

b) Using “timeout” field inside a RouteAction object c) Defining “idle_timeout” in the cluster definition only d) Adding “retry_policy” to the listener Answer: B Explanation: The RouteAction’s timeout defines the maximum time allowed for a request on that specific route. Question 46. What does the “retry_on” field in a route configuration control? A) Which HTTP status codes trigger a retry b) Whether TLS is retried on failure c) The number of times a listener will restart d) The DNS query type for upstream hosts Answer: A Explanation: retry_on lists conditions (e.g., 5xx, gateway-error, reset) that cause Envoy to retry the request. Question 47. In Envoy, the “max_pending_requests” circuit breaker setting limits: A) Number of concurrent downstream connections b) Number of requests waiting for a connection from the pool c) Number of TLS handshakes per second d) Size of the HTTP header map Answer: B Explanation: max_pending_requests caps how many requests can be queued awaiting an upstream connection. Question 48. Which of the following health check types can be configured in Envoy? A) TCP health check only

b) HTTP, TCP, and gRPC health checks c) ICMP ping only d) DNS query health check Answer: B Explanation: Envoy supports HTTP, TCP, and gRPC health checks for upstream hosts. Question 49. The “outlier_detection” config field in a cluster is used to: | A) Enable rate limiting b) Detect and eject unhealthy hosts based on statistical analysis of request failures c) Force all traffic through a single host d) Set the maximum request size Answer: B Explanation: Outlier detection monitors failure metrics and ejects hosts that exceed configured thresholds. Question 50. Which of the following correctly describes “local rate limiting” in Envoy? A) Rate limiting performed by a remote gRPC service b) Token bucket enforced per listener or per virtual host without external calls c) Global token bucket shared across the entire mesh d) Rate limiting only for HTTP/3 traffic Answer: B Explanation: Local rate limiting uses an in‑process token bucket, applied per listener or per route, avoiding external communication. Question 51. What is the purpose of the “runtime” subsystem in Envoy? A) To compile Wasm modules at runtime

b) proxy_protocol: true in the listener filter chain c) enable_original_src_ip: true d) preserve_client_ip: false Answer: B Explanation: Adding the proxy_protocol listener filter parses the PROXY protocol header and restores the client IP. Question 55. The “max_requests_per_connection” setting in HTTP connection manager influences: A) How many requests can be sent over a single downstream TCP connection before it is closed b) The number of upstream connections per cluster c) The size of HTTP request bodies allowed d) The number of listeners that can be created Answer: A Explanation: This setting controls connection reuse; once the limit is hit, Envoy closes the downstream connection. Question 56. Which of the following is NOT a valid load balancing policy in Envoy? A) Ring Hash b) Random c) Least Request d) Maglev Answer: B Explanation: Envoy does not have a built‑in “Random” policy; the others are supported. Question 57. When using “ring_hash” load balancing, which parameter determines the granularity of the hash space? A) minimum_ring_size

b) hash_ring_size c) max_requests_per_connection d) request_headers_to_add Answer: B Explanation: hash_ring_size defines the number of virtual nodes in the hash ring, affecting distribution precision. Question 58. In Envoy, “health_check” fields can be overridden per‑host using which feature? A) Host metadata b) Cluster-wide defaults only c) Listener filters d) Admin interface only Answer: A Explanation: Host metadata can contain health check overrides, enabling per‑host customization. Question 59. Which of the following best describes “transparent proxy” mode in Envoy? A) Envoy rewrites all URLs to a single backend b) Envoy forwards traffic without changing the destination address, preserving original IPs c) Envoy only handles HTTPS traffic d) Envoy disables all filters Answer: B Explanation: Transparent proxying forwards packets while keeping the original destination and source information intact. Question 60. The “tls_context” field in a listener configuration is used to: A) Define upstream TLS settings