Docker 与 Kubernetes 练习

通过 80 道 DevOps 题练习 Docker 镜像、容器、卷、网络、Compose,以及 Kubernetes 工作负载、服务、存储和故障排查。

等级: Docker & Kubernetes 难度: intermediate 80 道题 50 分钟
阅读每道 Docker 或 Kubernetes 题,选择或输入答案,然后查看解析。
连续学习: 0 天 仅保存在此设备
进度 0 / 80
题目 1

What does a Docker image contain?

选择一个答案
题目 2

Which Dockerfile instruction sets the base image?

选择一个答案
题目 3

Which Dockerfile instruction copies files from the build context into the image?

选择一个答案
题目 4

Which command builds an image from a Dockerfile?

选择一个答案
题目 5

What does the CMD instruction define?

选择一个答案
题目 6

What does the ENTRYPOINT instruction define?

选择一个答案
题目 7

What is a Dockerfile?

选择一个答案
题目 8

What is a Docker container?

选择一个答案
题目 9

Which command lists running containers?

选择一个答案
题目 10

Which command starts a container from an image?

选择一个答案
题目 11

What does docker pull do?

选择一个答案
题目 12

What is Docker Hub?

选择一个答案
题目 13

Why does Docker use image layers?

选择一个答案
题目 14

What is a Docker volume used for?

选择一个答案
题目 15

Which flag is commonly used to mount a volume or bind mount?

选择一个答案
题目 16

What is a bind mount?

选择一个答案
题目 17

What is a named volume?

选择一个答案
题目 18

Which Docker network driver creates an isolated network for containers on one host?

选择一个答案
题目 19

Which Docker network driver lets containers use the host network stack directly?

选择一个答案
题目 20

What is Docker Compose?

选择一个答案
题目 21

Which file is the default Docker Compose file?

选择一个答案
题目 22

What does docker compose up do?

选择一个答案
题目 23

What is a service in Docker Compose?

选择一个答案
题目 24

Which Compose key specifies the image to use?

选择一个答案
题目 25

Which Compose key maps host ports to container ports?

选择一个答案
题目 26

What does docker exec do?

选择一个答案
题目 27

Which command shows logs from a container?

选择一个答案
题目 28

What is a container registry?

选择一个答案
题目 29

Which command tags an image?

选择一个答案
题目 30

Which command uploads an image to a registry?

选择一个答案
题目 31

What is a Pod in Kubernetes?

选择一个答案
题目 32

Which object maintains a desired number of identical pods?

选择一个答案
题目 33

Which controller manages stateless workloads with rolling updates?

选择一个答案
题目 34

Which controller runs one pod on every node?

选择一个答案
题目 35

Which controller runs a task to completion?

选择一个答案
题目 36

Which controller runs scheduled tasks?

选择一个答案
题目 37

Which controller is best for stateful applications with stable network identity?

选择一个答案
题目 38

What does a Kubernetes Service do?

选择一个答案
题目 39

Which Service type exposes a service through a cloud load balancer?

选择一个答案
题目 40

What is an Ingress?

选择一个答案
题目 41

What is a ConfigMap?

选择一个答案
题目 42

What is a Secret?

选择一个答案
题目 43

Which command applies a Kubernetes manifest?

选择一个答案
题目 44

Which command lists pods in a cluster?

选择一个答案
题目 45

Which command shows logs from a pod?

选择一个答案
题目 46

What is a namespace in Kubernetes?

选择一个答案
题目 47

Where are CPU and memory limits for a container defined?

选择一个答案
题目 48

What does a liveness probe check?

选择一个答案
题目 49

What does a readiness probe check?

选择一个答案
题目 50

What is a PersistentVolumeClaim?

选择一个答案
题目 51

Which object defines how storage is provisioned in a cluster?

选择一个答案
题目 52

What is kubelet?

选择一个答案
题目 53

Which components form the Kubernetes control plane?

选择一个答案
题目 54

Which component stores the cluster state?

选择一个答案
题目 55

What is a node in Kubernetes?

选择一个答案
题目 56

What does the Horizontal Pod Autoscaler do?

选择一个答案
题目 57

What does kubectl rollout status show?

选择一个答案
题目 58

What is RBAC in Kubernetes?

选择一个答案
题目 59

What is a ServiceAccount?

选择一个答案
题目 60

What does an image pull policy control?

选择一个答案
题目 61

Which of the following are Kubernetes workload controllers?

选择一个答案
题目 62

Which fields commonly appear in a Service manifest?

选择一个答案
题目 63

Which Docker commands manage images?

选择一个答案
题目 64

Which of the following are valid ways to persist data in Docker?

选择一个答案
题目 65

Which components are part of the Kubernetes control plane?

选择一个答案
题目 66

Which commands help debug a failing pod?

选择一个答案
题目 67

Which probes can be defined for a container?

选择一个答案
题目 68

Which are valid Kubernetes Service types?

选择一个答案
题目 69

Type the Docker command that lists running containers.

题目 70

Type the kubectl command that applies a manifest file.

题目 71

Type the kubectl command that shows logs for a pod named web.

题目 72

Type the Docker command used to run a command inside a running container.

题目 73

Type the kubectl command that shows the status of a Deployment rollout.

题目 74

Type the Kubernetes object that provides a stable network name for pods.

题目 75

Match each Docker command to what it does.

题目 76

Match each Kubernetes object to its purpose.

题目 77

Match each Dockerfile instruction to its purpose.

题目 78

Match each Kubernetes object to its role.

题目 79

Match each kubectl command to what it does.

题目 80

Match each storage concept to its definition.