Latihan Docker dan Kubernetes

Latihan 80 soal DevOps yang mencakup image Docker, kontainer, volume, jaringan, Compose, serta workload, layanan, penyimpanan, dan pemecahan masalah Kubernetes.

Tingkat: Docker & Kubernetes Kesulitan: intermediate 80 soal 50 mnt
Baca setiap soal Docker atau Kubernetes, pilih atau ketik jawaban Anda, lalu periksa penjelasannya.
Hari beruntun: 0 hari Tersimpan hanya di perangkat ini
Kemajuan 0 / 80
Soal 1

What does a Docker image contain?

Pilih jawaban
Soal 2

Which Dockerfile instruction sets the base image?

Pilih jawaban
Soal 3

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

Pilih jawaban
Soal 4

Which command builds an image from a Dockerfile?

Pilih jawaban
Soal 5

What does the CMD instruction define?

Pilih jawaban
Soal 6

What does the ENTRYPOINT instruction define?

Pilih jawaban
Soal 7

What is a Dockerfile?

Pilih jawaban
Soal 8

What is a Docker container?

Pilih jawaban
Soal 9

Which command lists running containers?

Pilih jawaban
Soal 10

Which command starts a container from an image?

Pilih jawaban
Soal 11

What does docker pull do?

Pilih jawaban
Soal 12

What is Docker Hub?

Pilih jawaban
Soal 13

Why does Docker use image layers?

Pilih jawaban
Soal 14

What is a Docker volume used for?

Pilih jawaban
Soal 15

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

Pilih jawaban
Soal 16

What is a bind mount?

Pilih jawaban
Soal 17

What is a named volume?

Pilih jawaban
Soal 18

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

Pilih jawaban
Soal 19

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

Pilih jawaban
Soal 20

What is Docker Compose?

Pilih jawaban
Soal 21

Which file is the default Docker Compose file?

Pilih jawaban
Soal 22

What does docker compose up do?

Pilih jawaban
Soal 23

What is a service in Docker Compose?

Pilih jawaban
Soal 24

Which Compose key specifies the image to use?

Pilih jawaban
Soal 25

Which Compose key maps host ports to container ports?

Pilih jawaban
Soal 26

What does docker exec do?

Pilih jawaban
Soal 27

Which command shows logs from a container?

Pilih jawaban
Soal 28

What is a container registry?

Pilih jawaban
Soal 29

Which command tags an image?

Pilih jawaban
Soal 30

Which command uploads an image to a registry?

Pilih jawaban
Soal 31

What is a Pod in Kubernetes?

Pilih jawaban
Soal 32

Which object maintains a desired number of identical pods?

Pilih jawaban
Soal 33

Which controller manages stateless workloads with rolling updates?

Pilih jawaban
Soal 34

Which controller runs one pod on every node?

Pilih jawaban
Soal 35

Which controller runs a task to completion?

Pilih jawaban
Soal 36

Which controller runs scheduled tasks?

Pilih jawaban
Soal 37

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

Pilih jawaban
Soal 38

What does a Kubernetes Service do?

Pilih jawaban
Soal 39

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

Pilih jawaban
Soal 40

What is an Ingress?

Pilih jawaban
Soal 41

What is a ConfigMap?

Pilih jawaban
Soal 42

What is a Secret?

Pilih jawaban
Soal 43

Which command applies a Kubernetes manifest?

Pilih jawaban
Soal 44

Which command lists pods in a cluster?

Pilih jawaban
Soal 45

Which command shows logs from a pod?

Pilih jawaban
Soal 46

What is a namespace in Kubernetes?

Pilih jawaban
Soal 47

Where are CPU and memory limits for a container defined?

Pilih jawaban
Soal 48

What does a liveness probe check?

Pilih jawaban
Soal 49

What does a readiness probe check?

Pilih jawaban
Soal 50

What is a PersistentVolumeClaim?

Pilih jawaban
Soal 51

Which object defines how storage is provisioned in a cluster?

Pilih jawaban
Soal 52

What is kubelet?

Pilih jawaban
Soal 53

Which components form the Kubernetes control plane?

Pilih jawaban
Soal 54

Which component stores the cluster state?

Pilih jawaban
Soal 55

What is a node in Kubernetes?

Pilih jawaban
Soal 56

What does the Horizontal Pod Autoscaler do?

Pilih jawaban
Soal 57

What does kubectl rollout status show?

Pilih jawaban
Soal 58

What is RBAC in Kubernetes?

Pilih jawaban
Soal 59

What is a ServiceAccount?

Pilih jawaban
Soal 60

What does an image pull policy control?

Pilih jawaban
Soal 61

Which of the following are Kubernetes workload controllers?

Pilih jawaban
Soal 62

Which fields commonly appear in a Service manifest?

Pilih jawaban
Soal 63

Which Docker commands manage images?

Pilih jawaban
Soal 64

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

Pilih jawaban
Soal 65

Which components are part of the Kubernetes control plane?

Pilih jawaban
Soal 66

Which commands help debug a failing pod?

Pilih jawaban
Soal 67

Which probes can be defined for a container?

Pilih jawaban
Soal 68

Which are valid Kubernetes Service types?

Pilih jawaban
Soal 69

Type the Docker command that lists running containers.

Soal 70

Type the kubectl command that applies a manifest file.

Soal 71

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

Soal 72

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

Soal 73

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

Soal 74

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

Soal 75

Match each Docker command to what it does.

Soal 76

Match each Kubernetes object to its purpose.

Soal 77

Match each Dockerfile instruction to its purpose.

Soal 78

Match each Kubernetes object to its role.

Soal 79

Match each kubectl command to what it does.

Soal 80

Match each storage concept to its definition.