Interview › Istio & Service Mesh
What is fault injection in Istio, and why would you use it?
Istio & Service Mesh · Basic level
Answer
Fault injection intentionally adds delays or aborts to mesh traffic so teams can test timeout behavior, retry safety, fallbacks, and user impact. It is a controlled resilience test, not a production failure by accident.
Technical explanation
Delay faults simulate slow dependencies, network latency, or saturated downstream services.
Abort faults simulate HTTP errors such as 500 or 503 responses.
Fault injection should be scoped carefully to a test namespace, header, or small traffic segment to avoid broad production impact.
Hands-on example
Example test plan:
1. Match only requests with header x-chaos-test: true.
2. Inject a 2 second delay to ratings.
3. Confirm checkout timeout is lower than user SLA and fallback is graceful.
4. Remove the VirtualService fault rule after the test.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- How does Istio do request routing based on headers or paths?
- How do you inject delays or aborts to test resilience with Istio?
- What are subsets in a DestinationRule, and how are they used?
- How do you implement a blue-green deployment using Istio?
- What are timeouts in Istio, and how do they interact with retries?
- How do you do weighted traffic splitting for a canary release in Istio?
- What is outlier detection, and how does it eject unhealthy hosts?
- What is mutual TLS (mTLS), and how does Istio provide it automatically?