ฝึก Docker และ Kubernetes

ฝึกข้อสอบ DevOps 80 ข้อครอบคลุม Docker image, คอนเทนเนอร์, วอลุ่ม, เครือข่าย, Compose และ Kubernetes workload, บริการ, พื้นที่จัดเก็บ และการแก้ไขปัญหา

ระดับ: 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.