Google Cloud Professional Cloud Architect — Question 128
You are developing your microservices application on Google Kubernetes Engine. During testing, you want to validate the behavior of your application in case a specific microservice should suddenly crash. What should you do?
Answer options
- 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.
Correct answer: B
Explanation
The correct answer is B because Istio's fault injection allows you to simulate errors and test how the application responds to them without causing actual crashes. Options A and D do not effectively simulate a crash scenario; they focus on node or traffic management instead. Option C is too drastic and may lead to unintended consequences, rather than a controlled test.