Chapter 2 (Docker)

Chapter 2 (Docker)

University

30 Qs

quiz-placeholder

Similar activities

HTML and CSS Quiz Review

HTML and CSS Quiz Review

9th Grade - University

25 Qs

[KM] [FEJS2] Chapter 1 - Final Quiz

[KM] [FEJS2] Chapter 1 - Final Quiz

University

25 Qs

1st Day

1st Day

University

25 Qs

ASW_08_EN_Allocation

ASW_08_EN_Allocation

University

28 Qs

C4-DCKR-EN

C4-DCKR-EN

University

25 Qs

3. Section 2: Kubernetes Overview

3. Section 2: Kubernetes Overview

University

29 Qs

Soal Penilaian Desain Grafis

Soal Penilaian Desain Grafis

10th Grade - University

25 Qs

HTML Quiz : Batch1

HTML Quiz : Batch1

University

25 Qs

Chapter 2 (Docker)

Chapter 2 (Docker)

Assessment

Quiz

Computers

University

Medium

Created by

Kelly Gafford

Used 4+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of a Dockerfile?
To define the steps for building a Docker image
To run a Docker container
To manage Docker networks
To store Docker volumes

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which Dockerfile instruction is used to specify the base image for a new image?
FROM
RUN
COPY
CMD

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the role of the RUN instruction in a Dockerfile?
To copy files into the image
To execute commands during the image build process
To set environment variables
To define the default command to run when a container starts

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which Dockerfile instruction is used to define the command that will be executed when a container starts from the image?
ENTRYPOINT
CMD
RUN
EXEC

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the .dockerignore file?
To specify which files and directories should be excluded from the build context
To define the build arguments for a Docker image
To set environment variables during the build process
To configure the network settings for a Docker container

6.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are valid Dockerfile instructions?
ADD
ENV
LABEL
PUSH

7.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following statements about Docker image layers are true?
Each instruction in a Dockerfile creates a new layer in the image
Docker layers are read-only
Docker layers can be shared between multiple images
Docker layers can be modified after the image is built

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?