Bird
0
0

What happens immediately after executing etcdctl snapshot restore backup.db --data-dir restored-etcd?

medium📝 Command Output Q5 of 15
Kubernetes - Production Best Practices
What happens immediately after executing etcdctl snapshot restore backup.db --data-dir restored-etcd?
AThe current etcd server restarts automatically with restored data
BA new etcd data directory is created with restored data from the snapshot
CThe snapshot file is deleted after restoration
DThe etcd cluster configuration is updated automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand the restore command

    The command etcdctl snapshot restore extracts snapshot data into a new data directory specified by --data-dir.
  2. Step 2: Effect on running etcd server

    This command does not restart or affect the running etcd server automatically; manual steps are needed to start etcd with restored data.
  3. Final Answer:

    A new etcd data directory is created with restored data from the snapshot -> Option B
  4. Quick Check:

    Restore creates data dir, does not auto-restart etcd [OK]
Quick Trick: Restore creates data dir; manual etcd restart needed [OK]
Common Mistakes:
  • Assuming etcd restarts automatically after restore
  • Expecting snapshot file to be deleted
  • Believing cluster config updates automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes