
Answer-first summary for fast verification
Answer: Use Istio's fault injection on the particular microservice whose faulty behavior you want to simulate.
The correct answer is B: Use Istio's fault injection on the particular microservice whose faulty behavior you want to simulate. Istio is a service mesh that provides advanced traffic management, including fault injection capabilities. This allows you to deliberately introduce errors such as delays or crashes into a specific microservice, effectively simulating its failure without affecting other parts of your application. This targeted approach ensures that you can observe the application's behavior and resilience in the face of specific microservice failures.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are developing a microservices application on Google Kubernetes Engine (GKE). During testing, it is crucial to validate how your application reacts if one of the microservices unexpectedly crashes. What is the best approach to simulate this scenario and observe the application's behavior?
A
Add a taint to one of the nodes of the Kubernetes cluster. For the specific microservice, configure a pod anti-affinity label that has the name of the tainted node as a value.
B
Use Istio's fault injection on the particular microservice whose faulty behavior you want to simulate.
C
Destroy one of the nodes of the Kubernetes cluster to observe the behavior.
D
Configure Istio's traffic management features to steer the traffic away from a crashing microservice.