Infrastructure
Knowledge Check

Infrastructure Chapter 1

This quiz consists of 12 questions.
The quiz has a time limit. For each question you will be given 30 seconds.
1.

Which feature of Docker allows you to track different versions of your application?

Choose 1 answer
2.

What is the primary purpose of a Docker image?

Choose 1 answer
3.

In the context of Docker, which command would you use to create a container from a specific image and also assign a name to that container?

Choose 1 answer
4.

If you wanted to see the live resource usage statistics of all running containers, which command would you use?

Choose 1 answer
5.

What is the purpose of the docker run command?

Choose 1 answer
6.

Which command would you use to remove a stopped container?

Choose 1 answer
7.

Imagine you're setting up a Docker container using Ubuntu as the base image. If you wanted to ensure that the package installations occur without any interactive prompts, which command would you include in your Dockerfile to set the appropriate environment variable?

Choose 1 answer
8.

After creating your Dockerfile and building your image, you want to ensure the container runs in an interactive terminal. Which combination of options would you use with the docker run command to achieve this?

Choose 1 answer
9.

You’ve built a Docker image named my-ubuntu-image. To confirm that this image has been successfully created, which command would you execute to view a list of all Docker images?

Choose 1 answer
10.

You're working on a project that involves multiple services, such as a web server and a database. Instead of managing each container individually, you've decided to use a tool that allows you to define and configure all these services in a single, readable file format. Which tool should you consider using to streamline the management of your multi-container application?

Choose 1 answer
11.

What command would you use to run a Docker Compose file named my-compose-file.yml?

Choose 1 answer
12.

How would you scale the web service to run three instances using Docker Compose?

Choose 1 answer

Have a doubt?
Post it here, our mentors will help you out.