Preparing for CKA - a question about the questions :)

Hi all. I’ve just finished all CKA modules, and going through the Mock Exams.

If during the exam the question is to output some information using jsonpath, and you do it in some other manner (i.e. custom-columns outputted to json)… is that acceptable or is that a fail on that question? I mean, does the exam check the queries and the commands or does it check the outputted file?

The questions are graded by scripts, and look for text matches. Unless you can create exactly the output that jsonpath creates (which is slightly different from, say, custom-columns), the grader won’t be happy with your answer. If you can match it exactly, I don’t think the grader will know :slight_smile:

Don’t shy away from jsonpath. Knowing how to use it is an absolute must if you want to work with Kubernetes. It is the key to writing automation scripts that interact with a cluster. I use it on a daily basis.

Have a read of this document.

Thank you both for the information.

@Alistair, indeed, it’s more understandable after spending some more time on it.