In this blog we discuss how to effectively manage your time during the Kubernetes Certification Exams.
The Kubernetes certification exams are practical and consist of 19 (CKAD)to 24(CKA) questions. And you have 2 Hour (CKAD) / 3 Hours (CKAD) to solve these questions. The questions are scenario based and you are to complete the required tasks in the given time. Since the exams are practical, it is highly unlikely that you will get to solve all the tasks in the given time. So it is important to manage your time effectively to attempt and solve enough questions to clear the exam. In this blog we will look at different techniques to manage time during the exam.
Attempt All Questions
During the exam, you are presented with a set of questions. Some of which may be very easy, some that makes you think a little bit, and some that you have no clue about, hopefully not too many of that. And they are not there in any particular order.
You may have easy or tough questions in the beginning or towards the end. Now you don’t have to get all of it right. You only need to solve enough to gain the minimum required percentage to pass the exam. So it is very important to attempt all of the questions. You don’t want to get stuck in any of the early tough questions, and not have enough time to attempt the easy ones that come after.
You have the option to attempt the questions in any order you like. So you could skip the tough ones and chose to attempt all the easy ones first. Once you are done, if you still have time, you can go back and attempt the ones you skipped.
Don’t get stuck!
The second tip is not get stuck on any question. Even for a simple one. For example you are attempting to solve a question that looks simple. You know what you are doing, so you make an attempt. The first time you try to execute your work, it fails.
You read the error message and realize that you had made a mistake, like a typo. So you go back and fix it and run it again.
This time you get an error message, but you are not able to make any sense out of it. Even though that was an easy question, and you knew you could do it, if you are not able to make any sense out of the error message, don’t spend any more time troubleshooting or debugging that error. Mark that question for review later, skip it and move on to the next.
Now, I KNOW that urge to troubleshoot and fix issues. But this is not the time for it. Leave it to the end and do all the troubleshooting you want after you have attempted all the questions.
Be good with YAML
The third tip, is to be really good with YAML. You must spend enough time practicing your definition files in advance. If, for each question, you are having to go through each line of your YAML file and fix the indentation errors, you are not going to be able to make it through all questions. Your YAML files don’t have to look pretty. Because nobody is going to look at them. I am guessing that the work is evaluated automatically, so only the end result is evaluated and not how pretty your YAML files are.
So even if your file looks like this one on the right, where as it should have looked like the one on the left, it’s still fine as long as the structure of the file is correct. And that you have the right information in the file and are able to create the required kubernetes object using the file. For that you need to get your YAML basics right. If you are a beginner, check out the coding exercises at KodeKloud that helps you practice and get good with YAML:
Use the link below to access the YAML practice exercises right in your brows:
Use aliases and shortcuts
Finally use aliases or shortcuts to get things done quickly. These can save you few seconds on each command, ultimately accumulating to few minutes towards the end.
po for PODs
rs for ReplicaSets
deploy for Deployments
svc for Services
ns for Namespaces
netpol for Network policies
pv for Persistent Volumes
pvc for PersistentVolumeClaims
sa for service accounts
Consider also using imperative commands if possible to save you time instead of building the YAML definition files.
For example, if you are asked to create a deployment named
nginx image use the below command:
kubectl run nginx image=nginx
However, note that the same does not work for pod. If you are asked to create a pod with the name
nginx do not use the above command. Even though the command creates a pod with the nginx image, it does not name the pod
nginx . It names it
nginx-<postfix> . I am guessing the answers are auto-validated, so your answer may be marked wrong in this case. Similarly below are some examples of imperative management using the
kubectl create command:
clusterrole Create a ClusterRole.
clusterrolebinding Create a ClusterRoleBinding
configmap Create a configmap
deployment Create a deployment with the specified name.
job Create a job with the specified name.
namespace Create a namespace with the specified name
poddisruptionbudget Create a pod disruption budget
priorityclass Create a priorityclass with the
quota Create a quota with the specified name.
role Create a role with single rule.
rolebinding Create a RoleBinding
secret Create a secret using specified subcommand
service Create a service using specified subcommand.
serviceaccount Create a service account
Refer to this link for more on imperative commands: https://kubernetes.io/docs/concepts/overview/object-management-kubectl/imperative-command/
Access the full course for the Certified Kubernetes Application Developer here: https://kodekloud.com/p/kubernetes-certification-course