Bird
0
0

What will be the output of the command etcdctl snapshot status snapshot.db if the snapshot file exists and is valid?

medium📝 Command Output Q4 of 15
Kubernetes - Production Best Practices
What will be the output of the command etcdctl snapshot status snapshot.db if the snapshot file exists and is valid?
ADisplays snapshot metadata including revision and size
BReturns an error saying file not found
CDeletes the snapshot file
DStarts etcd server with snapshot
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of 'snapshot status'

    This command shows metadata about the snapshot like revision number and file size.
  2. Step 2: Eliminate incorrect outputs

    It does not delete files, start servers, or error if the file exists.
  3. Final Answer:

    Displays snapshot metadata including revision and size -> Option A
  4. Quick Check:

    Snapshot status shows metadata = output A [OK]
Quick Trick: 'snapshot status' shows snapshot details, not errors [OK]
Common Mistakes:
  • Expecting it to delete or modify snapshot
  • Confusing status with restore command
  • Assuming error if file exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes