Certified Kubernetes Administrator (CKA) Practice Exam: Part 1

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

This lab provides practice scenarios to help prepare you for the Certified Kubernetes Administrator (CKA) exam. You will be presented with tasks to complete as well as server(s) and/or an existing Kubernetes cluster to complete them in. You will need to use your knowledge of Kubernetes to successfully complete the provided tasks, much like you would on the real CKA exam. Good luck!

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Count the Number of Nodes That Are Ready to Run Normal Workloads

Determine how many nodes in the cluster are ready to run normal workloads (i.e., workloads that do not have any special tolerations).

Output this number to the file /k8s/0001/count.txt.

Retrieve Error Messages from a Container Log

In the backend namespace, check the log for the proc container in the data-handler Pod.

Save the lines which contain the text ERROR to the file /k8s/0002/errors.txt.

Find the Pod with a Label of app=auth in the Web Namespace That Is Utilizing the Most CPU

Before doing this step, please wait a minute or two to give our backend script time to generate CPU load. Determine which Pod in the web namespace with the label app=auth is using the most CPU. Save the name of this Pod to the file /k8s/0003/cpu-pod.txt.

Additional Resources

This question uses the acgk8s cluster. After logging in to the exam server, switch to the correct context with the command kubectl config use-context acgk8s.

Each of the objectives represents a task which you will need to complete using the available cluster and server(s). Read each objective carefully and complete the task specified.

For some objectives, you may need to ssh into other nodes or servers from the exam server. You can do so using the hostname/node name ( i.e., ssh acgk8s-worker1).

Note: You cannot ssh into another node, or use kubectl to connect to the cluster, from any node other than the root node. Once you have completed the necessary tasks on a server, be sure to exit and return to the root node before proceeding.

If you need to assume root privileges on a server, you can do so with sudo -i.

You can run the verification script located at /home/cloud_user/verify.sh at any time to check your work!

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?