0
0
Dockerdevops~5 mins

Manager and worker nodes in Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the role of a manager node in Docker Swarm?
A manager node controls the swarm, manages cluster state, and assigns tasks to worker nodes.
Click to reveal answer
beginner
What does a worker node do in a Docker Swarm?
A worker node runs the containers assigned by the manager node but does not manage the swarm.
Click to reveal answer
intermediate
How do manager nodes communicate with worker nodes in Docker Swarm?
Manager nodes send tasks to worker nodes using the swarm's internal network and keep track of their status.
Click to reveal answer
intermediate
Can a node be both a manager and a worker in Docker Swarm?
Yes, a node can act as both manager and worker, handling management tasks and running containers.
Click to reveal answer
intermediate
Why is it recommended to have multiple manager nodes in a Docker Swarm?
Multiple manager nodes provide high availability and fault tolerance for the swarm control plane.
Click to reveal answer
What is the primary responsibility of a Docker Swarm manager node?
AStoring container images
BRunning application containers only
CAssigning tasks to worker nodes
DMonitoring network traffic
Which node type runs containers but does not manage the swarm?
ALoad balancer node
BManager node
CRegistry node
DWorker node
Can a Docker Swarm node be both a manager and a worker?
AYes, it can perform both roles
BNo, roles are exclusive
COnly if it is a manager node
DOnly if it is a worker node
Why should you have multiple manager nodes in a swarm?
ATo increase container speed
BFor high availability and fault tolerance
CTo reduce network traffic
DTo store more images
How do manager nodes keep track of worker nodes?
AUsing the swarm's internal network and status updates
BBy monitoring their CPU usage only
CBy checking container logs
DThrough external monitoring tools only
Explain the difference between manager and worker nodes in Docker Swarm.
Think about who controls and who executes.
You got /4 concepts.
    Why is it important to have multiple manager nodes in a Docker Swarm cluster?
    Consider what happens if one manager node fails.
    You got /4 concepts.