Containers · Compose interview questions

42 real Containers · Compose questions from the DevOps & SRE bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Containers · Compose free