I have the following doubts regarding certain scenarios or questions I may encounter in the CKA exam and would appreciate some clarifications prior to taking the exam:
##########
Question 1
##########
In some mock exam questions, the PersistentVolume (PV) was unbound from the PersistentVolumeClaim (PVC) because the PVC was requesting more storage than the PV could provide. In that case, what should be done? Should the PVC be deleted and recreated with a smaller storage request to fit within the PV's available storage, or should the PV be edited to match the PVC's request? If we edit the PV and set its ReclaimPolicy to Retain, will the existing data be lost? Additionally, if the PV is deleted and the storage is using hostPath, will the data be retained, given that the hostPath folder path is not deleted? Which method should be followed in such a situation? Also, could you please assist with the correct method for resizing a PVC?
##########
Question 2
##########
In Question 13 of CKA Mock Exam 4, the task is to restore an etcd backup stored at the path /opt/cluster1_backup_to_restore.db on the cluster1-controlplane node. The question specifies using /root/default.etcd as the --data-dir and restoring it on the same cluster1-controlplane node.
Should we only restore the snapshot to the --data-dir location as mentioned in the question, or should we follow the full procedure, which involves changing the data-dir location in the etcd manifest and restarting the kubelet? There is some confusion in this question because the evaluation seems to only check whether the snapshot is restored to the specified --data-dir location. Does the term "restore" here refer to the full process, which includes changing the data-dir in the etcd manifest and restarting the kubelet? Please clarify.
##########
Question 3
##########
Is there a preferred order for specifying containers in a multi-container pod manifest? Specifically, should the main container always come first, followed by the sidecar container, or does the order not matter?
##########
Question 4
##########
Do we need to know the specific container images that we should use for testing connectivity from a pod, equipped with tools like curl, wget, nslookup, and netcat? Should we be familiar with these images in advance, or will the question provide the necessary images for testing pod connectivity to other pods or services for troubleshooting?