Docsity

CNCF Certified Kubernetes Application Developer (CKAD) – Observability Basics Exam Pract, Exams of Computer Science

Toggle sidebar
bg1
CNCF Certified Kubernetes Application
Developer (CKAD) – Observability Basics
Exam Practice Questions And Correct
Answers (Verified Answers) Plus
Rationales 2026 Q&A | Instant
Download Pdf
1. What is the primary source of logs in a Kubernetes container?
A. etcd database
B. Container stdout and stderr
C. Kubernetes API server logs
D. kubelet logs
Correct Answer: B. Container stdout and stderr
Rationale: Kubernetes captures container logs primarily from
standard output and standard error streams.
2. Which command is used to view logs of a running pod?
A. kubectl describe pod
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21

Partial preview of the text

Download CNCF Certified Kubernetes Application Developer (CKAD) – Observability Basics Exam Pract and more Exams Computer Science in PDF only on Docsity!

CNCF Certified Kubernetes Application

Developer (CKAD) – Observability Basics

Exam Practice Questions And Correct

Answers (Verified Answers) Plus

Rationales 2026 Q&A | Instant

Download Pdf

  1. What is the primary source of logs in a Kubernetes container? A. etcd database B. Container stdout and stderr C. Kubernetes API server logs D. kubelet logs Correct Answer: B. Container stdout and stderr Rationale: Kubernetes captures container logs primarily from standard output and standard error streams.
  2. Which command is used to view logs of a running pod? A. kubectl describe pod

B. kubectl logs C. kubectl get events D. kubectl inspect logs Correct Answer: B. kubectl logs Rationale: kubectl logs retrieves logs from a container in a pod.

  1. What does the liveness probe determine? A. If a pod is ready to serve traffic B. If a container is running and healthy C. If a service is exposed externally D. If a node is available Correct Answer: B. If a container is running and healthy Rationale: Liveness probes detect whether a container is alive; failure triggers restart.
  2. What does a readiness probe indicate? A. Container startup success only B. Whether a container is ready to receive traffic C. Node health D. Disk usage Correct Answer: B. Whether a container is ready to receive traffic Rationale: Readiness probes control whether a pod is included in service endpoints.
  3. Which probe is used to restart a failing container? A. Startup probe

B. readinessProbe C. startupProbe D. executionProbe Correct Answer: D. executionProbe Rationale: executionProbe is not a Kubernetes probe type; exec is a handler option.

  1. Which probe type is best for slow-starting applications? A. readinessProbe B. livenessProbe C. startupProbe D. healthProbe Correct Answer: C. startupProbe Rationale: startupProbe allows extra time before liveness checks begin.
  2. What happens when a readiness probe fails? A. Pod is restarted B. Pod is removed from service endpoints C. Node is drained D. Container is deleted Correct Answer: B. Pod is removed from service endpoints Rationale: Failed readiness prevents traffic routing to the pod.
  3. Which command shows cluster-wide events? A. kubectl get logs

B. kubectl get events C. kubectl describe cluster D. kubectl logs events Correct Answer: B. kubectl get events Rationale: This command lists Kubernetes system events.

  1. Where are Kubernetes events stored? A. etcd B. Container filesystem C. Pod logs D. API server cache only Correct Answer: A. etcd Rationale: Events are stored in etcd as cluster state objects.
  2. Which probe uses HTTP requests to check container health? A. tcpSocket B. httpGet C. exec D. grpcCheck Correct Answer: B. httpGet Rationale: httpGet probe performs HTTP requests to endpoints.
  3. Which probe executes a command inside a container? A. httpGet B. exec C. tcpSocket

C. stderr only D. kube-log stream Correct Answer: B. stdout Rationale: Applications should write logs to stdout/stderr for Kubernetes capture.

  1. What is the purpose of the startupProbe? A. Replace readinessProbe B. Delay liveness checks during startup C. Monitor network traffic D. Restart failed nodes Correct Answer: B. Delay liveness checks during startup Rationale: startupProbe ensures apps have time to initialize before health checks.
  2. Which field defines a TCP health check? A. tcpSocket B. tcpCheck C. socketProbe D. portCheck Correct Answer: A. tcpSocket Rationale: tcpSocket probe checks if a TCP connection can be established.
  3. What does kubectl logs - f do? A. Deletes logs

B. Streams logs in real time C. Shows events D. Filters pods Correct Answer: B. Streams logs in real time Rationale: The - f flag follows log output continuously.

  1. Which component records container logs? A. kube-apiserver B. kubelet C. kube-scheduler D. etcd Correct Answer: B. kubelet Rationale: kubelet is responsible for collecting and exposing container logs.
  2. What is a key benefit of readiness probes? A. Increase CPU usage B. Prevent traffic to unready pods C. Restart nodes D. Increase storage Correct Answer: B. Prevent traffic to unready pods Rationale: Readiness ensures only healthy pods receive traffic.
  3. Which probe failure causes a restart? A. readinessProbe B. livenessProbe

