Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium
Question 26
You are deploying a set of microservices on a Kubernetes cluster and wish to introduce fine-grained control for ingress and egress traffic between services for improved security. Which Kubernetes-related approach will best serve this use-case?
-
A
Use Horizontal Pod Autoscalers (HPA) to control traffic loads.
-
B
Use Network Policies to control traffic between namespaces and services.
-
C
Use node taints and tolerations to isolate the services on dedicated nodes.
-
D
Implement a Service Mesh like Istio or Linkerd for service-to-service communication.
Reveal correct answer
Correct answer: D
A.
HPAs are used for autoscaling pods based on metrics, not for controlling network traffic.
B.
Network Policies can control traffic at a certain level but may not provide the fine-grained, application-level controls that a Service Mesh offers.
C.
Node taints and tolerations are more for controlling where pods are scheduled, not for fine-grained control of network traffic between services.
D.
Service Mesh technologies like Istio or Linkerd provide extensive capabilities for fine-grained ingress and egress controls, along with other features.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
