Skills101
← All practice quizzes

Quiz: Docker

5 questionsNo time limitPass: 60%+10 XP on first pass

Package a Spring Boot app as a Docker image with a multi-stage Dockerfile, run as a non-root user, and start the whole microservices system — Kafka, Eureka, gateway and services — with one docker compose command.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What is the difference between an image and a container?

  2. Question 2

    Why use a multi-stage Dockerfile for a Spring Boot app?

  3. Question 3

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

  4. Question 4

    How does SPRING_KAFKA_BOOTSTRAP_SERVERS affect the app?

  5. Question 5

    Why copy pom.xml and download dependencies before copying src?