Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium

Question 53

You are working on a Kubernetes cluster that hosts a logging system. The logging system uses Persistent Volumes (PV) to store logs, which must be retained even if the logging Pods are deleted. You also want to ensure that if the application is deleted, the data remains accessible for future use, but the volume should not be automatically reused by other applications. Which of the following volume reclaim policies would best meet the requirement of preserving the data after the Pods and application are deleted?

  • A

    Use the Delete reclaim policy to automatically remove the volume after the application is deleted.

  • B

    Use the Recycle reclaim policy to clean and reuse the volume once the application is deleted.

  • C

    Use the Retain reclaim policy to keep the volume after the application is deleted and prevent it from being reused automatically.

  • D

    Use the Immediate reclaim policy to instantly make the volume available for reuse after the application is deleted.

Reveal correct answer

Correct answer: C

A.

The Delete reclaim policy deletes the Persistent Volume along with the associated storage once the Persistent Volume Claim is deleted. This is unsuitable for scenarios where data must be preserved, as it would lead to data loss.

B.

The Recycle reclaim policy wipes the data by performing a basic scrub of the volume (deleting all files) and then makes it available for new claims. This is not appropriate for scenarios where you need to retain the logs for future use.

C.

The Retain reclaim policy is the best choice for preserving the volume after the application is deleted and preventing it from being automatically reused. With this policy, the Persistent Volume is not deleted or cleaned after the associated Persistent Volume Claim (PVC) is removed. The data remains intact, and an administrator must manually reclaim the volume for future use, ensuring data is retained for long-term analysis or recovery.

D.

There is no Immediate reclaim policy in Kubernetes. The closest functionality would be the Recycle or Delete policies, but neither preserves data for future use as required by the scenario. This answer is both incorrect and misleading.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need