Ckad mock exam 2, ex 19

Exercise 19 asks that we identify kube api-resources that use api_version=storage.k8s.io/v1 and store those into a file.

I can envision confusion on the actual exam with a question like this so I’d love to understand the best way to address it.

I thought the question was specifically and only interested in the
names of the resources.

As such, I provided this list:

student-node ~ ➜  k api-resources | grep -i storage.k8s.io/v1 | awk '{print $1}'
csidrivers
csinodes
csistoragecapacities
storageclasses
volumeattachments

This was marked as incorrect, and the solution seems to indicate
you need to include all the columns in the output (shortnames, apiversion, namespaced, kind)

Based on the wording of the question it didn’t seem to me anything more than the name of the api-resources was needed.

Should I have interpreted a question such as that as requiring the full output from a given command? Would this question have been marked wrong on the actual exam?

Hi @mks310

The question asks to filter the api-resources that use a specific API Group and Version ( storage.k8s.io in this case).
With your command, you are filtering NAMEs of the resources.

k api-resources | grep -i storage.k8s.io/v1 would achieve the desired results for this question which does not talk much about the required format of the output.

If there is anything more specific required in the output, it will be mentioned.