exam questions

Exam 5V0-23.20 All Questions

View all questions & answers for the 5V0-23.20 exam

Exam 5V0-23.20 topic 1 question 10 discussion

Actual exam question from VMware's 5V0-23.20
Question #: 10
Topic #: 1
[All 5V0-23.20 Questions]

What is the proper way to delete a Persistent Volume Claim?

  • A. By using the kubectl delete persistentvolumeclaim command
  • B. By using the kubectl remove pvc command
  • C. Through the SPBM policy engine using the vSphere Client
  • D. By unmounting the volume from the VM and deleting it from the vSphere datastore
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lotso
Highly Voted 3 months ago
Selected Answer: A
A. By using the kubectl delete persistentvolumeclaim command kubectl delete persistentvolumeclaim = kubectl delete pvc Delete Persistent Volumes and Persistent Volume Claims To delete Persistent Volume (PV) and Persistent Volume Claim (PVC) objects in a cluster: Run kubectl config use-context my-cluster@user to set kubectl to the cluster’s context. Run kubectl get pvc to retrieve the cluster’s Persistent Volume Claims (PVCs). For each PVC: Run kubectl describe pvc <my-pvc> to identify the PV it is bound to. The PV is listed in the command output as Volume, after Status: Bound. Run kubectl describe pv <my-pv> to describe to determine if its bound PV Reclaim Policy is Retain or Delete. Run kubectl delete pvc <my-pvc> to delete the PVC. If the PV reclaim policy is Retain, run kubectl delete pv <my-pvc> and then log into your cloud portal and delete the PV object there. For example, delete a vSphere CNS volume from your datastore pane > Monitor > Cloud Native Storage > Container Volumes. For more information about vSphere CNS, see Getting Started with VMware Cloud Native Storage.
upvoted 5 times
lotso
3 months ago
https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/1.6/vmware-tanzu-kubernetes-grid-16/GUID-cluster-lifecycle-delete-cluster.html#pv
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago