Bird
0
0

You want to create a CRD for a resource named Gadget that is cluster-scoped and has a plural name gadgets. Which YAML snippet correctly defines this?

hard📝 Workflow Q15 of 15
Kubernetes - Operators and Custom Resources
You want to create a CRD for a resource named Gadget that is cluster-scoped and has a plural name gadgets. Which YAML snippet correctly defines this?
Aspec: group: example.com scope: Cluster names: kind: Gadget plural: gadget
Bspec: group: example.com scope: Namespaced names: kind: Gadget plural: gadgets
Cspec: group: example.com scope: Cluster names: kind: gadget plural: gadget
Dspec: group: example.com scope: Cluster names: kind: Gadget plural: gadgets
Step-by-Step Solution
Solution:
  1. Step 1: Check scope value

    The resource must be cluster-scoped, so scope: Cluster is correct.
  2. Step 2: Verify kind and plural names

    kind should be capitalized as Gadget and plural should be gadgets (plural lowercase).
  3. Step 3: Compare options

    The snippet with scope: Cluster, kind: Gadget, plural: gadgets matches all requirements. Snippets with scope: Namespaced, lowercase kind: gadget, or singular plural: gadget are incorrect.
  4. Final Answer:

    spec: group: example.com scope: Cluster names: kind: Gadget plural: gadgets -> Option D
  5. Quick Check:

    Cluster scope + correct kind/plural = spec: group: example.com scope: Cluster names: kind: Gadget plural: gadgets [OK]
Quick Trick: Cluster scope means scope: Cluster; kind capitalized, plural lowercase [OK]
Common Mistakes:
  • Using Namespaced instead of Cluster scope
  • Incorrect casing for kind or plural
  • Using singular for plural name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes