← All topics
Quiz: Docker: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What is the difference between an image and a container?
- Q2. Why use a multi-stage Dockerfile for a Spring Boot app?
- Q3. Inside Docker Compose, how does order-service reach Kafka?
- Q4. How does SPRINGKAFKABOOTSTRAPSERVERS affect the app?
- Q5. Why copy pom.xml and download dependencies before copying src?
- Q6. Why should a database container use a volume?
- Q7. What does -p 8081:8081 in docker run do?
- Q8. dependson: kafka is set for order-service in Compose. What does it guarantee?
- Q9. Why does the Dockerfile switch to USER app in the final stage?
- Q10. Why are containers lighter than virtual machines?