Kubernetes MCQs – Disaster Recovery and Backup Strategies

Disaster recovery and backup strategies are essential for maintaining high availability and reliability in Kubernetes-based environments. This topic focuses on how Kubernetes handles failures, performs data backups, and restores workloads.

Through these carefully crafted multiple-choice questions (MCQs), learners can gain a strong understanding of best practices, built-in tools, and third-party options for disaster recovery in Kubernetes. These MCQs are especially valuable for those preparing for Kubernetes certifications, interviews, and real-world operational scenarios.

1.) What is the main component responsible for storing the Kubernetes cluster state?

A) etcd
B) kubelet
C) kube-apiserver
D) controller-manager

Answer: Option A

Explanation: etcd is a key-value store that stores all the cluster data and configuration in Kubernetes.

2.) Which command is used to take a snapshot of the etcd database?

A) etcdctl take snapshot
B) etcd snapshot create
C) etcdctl snapshot save
D) kubectl save snapshot

Answer: Option C

Explanation: This command is used to create a backup of the etcd data.

3.) Which of the following is NOT stored in an etcd snapshot?

A) Secrets
B) ConfigMaps
C) Deployments
D) Logs

Answer: Option D

Explanation: Logs are not part of the etcd snapshot; they are handled separately using logging tools.

4.) Which open-source tool is commonly used for Kubernetes backup and restore?

A) Helm
B) Velero
C) Prometheus
D) Istio

Answer: Option B

Explanation: Velero is the de facto standard tool for backing up and restoring Kubernetes resources and volumes.

5.) What must be configured for Velero to store backups in AWS S3?

A) kube-proxy
B) PersistentVolume
C) S3 bucket and IAM credentials
D) kube-dns

Answer: Option C

Explanation: Velero uses object storage like S3 to store backups and requires IAM access to do so.

6.) How do you initiate a backup in Velero?

A) kubectl backup create
B) velero create backup
C) velero backup create
D) kubectl velero backup

Answer: Option C

Explanation: This is the correct CLI command provided by Velero to start a new backup.

7.) What type of resource is used to capture volume snapshots in Kubernetes?

A) VolumeMount
B) VolumeSnapshot
C) ConfigMap
D) Secret

Answer: Option B

Explanation: VolumeSnapshot is a Kubernetes resource used to create snapshots of persistent volumes.

8.) Which plugin must be installed to use volume snapshots in Kubernetes?

A) kube-proxy
B) CoreDNS
C) CSI Driver
D) Helm

Answer: Option C

Explanation: Container Storage Interface (CSI) drivers provide the snapshot and restore functionality for volumes.

9.) What does RTO stand for in disaster recovery?

A) Recovery Time Objective
B) Restore Task Objective
C) Return To Operation
D) Replica Target Option

Answer: Option A

Explanation: RTO defines the maximum acceptable delay to restore services after a failure.

10.) What happens if a backup file is corrupted?

A) Restore will fail
B) Kubernetes will ignore it
C) It gets automatically fixed
D) It will restore with warnings

Answer: Option A

Explanation: A corrupted backup file prevents successful restore operations.

Leave a Reply

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