Lesson  in  CKA Mock Exam

Question 12: etcd Version and Snapshot

Check the etcd version and take a snapshot of etcd's data directly on the control-plane node.

You have been tasked to perform the following etcd operations:

  • Run etcd --version and store the output at /opt/course/7/etcd-version
  • Make a snapshot of etcd and save it at /opt/course/7/etcd-snapshot.db
Hint 1

etcdctl snapshot save needs to reach etcd's client port and authenticate with TLS certificates. You don't need to guess the certificate paths — the running etcd static Pod's own manifest on this node spells out exactly which cert/key/CA files it was started with.

Hint 2

Older etcd docs mention setting ETCDCTL_API=3 before every command — on this etcdctl version that's already the only API available, so it's a no-op if you set it, and not required if you don't.