Containers · Compose interview questions

42 Containers · Compose questions from the DevOps & SRE bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Compose file?

Junior
  1. A.a group of services managed together under one Compose configuration
  2. B.a mechanism to selectively enable groups of services for different scenarios
  3. C.an ordering directive that controls service start order without guaranteeing readiness
  4. D.a docker-compose.yml defining multi-container applications declaratively

Answer + AI explanation with Pro

2. Which term means: "a docker-compose.yml defining multi-container applications declaratively"?

Junior
  1. A.Override file
  2. B.Compose file
  3. C.Project
  4. D.Compose network

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Compose file — a default bridge network letting services reach each other by service name
  2. B.Compose file — a Compose-defined probe used to mark a service healthy before dependents start
  3. C.Compose file — a docker-compose.yml defining multi-container applications declaratively
  4. D.Compose file — a mechanism to selectively enable groups of services for different scenarios

Answer + AI explanation with Pro

4. What is Service?

Junior
  1. A.a default bridge network letting services reach each other by service name
  2. B.a group of services managed together under one Compose configuration
  3. C.a container definition in Compose describing image, ports, and configuration
  4. D.an ordering directive that controls service start order without guaranteeing readiness

Answer + AI explanation with Pro

5. Which term means: "a container definition in Compose describing image, ports, and configuration"?

Junior
  1. A.Service
  2. B.Healthcheck
  3. C.depends_on
  4. D.Compose file

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Service — a mechanism to selectively enable groups of services for different scenarios
  2. B.Service — a container definition in Compose describing image, ports, and configuration
  3. C.Service — a docker-compose.override.yml merged automatically to adjust settings per environment
  4. D.Service — a group of services managed together under one Compose configuration

Answer + AI explanation with Pro

7. What is Project?

Junior
  1. A.a mechanism to selectively enable groups of services for different scenarios
  2. B.a Compose-defined probe used to mark a service healthy before dependents start
  3. C.a group of services managed together under one Compose configuration
  4. D.a docker-compose.override.yml merged automatically to adjust settings per environment

Answer + AI explanation with Pro

8. Which term means: "a group of services managed together under one Compose configuration"?

Junior
  1. A.Project
  2. B.Profiles
  3. C.Healthcheck
  4. D.depends_on

Answer + AI explanation with Pro

9. Which statement is correct?

Junior
  1. A.Project — a Compose-defined probe used to mark a service healthy before dependents start
  2. B.Project — a group of services managed together under one Compose configuration
  3. C.Project — a container definition in Compose describing image, ports, and configuration
  4. D.Project — a docker-compose.yml defining multi-container applications declaratively

Answer + AI explanation with Pro

10. What is Compose network?

Junior
  1. A.a default bridge network letting services reach each other by service name
  2. B.a docker-compose.override.yml merged automatically to adjust settings per environment
  3. C.an ordering directive that controls service start order without guaranteeing readiness
  4. D.a mechanism to selectively enable groups of services for different scenarios

Answer + AI explanation with Pro

11. Which term means: "a default bridge network letting services reach each other by service name"?

Junior
  1. A.Compose network
  2. B.Service
  3. C.depends_on
  4. D.Override file

Answer + AI explanation with Pro

12. Which statement is correct?

Junior
  1. A.Compose network — a group of services managed together under one Compose configuration
  2. B.Compose network — an ordering directive that controls service start order without guaranteeing readiness
  3. C.Compose network — a container definition in Compose describing image, ports, and configuration
  4. D.Compose network — a default bridge network letting services reach each other by service name

Answer + AI explanation with Pro

13. What is depends_on?

Mid
  1. A.a Compose-defined probe used to mark a service healthy before dependents start
  2. B.an ordering directive that controls service start order without guaranteeing readiness
  3. C.a container definition in Compose describing image, ports, and configuration
  4. D.a docker-compose.override.yml merged automatically to adjust settings per environment

Answer + AI explanation with Pro

14. Which term means: "an ordering directive that controls service start order without guaranteeing readiness"?

Mid
  1. A.Override file
  2. B.Compose network
  3. C.Healthcheck
  4. D.depends_on

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.depends_on — a docker-compose.override.yml merged automatically to adjust settings per environment
  2. B.depends_on — a docker-compose.yml defining multi-container applications declaratively
  3. C.depends_on — an ordering directive that controls service start order without guaranteeing readiness
  4. D.depends_on — a group of services managed together under one Compose configuration

