Which of the following best explains why orchestration tools are important when managing multiple Docker containers?
Think about what happens when you have many containers running on different machines.
Orchestration tools like Kubernetes or Docker Swarm help automate tasks such as deploying containers, scaling them up or down, and managing their lifecycle across multiple servers. This is essential for handling complex applications.
What is the output after running this command to scale a Docker Swarm service named webapp to 5 replicas?
docker service scale webapp=5
Consider what Docker Swarm reports when a service is successfully updated.
The command updates the number of replicas for the service and outputs a confirmation like 'webapp scaled to 5'.
Put these steps in the correct order to deploy a containerized application using an orchestration tool like Kubernetes.
Think about building the image first, then making it available, then defining and applying the deployment.
First, build the Docker image locally (2), then push it to a registry (4) so the cluster can access it. Next, write the deployment config (1), and finally apply it to the cluster (3).
You deployed a pod but it stays in Pending state. Which reason below is the most likely cause?
Pending means the pod is waiting to be scheduled on a node.
If no node has enough CPU or memory, Kubernetes cannot schedule the pod, so it remains Pending.
Which is the best practice for handling sensitive data like passwords in a container orchestration environment?
Think about security and flexibility when managing secrets.
Using the orchestration platform's secret management allows secure storage and controlled injection of secrets without baking them into images or code.