2V0-71.23 Question 40
Select 3Your organization is deploying a Tanzu Kubernetes cluster and considering the implementation of a service mesh to enhance communication between microservices. Which of the following are benefits of using a service mesh in this context?
- A
Provides traffic encryption between microservices to improve security.
- B
Automatically scales Kubernetes nodes based on service mesh metrics.
- C
Enables service discovery and routing without modifying application code.
- D
Facilitates centralized observability with metrics and tracing for service communication.
- E
Replaces Kubernetes' native networking to improve cluster performance.
Show answer and explanation
Correct answers: A, C, D
Explanation
Service meshes are designed to enhance microservice communication by providing features like traffic encryption, service discovery, routing, and centralized observability. They do not replace Kubernetes' native networking or handle tasks like node scaling, as these responsibilities lie elsewhere in the Kubernetes ecosystem. Implementing a service mesh helps simplify operational complexity while improving security and monitoring capabilities.
- A. Correct.
Correct. Service meshes often provide traffic encryption (e.g., via mTLS), ensuring secure communication between microservices.
- B. Incorrect.
Incorrect. Service meshes do not handle Kubernetes node scaling; this task is managed by Kubernetes' Horizontal Pod Autoscaler and other scaling mechanisms.
- C. Correct.
Correct. A service mesh abstracts service discovery and routing, allowing developers to focus on application logic without modifying their code.
- D. Correct.
Correct. Service meshes include observability features, like metrics, logs, and distributed tracing, to monitor microservice communication effectively.
- E. Incorrect.
Incorrect. A service mesh works alongside Kubernetes' native networking and is not a replacement for it. Its goal is to enhance features like security, observability, and traffic control.