🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Docker: all 10 questions

Quiz: Docker · Question 3 of 10

Inside Docker Compose, how does order-service reach Kafka?

Inside Docker Compose, how does order-service reach Kafka?

  1. A.localhost:9092
  2. B.kafka:9092 — the service name
  3. C.The host machine's IP address
  4. D.It can't; containers are isolated
Answer & explanation

Correct answer: kafka:9092 — the service name

Compose provides DNS names for each service.

Can you get the rest right without peeking?

Take the timed Quiz: Docker quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →