Published January 2, 2024
A couple of months back, I was searching for tips on how to prepare for and pass the CKA (Certified Kubernetes Administrator) certification. I have looked through various materials, read quite a few discussions on this topic, and have chosen my training path. As a result, I was able to pass this exam on the first try. Now, I want to give back to the community of non-stop learners who have set their eyes on one of the "most wanted" certifications in the DevOps landscape.
Available Kubernetes Certification Programs
Kubernetes (K8s) is the most widely used open-source container orchestration platform on the market. Originally developed at Google, it is currently hosted by the Cloud Native Computing Foundation (CNCF). Even though Kubernetes has been steadily gaining popularity for almost a decade, there are still not enough specialists with this skill set. More and more people are getting interested in this technology and Kubernetes-savvy engineers are in high demand. CNCF in collaboration with The Linux Foundation has created Kubernetes Certification Programs to meet the needs of the market. What makes these exams so special besides the fact that they cover extremely sought-after knowledge areas, is that they take an entirely hands-on approach. There is no way to randomly guess your way into passing them. Unlike traditional exams, CKA and other Kubernetes certifications focus on validating both theoretical understanding and practical experience in managing Kubernetes clusters effectively.
Depending on their career path, engineers can choose between three kinds of Kubernetes certifications:
- CKA - Certified Kubernetes Administrator.
- Generally, the target audience for this certification is system administrators and operations teams working with K8s. During this test, engineers are given access to the environment where they are faced with real-world scenarios on cluster and storage management as well as network, security, and application troubleshooting.
- CKAD - Certified Kubernetes Application Developer.
- This exam is often considered developer-oriented as it concentrates on application development, deployment, maintenance, and observability on Kubernetes. Engineers looking into this exam should be proficient in designing and building secure applications as well as scaling, configuration, and networking in K8s.
- CKS - Certified Kubernetes Security Specialist.
- To qualify for this certification, specialists need to be competent in a broad range of best practices for securing applications and Kubernetes clusters during build, deployment, and runtime. The tasks in certification are focused on cluster and system hardening as well as runtime security, logging, and monitoring. CKA certification is required to be eligible to enroll in this program.
This post offers guidance on preparation for the CKA exam which is considered the most challenging out of three Kubernetes certifications.
CKA Exam Overview
During the two-hour session, exam takers need to solve 17 tasks with varying levels of difficulty. These scenarios are weighted according to their complexity (1%, 4%, 8%, etc), and a total score of at least 66% is needed to pass. The work is performed on live clusters in the terminal window and access to Kubernetes documentation is available throughout the session. It is an online, proctored exam, meaning that you can take it from the comfort of your home while a proctor watches you to ensure that no extra "help" is used to pass this certification.
The main areas of focus in the CKA certification are:
- Troubleshooting - 30%
- Cluster Architecture, Installation & Configuration - 25%
- Services & Networking - 20%
- Workloads & Scheduling - 15%
- Storage - 10%
After around six weeks of training for two hours a day, I passed the CKA on the first attempt! The great thing about this exam is that a free retake is included in the certification package, which puts the minds of those preparing for it more at ease.
Recommended Training Materials for CKA Certification
Through thorough research, I noticed that the majority of those aiming to pass CKA certification use the following training materials:
[Highly recommended]
- Kubernetes documentation, which is well-written and available for use during the exam. A person getting ready to tackle CKA certification should be very familiar with these pages. It is well known that time is of the essence during this test. You need to know what to do and type it fast. Reading through docs is not an option. You will use documentation to find the needed snippet of code for your case. An exam taker should be aware of what is available in the docs to be able to quickly find it.
- Certified Kubernetes Administrator (CKA) with Practice Tests (on Udemy) is great to get a grasp on theory. Also, as a part of this package, you get free access to Udemy Labs – Certified Kubernetes Administrator with Practice Tests (on KodeKloud) for hands-on labs. The way these two courses are organized is very impressive. You get theory as well as a lab environment, which is extremely easy to navigate. These materials truly serve their purpose of helping learners get practical experience conveniently.
- killer.sh CKA Simulator, which is a well-known CKA simulator containing 25 scenarios and their solutions. It does not get more real than this. The same platform is used during the real test. As a benefit of purchasing a CKA exam, you get free access to two sessions in this simulator. Engineers usually enroll in a CKA certification program (buy the exam seat), get access to these two 36-hour sessions, and after these practice tests are used and lessons are learned, they schedule the real exam. It is recommended to do these two sessions and the exam within one week so that the context is not lost and the mind is sharp and ready. This simulator’s environment will open your eyes to the intricacies of working with the browser provided by the platform hosting the exam. For my convenience, I needed to make some tweaks in both browser and terminal settings to improve my experience and speed.
- The Jsonpath documentation page is worth taking a look at. There is also free training on JSON Path here. This can help to save some time during an exam and it is quite useful overall while working with Kubernetes.
[Recommended, but optional]
- Kubernetes Cheatsheet is often mentioned as a first go-to, but chances are that if you feel comfortable going into the exam, you already know these commands well enough to use them without looking at this page.
- Ultimate Certified Kubernetes Administrator (CKA) Mock Exam Series is a series of 10 practice tests with 20 questions each that are very useful if you want even more practice. Each session lasts for two hours and closely resembles real test scenarios. "Practice makes perfect" as they say and in this case, practice lets you gain a fair amount of experience working on Kubernetes clusters and pass the exam with much less stress.
- Killer Shell CKA from Killercoda is an interactive platform that allows access to practice on Linux and Kubernetes-based environments from the browser. This resource is free but it also offers a plus membership for additional features.
Tips and Tricks to Use uring bernetes Exams
- Use imperative commands as much as possible.
- Using an imperative approach in production is definitely not a best practice. However, it will probably not be possible to pass this certification without using imperative commands for the majority of tasks because of time limitations. There are two ways to access these commands quickly. The first way is to use the cheatsheet mentioned above provided by Kubernetes documentation. The second way is to use
kubectl --help
and get examples from there. I preferred the help command as it gets tricky when you start copying and pasting from a browser into the terminal.
- Set aliases that work for you.
- For me, it made sense to only use
alias k=kubectl
and alias c=clear
. Without any sophisticated aliases like alias kgp="kubectl get pods"
or alias krepl="kubectl replace --force --grace-period=0"
, I was able to solve all of the tasks and had time to review my answers. I know this is quite a subjective matter, so find out which aliases work best for you, use them for practice, and remember to add them to your .bashrc file and source it.
- Bookmark the Linux Foundation support page.
- Just in case you need to quickly open a support request before or during the test when something seems wrong with the environment or you accidentally close an exam window (which happened to me right at the start of the test).
- Avoid getting stuck on a question.
- Read through the questions thoroughly, and if you feel that you know the solution - start working on it. If you are not sure how to solve a scenario, move to the next question. The reason this is often recommended is because our brain is smart enough to work on things in the background. While moving forward with other questions, you are gaining confidence that everything is going fine, and when it is time to get back to the previously hard task, there is a chance that you have come up with a solution already.
- Be very careful about the context of your scenario.
- Make a habit of switching to a new context before each task. This has been mentioned countless times all over the internet as the most common mistake.
- Get familiar with native Linux text editors.
- You will need to use Vi, Vim, or Nano for editing yaml files so it is worth getting used to working effectively with one of them. Knowing a few tricks there can save you some precious time.
Conclusion
Interest in Kubernetes experts is steadily on the rise in today's market. Because of this, there are so many benefits to enrolling in one of the Kubernetes Certification Programs. For experienced engineers, taking these exams can be helpful to certify their knowledge and prove their professional competency. For those who have not yet had a chance to work on production clusters but are very eager to do so, choosing to get Kubernetes certified can help to gain practical experience and showcase their readiness and desire to work with this technology. Also, adding Kubernetes as a skill to your professional profile can be beneficial during a job search.
Even though this certification is not the easiest nut to crack, it is perfectly doable with a consistent approach and a fair bit of practice. The materials listed above should be sufficient to pass the CKA exam on the first attempt.
Good luck to all soon-to-be Certified Kubernetes Administrators!