CKAD Mock Exam 6 - Q.14

I pass all the exam check but one, specifically the last one:

this is my imperative command:

kubectl get pods -A --sort-by=.status.podIP -o=custom-columns=“POD_NAME:.metadata.name,IP_ADDR:.status.podIP” > /root/pod_ips_ckad02_svcn

Are you sure about the mock exam # (I’m assuming UME CKAD #4) and the question number? This is what I see for Q14:

For this question, please set the context to cluster1 by running:

kubectl config use-context cluster1

We have a sample CRD at /root/ckad10-crd-aecs.yaml which should have the following validations:

  • destinationName, country, and city must be string types.

  • pricePerNight must be an integer between 50 and 5000.

  • durationInDays must be an integer between 1 and 30.

Update the file incorporating the above validations in a namespaced scope.

sorry, fixed the title, it’s the Mock exam 6

This problem is a bit unfair; it evaluates the answer when you click on End Exam. The issue here is that if more pods have been added to the cluster after you created the output, then the output will no longer be valid.

The work-around is to save the command (preferably adding --cluster cluster2 to it) and creating the output again just before you hit End Exam. This will make sure that the output reflects not only the pods that existed when you first encountered the problem, but those that were created later.