← Quiz: Docker: all 10 questions
Quiz: Docker · Question 8 of 10
dependson: kafka is set for order-service in Compose. What does it guarantee?
depends_on: kafka is set for order-service in Compose. What does it guarantee?
- A.Only that the kafka container starts first, not that Kafka is ready to accept connections
- B.That Kafka is fully ready before order-service starts
- C.That order-service restarts when Kafka restarts
- D.That both run in the same container
Answer & explanation
Correct answer: Only that the kafka container starts first, not that Kafka is ready to accept connections
Services must retry until their dependencies are up.
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 →