Quiz: Cloud Computing and Containers
Test your understanding of Docker, containers, and cloud concepts.
1. What is a container in computing?
- A type of hard drive
- A lightweight, isolated environment for running applications
- A network protocol
- A backup system
Show Answer
The correct answer is B. A container is a lightweight, isolated environment that packages an application with its dependencies. Unlike VMs, containers share the host OS kernel, making them fast to start and efficient with resources.
Concept Tested: Containers
2. What is Docker?
- A web browser
- A platform for building and running containers
- A programming language
- A cloud provider
Show Answer
The correct answer is B. Docker is the most popular platform for creating, deploying, and managing containers. It includes tools for building container images, running containers, and sharing them through registries like Docker Hub.
Concept Tested: Docker
See: Chapter 21 - Docker
3. What is a Docker image?
- A photograph of a container
- A read-only template used to create containers
- A backup of your system
- A virtual machine snapshot
Show Answer
The correct answer is B. A Docker image is a read-only template containing everything needed to run an application: code, runtime, libraries, and configuration. Containers are running instances of images.
Concept Tested: Docker Images
4. What is the difference between a container and a virtual machine?
- They're identical
- Containers share the host OS kernel; VMs have their own OS
- VMs are faster to start
- Containers use more disk space
Show Answer
The correct answer is B. VMs virtualize hardware and run a complete guest OS, making them heavier. Containers share the host kernel and only package the application and dependencies, making them lightweight and fast.
Concept Tested: Containers vs VMs
5. What command runs a Docker container?
- docker start
- docker run
- docker exec
- docker create
Show Answer
The correct answer is B. docker run creates and starts a container from an image. For example, docker run -d nginx runs an nginx web server container in detached mode.
Concept Tested: Docker Commands
6. What is Docker Hub?
- A USB hub for Docker
- A public registry for sharing Docker images
- A network switch
- A development environment
Show Answer
The correct answer is B. Docker Hub is a cloud-based registry where you can find, share, and store Docker images. It hosts official images for popular software like nginx, MySQL, and Python.
Concept Tested: Docker Hub
7. What is a Dockerfile?
- A container log file
- A text file with instructions for building a Docker image
- Docker's configuration file
- A list of running containers
Show Answer
The correct answer is B. A Dockerfile is a text file containing step-by-step instructions for building a Docker image. It specifies the base image, files to copy, commands to run, and how to start the application.
Concept Tested: Dockerfile
8. What is Kubernetes (K8s)?
- A Docker alternative
- A container orchestration platform for managing containerized applications at scale
- A cloud provider
- A programming language
Show Answer
The correct answer is B. Kubernetes (often abbreviated K8s) is a container orchestration platform that automates deployment, scaling, and management of containerized applications across clusters of machines.
Concept Tested: Kubernetes
9. What is the cloud in "cloud computing"?
- Weather-related computing
- Remote servers accessed over the internet
- Wireless networks
- Fog computing
Show Answer
The correct answer is B. Cloud computing refers to computing services (servers, storage, databases, networking) delivered over the internet. Instead of owning hardware, you rent resources from providers like AWS, Google Cloud, or Azure.
Concept Tested: Cloud Computing
10. What is Terraform used for?
- Creating virtual planets
- Infrastructure as Code - managing cloud resources with configuration files
- Testing web applications
- Monitoring server performance
Show Answer
The correct answer is B. Terraform is an Infrastructure as Code (IaC) tool that lets you define and provision cloud infrastructure using configuration files. You can version control your infrastructure and recreate it reliably.
Concept Tested: Terraform