Bird
0
0

You want to deploy a MongoDB cluster using a Kubernetes operator that supports automatic backups and scaling. Which combination of YAML fields is essential to enable these features correctly?

hard📝 Workflow Q15 of 15
Kubernetes - Operators and Custom Resources
You want to deploy a MongoDB cluster using a Kubernetes operator that supports automatic backups and scaling. Which combination of YAML fields is essential to enable these features correctly?
Aspec: replicas: 3 version: "5.0" backups: enabled: true schedule: "0 1 * * *" autoscaling: enabled: true minReplicas: 2 maxReplicas: 5
Bspec: instances: 3 version: 5 backup: schedule: daily scaling: enabled: yes
Cmetadata: replicas: 3 version: "5.0" backups: enabled: false autoscale: min: 2 max: 5
Dspec: replicas: 1 version: "latest" backup: enabled: true schedule: "@daily" autoscaling: enabled: false
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct field names and types for backups and scaling

    Backups require 'backups' with enabled and schedule fields; autoscaling needs enabled, minReplicas, maxReplicas.
  2. Step 2: Compare options for correctness

    spec: replicas: 3 version: "5.0" backups: enabled: true schedule: "0 1 * * *" autoscaling: enabled: true minReplicas: 2 maxReplicas: 5 uses correct field names, proper YAML structure, and valid values for version and schedule.
  3. Final Answer:

    spec: replicas: 3 version: "5.0" backups: enabled: true schedule: "0 1 * * *" autoscaling: enabled: true minReplicas: 2 maxReplicas: 5 -> Option A
  4. Quick Check:

    Correct fields and values enable features [OK]
Quick Trick: Use exact field names and valid cron schedules [OK]
Common Mistakes:
  • Using 'backup' instead of 'backups'
  • Incorrect autoscaling field names
  • Setting enabled false disables features

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes