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

CKA study material · question 710 of 1000

A Service is created without a selector so it can front an external database. Nothing can reach it. What is missing?

  1. A ClusterRole granting the Service access to the endpoint
  2. A NetworkPolicy permitting egress to the database
  3. An externalName value naming the database host
  4. A hand-written EndpointSlice naming the database's address and port
Show the answer

Answer: D. A hand-written EndpointSlice naming the database's address and port

Without a selector nothing creates EndpointSlices for the Service, so one has to be supplied manually to map it onto the external backend.

Source: Service (Kubernetes) — Defining a Service › Services without selectors

Challenge yourself on this topic → Study as cards