NCP-CN practice question 20 of 25

[Manage Building an NKP Cluster] A company was using a test application called temp-shop developed in the temp-ecommerce NKP Starter cluster. Now…

Full set: 108 questions
[Manage Building an NKP Cluster] A company was using a test application called temp-shop developed in the temp-ecommerce NKP Starter cluster. Now, the cluster has just been taking up valuable resources that could be used for other projects, so the development team has decided to remove it. Before proceeding, they verified that they had the cluster configuration file temp-ecommerce.conf. What command should the development team execute to delete the cluster with its nodes and application?
Answer options
A: nkp delete cluster --all
B: nkp delete cluster --application-name=temp-shop --self-managed --kubeconfig=temp- ecommerce.conf
C: nkp delete cluster --cluster-name=temp-ecommerce --self-managed --kubeconfig=temp- ecommerce.conf Correct answer
D: nkp delete cluster --cluster-name=temp-shop --self-managed --kubeconfig=temp-shop.conf
Correct Answer:
C. nkp delete cluster --cluster-name=temp-ecommerce --self-managed --kubeconfig=temp- ecommerce.conf
Explanation

The nkp delete cluster command is used to remove a Nutanix Kubernetes Platform (NKP) cluster. According to the scenario, the cluster to be deleted is named temp-ecommerce, and it is a self-managed "Starter" cluster. The correct syntax requires specifying the cluster's name using the --cluster-name flag. Since it is a self-managed cluster, the --self-managed flag is mandatory. Finally, the --kubeconfig flag must point to the cluster's specific configuration file, which is provided as temp-ecommerce.conf. Option C is the only command that correctly assembles all these required parameters.

Why Incorrect

A: The --all flag is not a valid parameter for the nkp delete cluster command. Deleting a cluster requires explicitly specifying its name for safety. B: The command is for deleting a cluster, not an application. Using the --application-name flag is incorrect for this operation; --cluster-name must be used. D: This option incorrectly uses the application's name (temp-shop) as the cluster's name and references a kubeconfig file that does not match the one provided in the scenario.

References

Nutanix Kubernetes Platform Administration Guide: The procedure for removing a self-managed cluster is detailed here. The guide specifies the exact command syntax: nkp delete cluster --cluster-name --self-managed --kubeconfig . This directly validates the structure and flags used in the correct answer.

URL: https://portal.nutanix.com/page/documents/details?targetId=Nutanix-Kubernetes-Platform-Admin-Guide-v29:Nutanix-Kubernetes-Platform-Admin-Guide-v29/kps-kps-cluster-delete-self-managed-t.html

Section: Deleting a Self-Managed NKP Cluster

Scroll to Top