Google Cloud Certified Associate Cloud Engineer Practice

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

Prepare for the Google Cloud Certified Associate Cloud Engineer Exam with flashcards and multiple choice questions. Each question includes hints and explanations to help you study effectively. Get ready to pass your certification exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


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

  1. -j

  2. -p

  3. -json

  4. -o jsonpath

The correct answer is: -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.