D. Service is disabled Correct Answer: B. Container is restarted Rationale: Kubernetes restarts containers failing liveness checks.

  1. Which probe is NOT executed until startupProbe succeeds? A. readinessProbe B. livenessProbe C. execProbe D. httpProbe Correct Answer: B. livenessProbe Rationale: startupProbe gates liveness checks until success.
  2. Which command shows container logs in a specific pod? A. kubectl logs B. kubectl get logs C. kubectl describe logs D. kubectl show logs **Correct Answer: A. kubectl logs ** Rationale: kubectl logs targets a specific pod directly.
  3. Which field defines readiness checks in YAML? A. readiness B. readinessProbe C. readyCheck D. healthReady

Correct Answer: B. readinessProbe Rationale: readinessProbe is the correct Kubernetes field.

  1. What is the main purpose of observability in Kubernetes? A. Increase storage B. Understand system behavior C. Reduce pods D. Manage namespaces Correct Answer: B. Understand system behavior Rationale: Observability helps understand and debug system behavior.
  2. Which probe type uses command execution inside container? A. httpGet B. tcpSocket C. exec D. curlProbe Correct Answer: C. exec Rationale: exec runs a command inside the container.
  3. What does a failing readiness probe cause? A. Restart of pod B. Removal from service endpoints C. Node crash D. Image pull

Correct Answer: C. Restart container Rationale: Only liveness probes trigger restarts.

  1. Which probe is best for checking database connectivity? A. readinessProbe B. livenessProbe C. startupProbe D. nodeProbe Correct Answer: A. readinessProbe Rationale: readiness ensures external dependency availability.
  2. What is kubectl get events useful for? A. Viewing logs B. Debugging cluster issues C. Installing pods D. Scaling deployments Correct Answer: B. Debugging cluster issues Rationale: Events help diagnose cluster behavior.
  3. Which probe field defines HTTP endpoint checks? A. httpGet B. httpProbe C. webCheck D. urlProbe Correct Answer: A. httpGet Rationale: httpGet is the correct Kubernetes field.
  1. What is a key characteristic of stdout logging in Kubernetes? A. Requires external agent B. Automatically collected by kubelet C. Stored in etcd only D. Disabled by default Correct Answer: B. Automatically collected by kubelet Rationale: kubelet captures stdout/stderr automatically.
  2. What does a container restart indicate in observability? A. Successful deployment B. Liveness probe failure C. Node upgrade D. Service update Correct Answer: B. Liveness probe failure Rationale: Restarts often indicate failing liveness checks.
  3. Which command shows pod details including events? A. kubectl logs B. kubectl describe pod C. kubectl get logs D. kubectl inspect pod Correct Answer: B. kubectl describe pod Rationale: describe shows events and status.
  4. Which probe type is run before container starts receiving traffic? A. readinessProbe

D. Node reboot Correct Answer: B. Container restart Rationale: Liveness failure triggers restart.

  1. Which probe is most appropriate for temporary dependency failures? A. livenessProbe B. readinessProbe C. startupProbe D. nodeProbe Correct Answer: B. readinessProbe Rationale: readiness handles temporary unavailability gracefully.
  2. Which component exposes logs via kubectl logs? A. kube-apiserver B. kubelet C. etcd D. scheduler Correct Answer: B. kubelet Rationale: kubelet provides log access to kubectl.
  3. What is the effect of readiness probe success? A. Pod restarts B. Pod receives traffic C. Node scales D. Container rebuilds

Correct Answer: B. Pod receives traffic Rationale: Successful readiness includes pod in service endpoints.

  1. Which probe is ignored after successful startupProbe completion? A. readinessProbe B. livenessProbe initial delay C. httpGet D. execProbe Correct Answer: B. livenessProbe initial delay Rationale: startupProbe delays liveness checks until success.
  2. What is the primary goal of Kubernetes observability? A. Increase cluster size B. Monitor, debug, and understand system behavior C. Replace CI/CD D. Eliminate logs Correct Answer: B. Monitor, debug, and understand system behavior Rationale: Observability enables insight into system health and behavior.
  3. What is the main purpose of container logs in Kubernetes? A. Store cluster configuration B. Debug and monitor application behavior C. Manage network routing D. Scale deployments

C. Node failure D. Image pull error Correct Answer: B. Pod should not receive traffic Rationale: Readiness failure removes pod from service endpoints.

  1. Which Kubernetes component handles probe execution? A. kube-scheduler B. kubelet C. etcd D. kube-controller-manager Correct Answer: B. kubelet Rationale: kubelet runs health checks (probes) on containers.
  2. What type of data is stored in Kubernetes events? A. Application logs B. Cluster state changes C. Persistent volume data D. Container images Correct Answer: B. Cluster state changes Rationale: Events record state changes and system activities.
  3. Which probe checks if a TCP port is open? A. httpGet B. exec C. tcpSocket D. socketCheck

Correct Answer: C. tcpSocket Rationale: tcpSocket verifies if a port is reachable.

  1. What is the effect of kubectl logs without flags? A. Shows cluster logs B. Shows container stdout logs C. Shows node logs D. Shows event logs Correct Answer: B. Shows container stdout logs Rationale: Default behavior shows stdout logs of the primary container.
  2. Which observability signal is NOT native to Kubernetes? A. Logs B. Metrics C. Events D. Source code tracing built-in Correct Answer: D. Source code tracing built-in Rationale: Kubernetes does not natively provide tracing.
  3. What does a liveness probe failure cause? A. Pod restart B. Traffic reroute C. Node scaling D. Service deletion