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

CKA study material · question 266 of 1000

A Pod in the test namespace cannot resolve a Service called data that lives in prod. Which two statements explain it? Choose two.

  1. A query without a namespace resolves inside the querying Pod's namespace
  2. The namespace must be included in the query to reach another one
  3. Only headless Services resolve across namespaces
  4. Cross-namespace DNS is disabled by default
Show the answer

Answer: A. A query without a namespace resolves inside the querying Pod's namespace
B. The namespace must be included in the query to reach another one

A bare name resolves in the caller's own namespace, so reaching another needs the namespace in the query.

Source: DNS for Services and Pods (Kubernetes) — Namespaces of Services

Challenge yourself on this topic → Study as cards