Answer + AI explanation with Pro

16. What is Healthcheck?

Mid
  1. A.a Compose-defined probe used to mark a service healthy before dependents start
  2. B.a docker-compose.yml defining multi-container applications declaratively
  3. C.a container definition in Compose describing image, ports, and configuration
  4. D.an ordering directive that controls service start order without guaranteeing readiness

Answer + AI explanation with Pro

17. Which term means: "a Compose-defined probe used to mark a service healthy before dependents start"?

Mid
  1. A.Service
  2. B.Healthcheck
  3. C.depends_on
  4. D.Project

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.Healthcheck — a Compose-defined probe used to mark a service healthy before dependents start
  2. B.Healthcheck — a docker-compose.yml defining multi-container applications declaratively
  3. C.Healthcheck — a group of services managed together under one Compose configuration
  4. D.Healthcheck — a default bridge network letting services reach each other by service name

Answer + AI explanation with Pro

19. What is Profiles?

Mid
  1. A.a container definition in Compose describing image, ports, and configuration
  2. B.a mechanism to selectively enable groups of services for different scenarios
  3. C.a docker-compose.override.yml merged automatically to adjust settings per environment
  4. D.a default bridge network letting services reach each other by service name

Answer + AI explanation with Pro

20. Which term means: "a mechanism to selectively enable groups of services for different scenarios"?

Mid
  1. A.Override file
  2. B.Profiles
  3. C.depends_on
  4. D.Project

Answer + AI explanation with Pro

21. Which statement is correct?

Mid
  1. A.Profiles — an ordering directive that controls service start order without guaranteeing readiness
  2. B.Profiles — a mechanism to selectively enable groups of services for different scenarios
  3. C.Profiles — a container definition in Compose describing image, ports, and configuration
  4. D.Profiles — a docker-compose.yml defining multi-container applications declaratively

Answer + AI explanation with Pro

22. What is Override file?

Mid
  1. A.a default bridge network letting services reach each other by service name
  2. B.a container definition in Compose describing image, ports, and configuration
  3. C.a docker-compose.override.yml merged automatically to adjust settings per environment
  4. D.a mechanism to selectively enable groups of services for different scenarios

Answer + AI explanation with Pro

23. Which term means: "a docker-compose.override.yml merged automatically to adjust settings per environment"?

Mid
  1. A.Service
  2. B.Project
  3. C.Override file
  4. D.Compose network

Answer + AI explanation with Pro

24. Which statement is correct?

Mid
  1. A.Override file — a default bridge network letting services reach each other by service name
  2. B.Override file — a group of services managed together under one Compose configuration
  3. C.Override file — a docker-compose.override.yml merged automatically to adjust settings per environment
  4. D.Override file — a mechanism to selectively enable groups of services for different scenarios

Answer + AI explanation with Pro

25. What does docker compose up -d do?

Junior
  1. A.create and start all services in the background
  2. B.run a shell in the running web service container
  3. C.list the containers for the current Compose project
  4. D.build or rebuild the images for the services

Answer + AI explanation with Pro

26. Which command will create and start all services in the background?

Junior
  1. A.docker compose logs -f
  2. B.docker compose down
  3. C.docker compose up -d
  4. D.docker compose ps

Answer + AI explanation with Pro

27. Which statement is correct?

Junior
  1. A.docker compose up -d — follow aggregated logs from all services
  2. B.docker compose up -d — list the containers for the current Compose project
  3. C.docker compose up -d — create and start all services in the background
  4. D.docker compose up -d — run a shell in the running web service container

Answer + AI explanation with Pro

28. What does docker compose down do?

Junior
  1. A.create and start all services in the background
  2. B.list the containers for the current Compose project
  3. C.run a shell in the running web service container
  4. D.stop and remove containers, networks created by up

Answer + AI explanation with Pro

29. Which command will stop and remove containers, networks created by up?

Junior
  1. A.docker compose logs -f
  2. B.docker compose exec web sh
  3. C.docker compose ps
  4. D.docker compose down

Answer + AI explanation with Pro

30. Which statement is correct?

Junior
  1. A.docker compose down — run a shell in the running web service container
  2. B.docker compose down — follow aggregated logs from all services
  3. C.docker compose down — list the containers for the current Compose project
  4. D.docker compose down — stop and remove containers, networks created by up

Answer + AI explanation with Pro

Showing 30 of 42 Containers · Compose questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Containers · Compose question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers