Kubernetes - Production Best PracticesYou want to automate etcd backups daily and keep only the last 7 backups. Which approach is best?AUse a cron job running 'etcdctl snapshot save' and a script to delete backups older than 7 daysBManually run backups and delete old files weeklyCConfigure etcd to auto-backup internally with retentionDUse kubectl to create backups and rely on pod logs for retentionCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify automation methodUsing a cron job to run 'etcdctl snapshot save' automates backups daily.Step 2: Manage retentionA script to delete backups older than 7 days ensures only recent backups are kept.Final Answer:Use a cron job running 'etcdctl snapshot save' and a script to delete backups older than 7 days -> Option AQuick Check:Automate backup + retention = cron job + cleanup script [OK]Quick Trick: Automate with cron and cleanup script for retention [OK]Common Mistakes:Relying on manual backups onlyExpecting etcd to auto-backup with retentionUsing kubectl which doesn't manage etcd snapshots
Master "Production Best Practices" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Advanced Deployment Patterns - Blue-green deployments - Quiz 14medium Advanced Deployment Patterns - Canary deployments - Quiz 5medium Helm Package Manager - Chart templates and values.yaml - Quiz 11easy Helm Package Manager - Installing Helm - Quiz 11easy Monitoring and Logging - Metrics Server installation - Quiz 5medium Monitoring and Logging - Why cluster monitoring matters - Quiz 3easy Monitoring and Logging - Alerting with Prometheus Alertmanager - Quiz 7medium Production Best Practices - Priority classes for critical workloads - Quiz 11easy Production Best Practices - Priority classes for critical workloads - Quiz 5medium Troubleshooting - Event inspection for diagnostics - Quiz 11easy