wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DevOps-2 [Containers and K8s]

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following is not a component of Docker Architecture?

a)

Docker Machine

b)

Docker Engine

c)

Docker Runtime

d)

Docker Registry

e)

Docker Daemon

2.

You are trying to push an image to Dockerhub however unable to do so. Which would not be a possible reason?

a)

You are not logged in to Docker. (use "docker login" command)

b)

Network connectivity between your docker host and docker Hub

c)

Your image is not correctly tagged as per Docker recommendations

d)

You do not have an account on Docker Hub

e)

You should use Docker Swarm or Kubernetes orchestration engines to push images to Docker registry

3.

You need to create a Docker container based on nginx image and need to root prompt of the container. Which command would help you achieve it?

a)

docker run -it nginx /bin/bash

b)

docker container run -it nginx

c)

docker container run -d nginx

d)

docker container run -itd --name=web nginx

e)

docker exec -it nginx:latest /bin/bash

4.

Which one of the following is not a command under "image" management commands for Docker?

a)

build

b)

pull

c)

inspect

d)

pause

e)

rm

5.

Which of the following Network interface gets created when you install Docker runtime on Docker host?

a)

Docker1

b)

Docker0

c)

eth0

d)

eth1

6.

Which of the following is not part of Kubernetes Worker nodes?

a)

Kube Proxy

b)

Kubelet

c)

Kube-scheduler

d)

Container Runtime

7.

Which language is supported for writing Kubernetes object definitions?

a)

JSON

b)

Kubernetes DSL

c)

YAML

d)

Python

8.

What is kube-apiserver?

a)

Consistent and highly-available key value store used as Kubernetes' backing store for all cluster data.

b)

Control plane component that watches for newly created Pods with no assigned node, and selects a node for them to run on.

c)

Component of the Kubernetes control plane that exposes the Kubernetes API. The API server acts as the front end for the Kubernetes control plane.

d)

An agent that runs on each node in the cluster. It makes sure that containers are running in a Pod.

9.

Which of the following is not a recommended Dockerfile Directive?

a)

FROM

b)

COPY

c)

MAINTAINER

d)

LABEL

e)

EXPOSE

10.

Which of the following is/are valid docker commands which will bind ports on container to the ports on the host on which it is running?

a)

docker container run -P <imagename>

b)

docker container run -P 8080:80 <imagename>

c)

docker container run -p <imagename>

d)

docker container run -p 8080:80 <imagename>