Latihan Docker dan Kubernetes

Latih 80 soalan DevOps merangkumi imej Docker, kontena, volum, rangkaian, Compose, serta workload, perkhidmatan, storan dan penyelesaian masalah Kubernetes.

Tahap: Docker & Kubernetes Kesukaran: intermediate 80 soalan 50 min
Baca setiap soalan Docker atau Kubernetes, pilih atau taip jawapan anda, kemudian semak penerangan.
Hari berturut-turut: 0 hari Disimpan hanya pada peranti ini
Kemajuan 0 / 80
Soalan 1

What does a Docker image contain?

Pilih jawapan
Soalan 2

Which Dockerfile instruction sets the base image?

Pilih jawapan
Soalan 3

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

Pilih jawapan
Soalan 4

Which command builds an image from a Dockerfile?

Pilih jawapan
Soalan 5

What does the CMD instruction define?

Pilih jawapan
Soalan 6

What does the ENTRYPOINT instruction define?

Pilih jawapan
Soalan 7

What is a Dockerfile?

Pilih jawapan
Soalan 8

What is a Docker container?

Pilih jawapan
Soalan 9

Which command lists running containers?

Pilih jawapan
Soalan 10

Which command starts a container from an image?

Pilih jawapan
Soalan 11

What does docker pull do?

Pilih jawapan
Soalan 12

What is Docker Hub?

Pilih jawapan
Soalan 13

Why does Docker use image layers?

Pilih jawapan
Soalan 14

What is a Docker volume used for?

Pilih jawapan
Soalan 15

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

Pilih jawapan
Soalan 16

What is a bind mount?

Pilih jawapan
Soalan 17

What is a named volume?

Pilih jawapan
Soalan 18

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

Pilih jawapan
Soalan 19

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

Pilih jawapan
Soalan 20

What is Docker Compose?

Pilih jawapan
Soalan 21

Which file is the default Docker Compose file?

Pilih jawapan
Soalan 22

What does docker compose up do?

Pilih jawapan
Soalan 23

What is a service in Docker Compose?

Pilih jawapan
Soalan 24

Which Compose key specifies the image to use?

Pilih jawapan
Soalan 25

Which Compose key maps host ports to container ports?

Pilih jawapan
Soalan 26

What does docker exec do?

Pilih jawapan
Soalan 27

Which command shows logs from a container?

Pilih jawapan
Soalan 28

What is a container registry?

Pilih jawapan
Soalan 29

Which command tags an image?

Pilih jawapan
Soalan 30

Which command uploads an image to a registry?

Pilih jawapan
Soalan 31

What is a Pod in Kubernetes?

Pilih jawapan
Soalan 32

Which object maintains a desired number of identical pods?

Pilih jawapan
Soalan 33

Which controller manages stateless workloads with rolling updates?

Pilih jawapan
Soalan 34

Which controller runs one pod on every node?

Pilih jawapan
Soalan 35

Which controller runs a task to completion?

Pilih jawapan
Soalan 36

Which controller runs scheduled tasks?

Pilih jawapan
Soalan 37

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

Pilih jawapan
Soalan 38

What does a Kubernetes Service do?

Pilih jawapan
Soalan 39

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

Pilih jawapan
Soalan 40

What is an Ingress?

Pilih jawapan
Soalan 41

What is a ConfigMap?

Pilih jawapan
Soalan 42

What is a Secret?

Pilih jawapan
Soalan 43

Which command applies a Kubernetes manifest?

Pilih jawapan
Soalan 44

Which command lists pods in a cluster?

Pilih jawapan
Soalan 45

Which command shows logs from a pod?

Pilih jawapan
Soalan 46

What is a namespace in Kubernetes?

Pilih jawapan
Soalan 47

Where are CPU and memory limits for a container defined?

Pilih jawapan
Soalan 48

What does a liveness probe check?

Pilih jawapan
Soalan 49

What does a readiness probe check?

Pilih jawapan
Soalan 50

What is a PersistentVolumeClaim?

Pilih jawapan
Soalan 51

Which object defines how storage is provisioned in a cluster?

Pilih jawapan
Soalan 52

What is kubelet?

Pilih jawapan
Soalan 53

Which components form the Kubernetes control plane?

Pilih jawapan
Soalan 54

Which component stores the cluster state?

Pilih jawapan
Soalan 55

What is a node in Kubernetes?

Pilih jawapan
Soalan 56

What does the Horizontal Pod Autoscaler do?

Pilih jawapan
Soalan 57

What does kubectl rollout status show?

Pilih jawapan
Soalan 58

What is RBAC in Kubernetes?

Pilih jawapan
Soalan 59

What is a ServiceAccount?

Pilih jawapan
Soalan 60

What does an image pull policy control?

Pilih jawapan
Soalan 61

Which of the following are Kubernetes workload controllers?

Pilih jawapan
Soalan 62

Which fields commonly appear in a Service manifest?

Pilih jawapan
Soalan 63

Which Docker commands manage images?

Pilih jawapan
Soalan 64

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

Pilih jawapan
Soalan 65

Which components are part of the Kubernetes control plane?

Pilih jawapan
Soalan 66

Which commands help debug a failing pod?

Pilih jawapan
Soalan 67

Which probes can be defined for a container?

Pilih jawapan
Soalan 68

Which are valid Kubernetes Service types?

Pilih jawapan
Soalan 69

Type the Docker command that lists running containers.

Soalan 70

Type the kubectl command that applies a manifest file.

Soalan 71

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

Soalan 72

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

Soalan 73

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

Soalan 74

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

Soalan 75

Match each Docker command to what it does.

Soalan 76

Match each Kubernetes object to its purpose.

Soalan 77

Match each Dockerfile instruction to its purpose.

Soalan 78

Match each Kubernetes object to its role.

Soalan 79

Match each kubectl command to what it does.

Soalan 80

Match each storage concept to its definition.