CKAD Kubernetes Application Observability Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. True or False: A failed readiness probe causes the pod to be restarted.

Explanation

A readiness probe determines whether a container is ready to receive traffic. When it fails, Kubernetes marks the pod as not ready and excludes it from service endpoints, but does not restart the container on its own. Restarts are generally triggered by a failed liveness probe or by the container process exiting.

Submit
Please wait...
About This Quiz
CKAD Kubernetes Application Observability Quiz - Quiz

This quiz evaluates your knowledge of Kubernetes application observability practices essential for CKAD certification. It covers logging, monitoring, debugging, and troubleshooting techniques to ensure applications run reliably in production. Master observability patterns to identify issues, optimize performance, and maintain healthy containerized workloads.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. True or False: A probe can be configured to use both HTTP and TCP socket checks simultaneously.

Explanation

A single probe uses one check method at a time, such as an HTTP request or a TCP socket connection. It cannot combine both checks simultaneously. If both conditions need monitoring, configure separate probes or use an application-level health endpoint that verifies both.

Submit

3. Which command shows resource requests and limits for a pod?

Explanation

`kubectl describe pod` displays detailed information about a pod, including each container’s configured CPU and memory requests and limits. `kubectl top pod` reports current resource usage, while `kubectl logs` shows container output; `kubectl get pod -o yaml` also contains configuration, but `describe` presents it in a convenient, readable format.

Submit

4. What does the initialDelaySeconds field in a probe definition do?

Explanation

The initialDelaySeconds field tells Kubernetes how long to wait after a container starts before beginning its liveness or readiness probe checks. This gives the application time to initialize and become available, preventing premature probe failures during startup. It does not control the time limit for each probe or the spacing between subsequent checks.

Submit

5. True or False: kubectl attach connects to a running container's stdin and stdout.

Explanation

`kubectl attach` connects your terminal to the standard input and output streams of a container that is already running in a pod. This lets you interact with the container and view its output, provided the relevant streams are available.

Submit

6. Which field specifies how often a probe should run?

Explanation

In Kubernetes, `periodSeconds` sets the interval between consecutive health-probe checks, specifying how often the kubelet runs a probe. It is distinct from settings that control when probing first begins or how long a probe may take.

Submit

7. How do you view logs from all containers in a multi-container pod?

Explanation

Use `kubectl logs --all-containers=true` to display logs from every container in the pod, rather than specifying a single container with `-c`. Include the pod name in the command, for example: `kubectl logs --all-containers=true`.

Submit

8. True or False: Liveness probes prevent unhealthy pods from receiving traffic.

Explanation

False. Liveness probes check whether a container is still functioning and can trigger a restart if it fails. Readiness probes determine whether a pod should receive traffic; an unready pod is removed from service endpoints.

Submit

9. What probe handler type uses an HTTP GET request to verify container health?

Explanation

The `httpGet` probe sends an HTTP GET request to a specified endpoint in the container. The response indicates whether the application is healthy and ready to serve requests.

Submit

10. Which command retrieves events for a specific namespace?

Explanation

`kubectl get events -n ` lists events from the specified namespace. Replace `` with the namespace name; for example, `kubectl get events -n staging`. The other commands do not retrieve namespace-scoped events.

Submit

11. Which kubectl command displays container logs for troubleshooting an application pod?

Explanation

Use `kubectl logs ` to view a pod’s container output, which helps identify errors and troubleshoot application issues. For pods with multiple containers, specify the container with `-c `.

Submit

12. What does kubectl logs -f do?

Explanation

The `-f` flag enables follow mode, so `kubectl logs -f` continues displaying new log output as it is written, similar to `tail -f`. It is useful for monitoring a pod’s activity in real time.

Submit

13. Which probe type allows time for an application to start up?

Explanation

A startup probe is designed for applications that need extra time to initialize. Kubernetes waits for it to succeed before starting liveness and readiness checks, preventing a slow-starting application from being restarted prematurely or marked unhealthy before it is ready.

Submit

14. How can you execute commands inside a running container for debugging?

Explanation

`kubectl exec` runs a command inside an existing pod. Use `-it` to attach an interactive terminal, and `-- /bin/sh` to start a shell inside the container. Replace the blank with the pod name; for a pod with multiple containers, specify the target container with `-c`.

Submit

15. What is the function of kubectl describe pod in debugging?

Explanation

`kubectl describe pod` displays detailed information about a pod, including its current status, conditions, configuration, and recent events. This helps identify issues such as scheduling failures, image-pull errors, or container restarts during debugging.

Submit

16. Which field in a Pod specification defines the liveness probe?

Explanation

A liveness probe is configured for an individual container, so it belongs under `spec.containers[]` in the Pod specification. The `livenessProbe` settings tell Kubernetes how to check whether that container is healthy and when to restart it if the check fails.

Submit

17. What does the kubectl top command display?

Explanation

`kubectl top` displays current CPU and memory usage for Kubernetes nodes or pods. It helps identify resource consumption and monitor workloads, provided the cluster has a metrics server or another supported metrics source.

Submit

18. How do you view logs from a previous container instance in a pod?

Explanation

Use `kubectl logs --previous` to view logs from the pod’s most recently terminated container instance. This is useful when a container has restarted and you need to diagnose what happened before the restart.

Submit

19. Which probe type checks if an application is ready to accept requests?

Explanation

A readiness probe determines whether an application is ready to accept traffic. If it fails, the system avoids routing requests to the application until it becomes ready again.

Submit

20. What is the purpose of a liveness probe in Kubernetes?

Explanation

A liveness probe checks whether a container is still functioning. If it fails repeatedly, Kubernetes restarts the container to help it recover from an unresponsive or stuck state.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
True or False: A failed readiness probe causes the pod to be...
True or False: A probe can be configured to use both HTTP and TCP...
Which command shows resource requests and limits for a pod?
What does the initialDelaySeconds field in a probe definition do?
True or False: kubectl attach connects to a running container's stdin...
Which field specifies how often a probe should run?
How do you view logs from all containers in a multi-container pod?
True or False: Liveness probes prevent unhealthy pods from receiving...
What probe handler type uses an HTTP GET request to verify container...
Which command retrieves events for a specific namespace?
Which kubectl command displays container logs for troubleshooting an...
What does kubectl logs -f do?
Which probe type allows time for an application to start up?
How can you execute commands inside a running container for debugging?
What is the function of kubectl describe pod in debugging?
Which field in a Pod specification defines the liveness probe?
What does the kubectl top command display?
How do you view logs from a previous container instance in a pod?
Which probe type checks if an application is ready to accept requests?
What is the purpose of a liveness probe in Kubernetes?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!