Bird
0
0

Which of the following is the correct DNS format to access a service named api in namespace backend from another namespace?

easy📝 Syntax Q3 of 15
Kubernetes - Namespaces
Which of the following is the correct DNS format to access a service named api in namespace backend from another namespace?
Aapi.backend.svc.cluster.local
Bbackend.api.svc.cluster.local
Capi.svc.backend.cluster.local
Dsvc.api.backend.cluster.local
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kubernetes service DNS format

    The correct format is service.namespace.svc.cluster.local.
  2. Step 2: Apply to given service and namespace

    For service 'api' in namespace 'backend', the DNS is api.backend.svc.cluster.local.
  3. Final Answer:

    api.backend.svc.cluster.local -> Option A
  4. Quick Check:

    Correct DNS format [OK]
Quick Trick: Service DNS is service.namespace.svc.cluster.local [OK]
Common Mistakes:
  • Swapping service and namespace order
  • Misplacing 'svc' in DNS
  • Using cluster.local incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes