DCA Communication & Stakeholder Relations 2 — Questions and Answers
Question 1: A development team asks how containers in different Docker networks can communicate. What is the correct approach?
- Connect them to the same overlay network (Correct answer)
- Use host networking for all containers
- Expose all ports on 0.0.0.0 by default
- Disable network isolation via --privileged
Correct answer: Connect them to the same overlay network
Containers in different networks communicate by connecting them to a shared overlay or bridge network.
Question 2: A stakeholder requests a Docker Swarm cluster status report. Which command provides a high-level overview of nodes?
- docker node ls (Correct answer)
- docker info
- docker inspect swarm
- docker swarm status
Correct answer: docker node ls
`docker node ls` lists all nodes in the Swarm along with their availability and manager status.
Question 3: A DevOps team needs to communicate service health to operations stakeholders. Which Docker Swarm feature provides built-in service health information?
- Health checks defined in the service spec (Correct answer)
- Docker events stream only
- Container labels
- Docker stats polling
Correct answer: Health checks defined in the service spec
Health checks in the service spec allow Docker Swarm to report and act on container health states automatically.
Question 4: When documenting container dependencies for stakeholders, which Docker Compose key explicitly defines startup order communication?
- depends_on (Correct answer)
- links
- networks
- environment
Correct answer: depends_on
`depends_on` defines service startup order and dependency relationships in Docker Compose.
Question 5: A security team requires that inter-service communication be encrypted in a Docker Swarm. What should you enable?
- Mutual TLS for overlay networks (Correct answer)
- Host networking mode
- Insecure registry communication
- Port publishing on 0.0.0.0
Correct answer: Mutual TLS for overlay networks
Docker Swarm overlay networks support mutual TLS encryption for inter-node and inter-service communication.
Question 6: A product manager wants to understand why a container exited unexpectedly. Which command provides the most relevant information first?
- docker logs <container> (Correct answer)
- docker diff <container>
- docker export <container>
- docker commit <container>
Correct answer: docker logs <container>
`docker logs` shows the stdout/stderr output of a container, which typically reveals the reason for an unexpected exit.
Question 7: An operations stakeholder asks how to be notified of Docker daemon events in real time. Which command should you recommend?
- docker events (Correct answer)
- docker stats
- docker inspect
- docker top
Correct answer: docker events
`docker events` streams real-time events from the Docker daemon including container lifecycle and network events.
A development team asks how containers in different Docker networks can communicate.
What is the correct approach?