Interview questions › Istio & Service Mesh
Istio & Service Mesh interview questions & answers
100 Istio & Service Mesh interview questions, from basic to advanced. Each links to a full answer page with a concise spoken answer, a technical explanation, and a hands-on example.
Tip: paste the job description + your resume into our free resume checker to see which of these skills the role actually requires.
Basic questions
- What is a service mesh, and what problem does it solve?A service mesh is a dedicated infrastructure layer that manages service-to-service communication, usually through sidecar proxies deployed next to each workload.
- What is Istio, and what are the core capabilities it provides?Istio is a service mesh implementation for Kubernetes and other environments.
- What is the difference between the Istio control plane and data plane?The control plane computes and distributes configuration; the data plane enforces it on live traffic.
- What is istiod, and what does it do?istiod is Istio's main control-plane service.
- What is Envoy, and what role does it play in Istio?Envoy is the high-performance proxy Istio uses to enforce mesh behavior.
- What is the sidecar pattern, and how does Istio inject the proxy?The sidecar pattern runs an auxiliary container alongside the application container in the same pod.
- How does automatic sidecar injection work (namespace label, webhook)?Automatic sidecar injection uses a Kubernetes mutating admission webhook.
- What is the Istio ambient (sidecarless) mode, and how does it differ from sidecar mode?Istio ambient mode is a sidecarless data-plane mode.
- What is the difference between ztunnel and a waypoint proxy in ambient mode?ztunnel is the node-level secure overlay component in ambient mode, while a waypoint proxy is an optional L7 Envoy proxy for a service, namespace, or security boundary.
- What problem does Istio solve that Kubernetes Services alone do not?Kubernetes Services provide stable virtual IPs, DNS names, and basic L4 load balancing.
- How does traffic flow through an Envoy sidecar for inbound and outbound requests?In sidecar mode, outbound traffic from the application is redirected to the local Envoy sidecar, which applies outbound routing, mTLS, policy, and telemetry before…
- What is a VirtualService, and what does it control?A VirtualService defines traffic-routing rules for one or more hosts.
- What is a DestinationRule, and how does it relate to a VirtualService?A DestinationRule defines policies for traffic after routing has selected a service destination.
- What is a Gateway resource, and how does it differ from a Kubernetes Ingress?An Istio Gateway configures an Envoy gateway proxy to accept traffic on specific ports, hosts, and TLS settings.
- What is the difference between an Istio ingress gateway and an egress gateway?An ingress gateway controls traffic entering the mesh from outside, while an egress gateway controls traffic leaving the mesh to external services.
- What is a ServiceEntry, and when do you need one?A ServiceEntry adds external or otherwise non-Kubernetes services to Istio's service registry.
- How do you do weighted traffic splitting for a canary release in Istio?Weighted traffic splitting is done with a VirtualService that sends percentages of traffic to different DestinationRule subsets.
- How would you implement a canary deployment progressively shifting traffic with Istio?I implement progressive canary by deploying the new version beside the stable version, routing a small percentage with Istio, validating telemetry and business…
- How do you implement a blue-green deployment using Istio?For blue-green deployment, I keep two complete versions available and switch traffic at the routing layer.
- What are subsets in a DestinationRule, and how are they used?Subsets are named groups of endpoints for a service, usually selected by pod labels such as version: v1 or version: v2.
- How does Istio do request routing based on headers or paths?Istio routes by matching request attributes in a VirtualService.
- What is fault injection in Istio, and why would you use it?Fault injection intentionally adds delays or aborts to mesh traffic so teams can test timeout behavior, retry safety, fallbacks, and user impact.
- How do you inject delays or aborts to test resilience with Istio?Delays and aborts are configured under the fault section of a VirtualService HTTP route.
- What are retries in Istio, and what are the risks of misconfiguring them?Retries let Envoy automatically retry failed requests under configured conditions.
- What are timeouts in Istio, and how do they interact with retries?A timeout defines the maximum time a request is allowed to take before Envoy stops waiting.
- What is a circuit breaker in Istio, and how is it configured (outlier detection, connection pool)?In Istio, circuit breaking is configured through DestinationRule trafficPolicy, mainly connectionPool and outlierDetection.
- What is outlier detection, and how does it eject unhealthy hosts?Outlier detection is Envoy's mechanism for identifying unhealthy upstream endpoints and temporarily ejecting them from the load-balancing pool.
- What is mutual TLS (mTLS), and how does Istio provide it automatically?mTLS means both client and server authenticate each other using certificates, then encrypt the connection.
- What is the difference between PERMISSIVE and STRICT mTLS mode?PERMISSIVE mTLS accepts both plaintext and mTLS traffic, while STRICT requires mTLS.
- Why would you start with PERMISSIVE mTLS during a rollout?I start with PERMISSIVE mTLS because it reduces migration risk.
- What is a PeerAuthentication policy?A PeerAuthentication policy controls how workloads accept peer connections, especially mTLS mode.
- What is a RequestAuthentication policy, and how does it validate JWTs?RequestAuthentication validates end-user or caller JWTs at the proxy.
Intermediate questions
- How does Istio enable a Zero Trust posture inside the cluster?Istio enables zero trust by giving workloads strong identities, encrypting service-to-service traffic with mTLS, enforcing explicit authorization policies, validating…
- How does Istio issue and rotate workload certificates (SPIFFE/SPIRE concepts)?Istio issues and rotates workload certificates through its CA functionality in istiod.
- What telemetry does Istio provide out of the box (metrics, logs, traces)?Istio provides telemetry for service traffic out of the box: request metrics, proxy access logs when enabled, and distributed tracing integration.
- How does Istio integrate with Prometheus for metrics?Istio integrates with Prometheus by exposing proxy and control-plane metrics that Prometheus can scrape.
- What are the golden signals Istio exposes (latency, traffic, errors, saturation)?Istio exposes the golden signals as traffic, errors, latency, and saturation-related proxy metrics.
- How does Istio enable distributed tracing, and what is required from the application?Istio enables distributed tracing by integrating Envoy with tracing backends such as Zipkin, Jaeger, OpenTelemetry collectors, or vendor systems.
- Why must applications propagate trace headers even with Istio?Applications must propagate trace headers because the proxy can observe hops but cannot automatically know how an application maps an inbound request to an outbound…
- How does Istio integrate with Grafana and Kiali, and what does Kiali show?Grafana visualizes Istio metrics, while Kiali shows the mesh topology and service graph, including traffic edges, health, request rates, response codes, mTLS status,…
- What is the typical latency and resource overhead of the sidecar, and how do you minimise it?The sidecar adds CPU, memory, startup, and latency overhead because every request passes through an additional proxy.
- How do you troubleshoot a request that is failing only inside the mesh?For a request failing only inside the mesh, I isolate whether the failure is routing, mTLS, authorization, endpoint discovery, gateway configuration, or application…
- How do you use istioctl proxy-config and proxy-status to debug Envoy?I use istioctl proxy-status to check whether proxies are connected and synced with istiod.
- What does istioctl analyze do?istioctl analyze validates Istio and Kubernetes configuration for common mesh problems.
- How do you debug mTLS handshake failures between two services?To debug mTLS handshake failures, I verify both workloads are in the mesh, check PeerAuthentication mode, inspect DestinationRule TLS settings, confirm certificates…
- What is a common cause of 503 errors in Istio, and how do you diagnose it?A common cause of 503 in Istio is that Envoy has no healthy upstream endpoints or no valid route to the selected subset.
- Why might traffic bypass the sidecar, and how do you verify injection?Traffic may bypass the sidecar if the pod was not injected, traffic uses excluded ports or IP ranges, hostNetwork is used, iptables/CNI redirection failed, the app…
- How do you exclude certain ports or IP ranges from sidecar interception?Istio can exclude specific inbound ports, outbound ports, outbound IP ranges, or interfaces from sidecar interception using traffic.sidecar.istio.io annotations.
- How do you handle non-HTTP (TCP) traffic in Istio?Istio can handle non-HTTP TCP traffic with L4 routing, mTLS, telemetry, and authorization based on ports, IPs, principals, and services.
- How does Istio handle headless services and StatefulSets?Istio can work with headless services and StatefulSets, but I pay close attention to service discovery, DNS, stable pod identities, and protocol behavior.
- What is the difference between Istio and an API gateway?Istio and an API gateway solve overlapping but different problems.
- How do Istio Gateways relate to the Kubernetes Gateway API?Istio Gateways are Istio's native API for configuring gateway proxies.
- What is the Kubernetes Gateway API, and how is Istio adopting it?The Kubernetes Gateway API is a standardized Kubernetes networking API intended to be more expressive and role-oriented than Ingress.
- How do you roll out Istio to existing workloads with minimal disruption?I would roll out Istio to existing workloads in waves, starting with low-risk namespaces, using PERMISSIVE mTLS, strong telemetry, and clear rollback.
- How do you upgrade Istio safely (canary control plane, revision tags)?I upgrade Istio safely by installing the new control plane as a canary revision, moving a small set of workloads to that revision, validating telemetry and traffic,…
- How do you do a canary upgrade of the Istio control plane?A canary upgrade installs the new Istio control plane alongside the old one, then migrates a small set of workloads or namespaces to the new revision.
- Does the data plane keep working if the control plane goes down, and why?Yes, the data plane can keep serving existing traffic if the control plane goes down because Envoy proxies already have their last accepted configuration.
- How do you enforce that all traffic leaving the mesh goes through an egress gateway?To force outbound mesh traffic through an egress gateway, I combine Istio outbound traffic policy, ServiceEntry, VirtualService, DestinationRule, AuthorizationPolicy,…
- How would you restrict which external services workloads can reach with Istio?I restrict external access by using REGISTRY_ONLY outbound policy, defining approved external destinations with ServiceEntry, routing sensitive traffic through egress…
- What is locality-aware load balancing, and why does it help latency and cost?Locality-aware load balancing prefers endpoints in the same zone, region, or network locality when possible.
- How does Istio handle multi-cluster service discovery at a high level?At a high level, Istio multi-cluster service discovery lets workloads in one cluster discover and securely call services in another cluster.
- What is the difference between a primary-remote and a multi-primary multi-cluster setup?In a primary-remote setup, one primary cluster runs the control plane and remote clusters run workloads connected to that control plane.
- How do you measure the performance impact of enabling Istio?I measure Istio's performance impact by comparing baseline and mesh-enabled workloads under the same load profile.
Advanced questions
- How do you decide whether a service should be in the mesh or not?I decide based on value versus risk and cost.
- When is a service mesh overkill, and what lighter alternatives exist?A service mesh is overkill when the environment has few services, simple traffic paths, limited security requirements, or a team that cannot operate the additional…
- How do you handle secrets and certificates for the ingress gateway (TLS termination)?For ingress gateway TLS termination, I store certificates as Kubernetes TLS secrets or use a certificate manager integration, reference them from the Gateway using…
- What is SNI-based routing, and how does the ingress gateway use it?SNI-based routing uses the Server Name Indication value in the TLS ClientHello to route encrypted traffic before HTTP is decrypted.
- How would you implement rate limiting in Istio (local and global)?Istio rate limiting can be local or global.
- How does Istio interact with NetworkPolicies — do you need both?Istio and Kubernetes NetworkPolicies operate at different layers, and I usually want both.
- What is the difference between L4 and L7 policy enforcement in the mesh?L4 policy enforcement uses connection-level attributes such as source identity, destination port, IP, and TCP protocol.
- How do you observe and reduce the error rate of a specific service via the mesh?To observe and reduce a specific service's error rate, I first identify the failing edge, response codes, and source workloads using Istio metrics and access logs.
- How would you use the mesh to enforce least-privilege between microservices?I enforce least privilege by combining mTLS STRICT, dedicated service accounts, default-deny AuthorizationPolicy, explicit ALLOW rules for known service edges, JWT…
- How do you roll back a bad VirtualService change quickly?To roll back a bad VirtualService quickly, I keep mesh config in Git, apply changes through CI/CD, and revert to the last known-good manifest.
- What metrics would you alert on for the mesh itself?I alert on mesh control-plane health, proxy sync, gateway health, xDS push errors, certificate expiration, injection failures, 5xx/error-rate at gateways, mTLS or…
- How do you capacity-plan the ingress gateway?I capacity-plan the ingress gateway like a shared production load balancer.
- How do you handle gradual migration of services into mTLS STRICT mode?For gradual migration to mTLS STRICT, I first enable the mesh in PERMISSIVE mode, identify all callers, verify that expected traffic uses mTLS, fix non-meshed…
- What is the impact of the sidecar on application startup and shutdown ordering?The sidecar can affect startup and shutdown because the application may start before Envoy is ready, or terminate before Envoy finishes draining connections.
- How do you ensure the sidecar is ready before the app starts taking traffic?I ensure the sidecar is ready before traffic by using Istio's proxy readiness integration, Kubernetes readiness probes, and, for workloads that make early outbound…
- How do you drain connections gracefully during a rolling update with Istio?To drain connections gracefully during a rolling update, I coordinate Kubernetes termination settings, application shutdown, Envoy drain duration, readiness removal,…
- What is the role of the holdApplicationUntilProxyStarts setting?holdApplicationUntilProxyStarts delays application container startup until the Istio proxy is ready.
- How does Istio support traffic mirroring (shadowing), and why is it useful?Traffic mirroring, or shadowing, sends a copy of live requests to another destination while the original request still goes to the primary service.
- How would you mirror production traffic to a new version for testing?To mirror production traffic to a new version, I deploy the new version in an isolated mode, route normal traffic to stable, mirror a small percentage to the new…
- How do you debug high tail latency introduced after enabling the mesh?To debug high tail latency after enabling the mesh, I compare before/after latency at each hop: client, ingress gateway, source proxy, destination proxy, and application.
- How do you decide retry budgets to avoid retry storms in the mesh?I decide retry budgets from the user latency budget, downstream capacity, idempotency, and incident behavior.
- How does Istio help with progressive delivery alongside Argo Rollouts or Flagger?Istio works well with Argo Rollouts or Flagger by providing the traffic-routing mechanism while the progressive delivery controller manages rollout steps and analysis…
- What observability gaps does Istio NOT fill that you still need application instrumentation for?Istio does not replace application instrumentation.
- How do you secure the Istio control plane itself?I secure the Istio control plane by isolating istio-system, restricting RBAC, limiting who can change Istio CRDs, protecting signing keys and root CA material,…
- What RBAC is needed to manage Istio resources safely?RBAC should separate platform-level mesh administration from application-level route and policy ownership.
- How do you prevent a team from misconfiguring routing for a shared gateway?To prevent shared-gateway misconfiguration, I use ownership boundaries, Gateway API attachment rules where possible, host allowlists, admission policies, CI…
- How would you structure Istio config ownership across many teams?I structure Istio config ownership by separating platform-owned, security-owned, and service-owned resources.
- How do you validate mesh config changes in CI before applying?I validate mesh config in CI by rendering manifests, running schema validation, istioctl analyze, policy tests, host/subset checks, and optionally deploying to an…
- What is your rollback strategy if an Istio upgrade degrades traffic?If an Istio upgrade degrades traffic, my rollback strategy is to stop expansion, move affected namespaces back to the previous revision or revision tag, restart…
- How do you measure whether the mesh is actually improving reliability?I measure whether the mesh improves reliability by comparing SLO outcomes before and after adoption: lower incident frequency, faster rollback, safer canaries, fewer…
- What recent Istio feature have you evaluated, and what value would it bring?A recent Istio feature I would evaluate is ambient mode.
- How do you justify the operational complexity of a service mesh to leadership?I justify service mesh complexity only when the benefits are measurable: stronger internal security, faster and safer releases, standardized traffic policy, better…