Google Cloud Certified Associate Cloud Engineer Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 155

Which flag is used with `kubectl` to specify the JSON path of properties in the JSON output?

-j

-p

-json

-o jsonpath

The -j flag stands for "output as json" and is used to get the output as JSON. The -p flag provides the property pattern is used to do partial match with the property name in the output. The -json flag is not a valid flag for `kubectl` and will result in an error. The correct flag to specify the JSON path of properties is -o jsonpath.

Next

Report this question