← 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?
- A.localhost:9092
- B.kafka:9092 — the service name
- C.The host machine's IP address
- 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 →