Kubernetes MCQs – Disaster Recovery and Backup Strategies

21.) Which etcdctl flag sets the data directory for restore?

A) –target-dir
B) –data-dir
C) –output-dir
D) –restore-dir

Answer: Option B

Explanation: This is used to specify the directory to store the restored etcd data.

22.) What should be backed up to recover cluster roles and bindings?

A) Pods
B) ServiceAccounts
C) RBAC objects
D) Endpoints

Answer: Option C

Explanation: Roles and RoleBindings must be backed up to retain access control policies.

23.) What command helps list snapshots in Velero?

A) velero get snapshot
B) velero describe volumes
C) velero backup describe
D) velero get volume-snapshots

Answer: Option D

Explanation: This command lists the volume-level snapshots managed by Velero.

24.) Which of these is a good tool to schedule etcd snapshot backups automatically?

A) CoreDNS
B) kube-apiserver
C) DaemonSet
D) CronJob

Answer: Option D

Explanation: CronJobs help schedule and automate tasks such as backups.

25.) Which type of volume is most likely to support snapshots?

A) hostPath
B) emptyDir
C) AWS EBS
D) configMap

Answer: Option C

Explanation: Block storage like EBS supports snapshot and restore capabilities.

Leave a Reply

Your email address will not be published. Required fields are marked *