Practice Exam for Certified Kubernetes Application Developer (CKAD) Certification

This post gives you five free practice questions for the CNCF Certified Kubernetes Application Developer (CKAD) exam. These are excerpted from the upgraded package of my book for web application developers getting their Kubernetes certification. While not actual questions from the exam, these questions are of a similar style and content to questions from the real exam.

The upgraded package of my book contains a realistic three hour, thirty question practice exam with complete solutions. If you’re preparing to get your CKAD certification, I highly recommend purchasing this. (Many readers’ employers will cover the purchase cost.)

This premium exam contains more realistic, more challenging questions and solutions that will test your ability to work in an existing Kubernetes cluster under time constraints.

Question 1

Create a namespace called ggckad-s0 in your cluster.
Run the following pods in this namespace.

  1. A pod called pod-a with a single container running the kubegoldenguide/simple-http-server image
  2. A pod called pod-b that has one container running the kubegoldenguide/alpine-spin:1.0.0 image, and one container running nginx:1.7.9
Write down the output of kubectl get pods for the ggckad-s0 namespace.

Question 2

All operations in this question should be performed in the ggckad-s2 namespace.
Create a ConfigMap called app-config that contains the following two entries:

Run a pod called question-two-pod with a single container running the kubegoldenguide/alpine-spin:1.0.0 image, and expose these configuration settings as environment variables inside the container.

Question 3

All operations in this question should be performed in the ggckad-s2 namespace. Create a pod that has two containers. Both containers should run the kubegoldenguide/alpine-spin:1.0.0 image. The first container should run as user ID 1000, and the second container with user ID 2000. Both containers should use file system group ID 3000.

Question 4

All operations in this question should be performed in the ggckad-s4 namespace. This question will require you to create a pod that runs the image kubegoldenguide/question-thirteen. This image is in the main Docker repository at hub.docker.com.

This image is a web server that has a health endpoint served at '/health'. The web server listens on port 8000. (It runs Python’s SimpleHTTPServer.) It returns a 200 status code response when the application is healthy. The application typically takes sixty seconds to start.

Create a pod called question-13-pod to run this application, making sure to define liveness and readiness probes that use this health endpoint.

Question 5

All operations in this question should be performed in the ggckad-s5 namespace. Create a file called question-5.yaml that declares a deployment in the ggckad-s5 namespace, with six replicas running the nginx:1.7.9 image.

Each pod should have the label app=revproxy. The deployment should have the label client=user. Configure the deployment so that when the deployment is updated, the existing pods are killed off before new pods are created to replace them.



★ ★ ★
Get the premium course to receive all 30 CKAD practice exam questions plus complete solutions!
Get Course

Meet the Author

Matthew Palmer is a software developer and author. He’s created popular desktop apps, scaled SaaS web services, and taught Computer Science students at the University of New South Wales.

Contact

Email: [email protected]

Email List: Sign Up

Twitter: @_matthewpalmer

Github: matthewpalmer