Kubernetes and Cloud Native Associate (KCNA) — Question 159
Which of the following options include resources cleaned by the Kubernetes garbage collection mechanism?
Answer options
- A. Stale or expired CertificateSigningRequests (CSRs) and old deployments.
- B. Nodes deleted by a cloud controller manager and obsolete logs from the kubelet.
- C. Unused container and container images, and obsolete logs from the kubelet.
- D. Terminated pods, completed jobs, and objects without owner references.
Correct answer: D
Explanation
The correct answer is D, as Kubernetes garbage collection specifically targets terminated pods, completed jobs, and orphaned objects without owner references for cleanup. Options A, B, and C mention resources that are not automatically cleaned up by the garbage collector, such as CertificateSigningRequests and logs.