Study. uk . com
  1. Home
  2. All questions
  3. Question 474

CKA study material · question 474 of 1000

A jsonpath expression must read the key ca.crt from a Secret. What is required?

  1. The key must be base64 decoded first
  2. Keys with dots cannot be read by jsonpath
  3. The dot in the key must be escaped
  4. The expression must use --template instead
Show the answer

Answer: C. The dot in the key must be escaped

A jsonpath key containing a dot has to have that dot escaped in the expression.

Source: kubectl Quick Reference (Kubernetes) — Viewing and finding resources

Challenge yourself on this topic → Study as cards