You have a small web app project with simple scaling needs and limited team experience in container orchestration. Which container orchestration tool is the best fit?
Think about ease of use and team experience for small projects.
Docker Swarm is simpler and faster to set up, making it ideal for small projects and teams new to orchestration. Kubernetes is more complex and better suited for large, complex deployments.
What is the expected output of the command kubectl get nodes on a freshly installed single-node Kubernetes cluster?
kubectl get nodesConsider the default role assigned to the single node in Kubernetes.
A single-node Kubernetes cluster usually has the node labeled as control-plane and its status as Ready.
You want to deploy a multi-service app using Docker Swarm with automatic service discovery and load balancing. Which sequence of commands correctly initializes the swarm and deploys the app using a stack file?
Think about the order: initialize swarm, deploy stack, then check services and nodes.
You must first initialize the swarm, then deploy the stack, and finally check the services and nodes status.
You deployed a pod in Kubernetes, but it stays in the Pending state indefinitely. What 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 resources, the pod cannot be scheduled and remains Pending.
Which statement correctly describes the best practice for managing sensitive data (secrets) in Kubernetes compared to Docker Swarm?
Consider how each platform handles secret encryption by default.
Docker Swarm encrypts secrets both in transit and at rest by default. Kubernetes stores secrets base64-encoded and requires manual setup for encryption at rest.