← Tous les quiz publics
Démarrer le quiz (invité ou compte)
Certified Kubernetes Application Developer (CKAD-style) — Practice
par Jude · 14/05/2026 · 210 vues · partages
Practice questions on Kubernetes objects, kubectl, pods, services, deployments, ConfigMaps, and probes — CKAD-style. Original wording.
12
Questions
🇬🇧 English
Langue
Difficile
Difficulté
Les questions du quiz
-
1. Which kubectl command imperatively creates a Deployment named
webfrom imagenginx:1.27?- kubectl run web --image=nginx:1.27
- kubectl create deployment web --image=nginx:1.27
- kubectl apply deployment web nginx:1.27
- kubectl deploy web nginx:1.27
-
2. Which probe determines whether a container should receive traffic from a Service?
- livenessProbe
- readinessProbe
- startupProbe
- shutdownProbe
-
3. What does a
ClusterIPService expose?- A pod on a NodePort
- An internal cluster-only virtual IP that load-balances across Pod replicas
- A public load balancer in the cloud
- An ingress hostname
-
4. How do you mount a ConfigMap named
app-configas files at/etc/configin a Pod?- Use an
envblock referencing the ConfigMap - Add a
volumes:entry withconfigMap: name: app-configand mount it viavolumeMounts - Add it to the image
- It's not possible
- Use an
-
5. Which field on a Pod ensures a container restarts if its main process exits with a non-zero status?
- restartPolicy: Always (the default for Deployments/ReplicaSets)
- shutdownGracePeriod
- preStop hook
- imagePullPolicy: Always
-
6. Which kubectl command shows logs from a previously crashed container in a Pod?
- kubectl logs
- kubectl logs --previous
- kubectl describe pod
- kubectl get events
-
7. How do you scale a Deployment named
apito 5 replicas?- kubectl scale deployment api --replicas=5
- kubectl expand api 5
- kubectl edit deploy api
- kubectl rollout 5
-
8. What is the role of a Kubernetes
Jobresource?- Schedule a CronJob
- Run one or more Pods to completion, retrying on failure
- Manage stateful workloads
- Expose a service to the internet
-
9. Which field limits the maximum CPU a container may use?
- resources.requests.cpu
- resources.limits.cpu
- spec.cpu
- containers.cpu.max
-
10. Which kubectl command shows the rollout history of a Deployment?
- kubectl rollout history deployment/
- kubectl history
- kubectl describe rollout
- kubectl get rollouts
-
11. Which secret type is intended for storing TLS certificates and private keys?
- Opaque
- kubernetes.io/tls
- kubernetes.io/dockerconfigjson
- kubernetes.io/service-account-token
-
12. What does
kubectl apply -f manifest.yamldo thatkubectl create -f manifest.yamldoes not?- Validates YAML
- Performs a declarative update, computing a 3-way merge against the live state
- Creates a new namespace
- Restarts pods