Study. uk . com
  1. Home
  2. All questions
  3. Question 717

CKA study material · question 717 of 1000

An application needs a client's requests to keep landing on the same Pod. What does a Service offer?

  1. Cookie-based affinity through sessionAffinity: Cookie
  2. Header-based affinity configured with appProtocol
  3. No affinity of any kind; that is an Ingress concern
  4. Affinity based on the client's IP address
Show the answer

Answer: D. Affinity based on the client's IP address

sessionAffinity supports ClientIP only; cookie or header stickiness belongs to a layer 7 proxy such as an Ingress controller, not to the Service abstraction.

Source: Service (Kubernetes) — Virtual IP addressing mechanism › Session stickiness

Challenge yourself on this topic → Study as cards