Bird
0
0

Which of the following is the correct YAML key to define the API version for a CRD?

easy📝 Configuration Q12 of 15
Kubernetes - Operators and Custom Resources
Which of the following is the correct YAML key to define the API version for a CRD?
Aversion
Bapi_version
CapiVersion
DapiVer
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kubernetes YAML syntax

    Kubernetes uses camelCase keys like apiVersion to specify API versions.
  2. Step 2: Check other options

    version, api_version, and apiVer use incorrect formats not recognized by Kubernetes.
  3. Final Answer:

    apiVersion -> Option C
  4. Quick Check:

    Correct YAML key = apiVersion [OK]
Quick Trick: Use camelCase keys like apiVersion in Kubernetes YAML [OK]
Common Mistakes:
  • Using underscores instead of camelCase
  • Using incomplete or shortened keys
  • Confusing version with apiVersion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes