Nutanix certification · Exam NCP-CN

NCP-CN Mock Exam

Nutanix Certified Professional - Cloud Native (NCP-CN-6.10)

Free NCP-CN questions on Conduct NKP Fleet Management, each with the answer and an explanation.

20 questions · 30 minutes · free, no sign-up

Conduct NKP Fleet Management questions

1–4 of 4 free
Question 1 Choose 1
A Platform Engineer is attaching existing Kubernetes clusters to NKP, but a particular Kubernetes Amazon EKS cluster is getting errors with application deployments. These errors are related to persistent volumes. What could be the issue, and what can the engineer do?
Show answerHide answer

Correct answer: C There is no default StorageClass. Storage classes should be reviewed, and only one should be set as default.

Explanation

Explanation
The problem is specifically with persistent volume (PV) provisioning in an Amazon EKS cluster that is being attached to NKP. In Kubernetes, when a PersistentVolumeClaim (PVC) is created without specifying a storageClassName, the cluster's default StorageClass is used to dynamically provision the volume.

Why Option C is Correct:
A common issue, especially with attached clusters like EKS, is the absence of a defined default StorageClass. If no StorageClass is marked as default, any PVC that does not explicitly name a StorageClass will fail to be provisioned, leading to the described errors. The solution is for the engineer to:

Review StorageClasses:
Run kubectl get storageclass to see the available classes.

Check for a Default:
Look for a StorageClass with the (default) annotation.

Set a Default:
If none exists, set one using kubectl patch storageclass -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'. EKS typically provides a gp2 or gp3 StorageClass that can be set as the default.

Why the Other Options are Incorrect:

A. The storage appliance is having issues...
This is too vague and unlikely for an Amazon EKS cluster. The "storage appliance" in EKS is the managed AWS cloud storage service (like EBS), which is highly reliable. The problem is almost certainly a configuration issue within the Kubernetes cluster itself, not a widespread outage of the underlying AWS service.

B. There is no compatible storage to be attached...
This is incorrect. EKS clusters have native access to AWS storage solutions like Elastic Block Store (EBS) through the EBS CSI driver. The compatible storage exists; the issue is the Kubernetes mechanism for automatically provisioning it (the default StorageClass) is not configured.

D. There could be a misconfiguration in the ConfigMap...
While a misconfiguration in a critical component (like the CSI driver's ConfigMap) could cause issues, the most common and fundamental reason for generic PV deployment failures on a newly attached cluster, especially EKS, is the absence of a default StorageClass. This is the first thing an engineer should check.

Reference / Key Concept
This question tests the understanding of dynamic persistent volume provisioning in Kubernetes and a common configuration pitfall when attaching external clusters.

StorageClass:
Defines a "class" of storage (e.g., "fast SSD," "slow HDD") and the provisioner to use.

Default StorageClass:
A crucial convenience feature. When a PVC is created without a storageClassName, the cluster's default StorageClass is used. If it doesn't exist, the PVC will remain unbound indefinitely.

EKS Specifics:
When creating an EKS cluster, the Amazon EBS CSI driver is often installed as an add-on, which provides the gp2 or gp3 StorageClass. However, it may not be set as the default, or the default might have been removed. This is a standard troubleshooting step for PV issues in EKS.

Therefore, the most likely cause and first action for the engineer is to verify and configure a default StorageClass.
Question 2 Choose 1
A Platform Engineer is attempting to delete an attached cluster from the NKP UI, but it is stuck in a 'deleting' state and does not get removed. How can the engineer resolve this attempt to detach the cluster so that it is removed from the UI and no longer managed by NKP?
Show answerHide answer

Correct answer: C Run the kubectl delete kommandercluster command in the context of the NKP management cluster

Explanation

Explanation
When a cluster is attached to NKP, its lifecycle is managed by a Custom Resource (CR) on the NKP management cluster. The specific CR type for an attached cluster is KommanderCluster. The NKP UI interacts with this resource object. If a deletion gets stuck, it is often because the finalizers on this resource are blocked, and a manual command is needed to force its removal.

Why Option C is Correct:

Context:
The operation must be performed on the NKP management cluster because that is where the controlling resource (KommanderCluster) exists.

Command:
The kubectl delete kommandercluster command directly targets the custom resource that represents the attached cluster. This will attempt to remove the resource and its finalizers, which should clear the stuck 'deleting' state and remove the cluster from the UI. If it hangs, the --force --grace-period=0 flags can be used to force the deletion.

Why the Other Options are Incorrect:

A. Run the kubectl delete cluster command in the context of the NKP management cluster.
The Cluster CR is used for clusters provisioned by NKP via Cluster API (CAPI), not for clusters that are attached. An attached cluster is represented by a KommanderCluster resource, not a Cluster resource.

B. Run the nkp delete kommandercluster command in the context of the NKP attached cluster.
There is no nkp delete kommandercluster command. The nkp CLI is used for lifecycle operations on NKP-provisioned clusters, not for managing the CRs of attached clusters. Furthermore, the command must be run on the management cluster, not the attached cluster.

D. Run the nkp delete cluster command in the context of the NKP attached cluster.
This is incorrect for several reasons. First, the nkp CLI is not intended to be run from an attached cluster for management tasks. Second, this command is used to delete a cluster that was provisioned by NKP, not one that was merely attached.

Reference / Key Concept
This question tests the understanding of how NKP manages attached clusters and how to troubleshoot a stuck Kubernetes resource deletion.

Attached Cluster Representation:
An attached cluster is represented in the NKP management cluster by a KommanderCluster custom resource. Deleting the cluster from the UI triggers the deletion of this resource.

Finalizers:
Kubernetes resources often have finalizers that must complete before the resource can be deleted. If a finalizer is blocked (e.g., due to a network issue communicating with the target cluster), the resource will be stuck in a 'deleting' state.

Troubleshooting Stuck Deletions: The standard procedure is to:

Use kubectl on the management cluster.

Identify the correct Custom Resource Definition (CRD) for the stuck resource (in this case, kommanderclusters.kommander.d2iq.com).

Manually delete the resource instance using kubectl delete kommandercluster .

By directly deleting the KommanderCluster resource on the management cluster, the engineer removes the source of truth for that attached cluster, resolving the stuck state and removing it from the UI.
Question 3 Choose 1
An ecommerce company decides to apply an autoscaling configuration in its NKP cluster due to the fact that on holidays, they experience service drops due to a huge increase of simultaneous traffic.
Which statement best describes the configuration shown in the exhibit?
Show answerHide answer

Correct answer: C The autoscaler could increase the number of nodes up to 15, but never reduce the number below 3.

Explanation

Explanation
The question describes an autoscaling configuration for a Node Pool. In Kubernetes cluster autoscalers (like the one used in NKP), the key parameters that define the scaling behavior are the minimum, maximum, and initial node counts.

Why Option C is Correct:
This statement accurately describes the standard function of an autoscaler based on the parameters mentioned in the question. The "huge increase of simultaneous traffic" necessitates scaling up, and the need to maintain service implies a need to scale down when the traffic subsides, but not below a certain baseline.

"Increase the number of nodes up to 15" refers to the maximum node count. This is the hard limit the autoscaler will not exceed, preventing uncontrolled cost growth.

"Never reduce the number below 3" refers to the minimum node count. This ensures there is always a baseline cluster capacity to handle steady-state traffic and run critical system pods, preventing service drops from having too few nodes.

Why the Other Options are Incorrect:

A. The autoscaler could have 15 or 3 nodes. This is incorrect and far too simplistic.
The autoscaler can operate at any number of nodes between the minimum and maximum (e.g., 3, 4, 5, ... , 14, 15), not just at the two extremes. It dynamically adjusts based on the load.

B. The autoscaler could increase the number of nodes as needed, but never reduce it below 3.
The first part of this statement is dangerously vague. Without a defined maximum (implied to be 15 in the correct answer), the autoscaler could theoretically scale infinitely, leading to exorbitant costs. A maximum limit is a critical safety control.

D. The autoscaler could increase the number of nodes up to 3, but never reduce it below 15.
This is logically impossible and backwards. You cannot have a minimum that is higher than the maximum. This configuration would be invalid.

Reference / Key Concept
This question tests the understanding of Kubernetes Cluster Autoscaler configuration parameters.

Minimum Size:
The smallest number of nodes the node pool is allowed to have. This ensures resource availability for baseline workloads and cluster services.

Maximum Size:
The largest number of nodes the node pool is allowed to have. This is a critical cost-control mechanism.

Scaling Logic:
The autoscaler continuously monitors unschedulable pods (pods that cannot run due to insufficient resources). If there are unschedulable pods, it scales up (adds nodes) until the pods can be scheduled or it hits the maximum. Conversely, if nodes are underutilized, it scales down (removes nodes) after ensuring their pods can be rescheduled elsewhere, but it will never go below the minimum.

For the ecommerce company, the configuration described in option C allows the cluster to handle holiday traffic spikes by scaling up to 15 nodes while maintaining a cost-effective baseline of 3 nodes during off-peak times.
Question 4 Choose 1
In an effort to control cloud cost consumption, auto-scale is configured to meet demands as needed.
What is the behavior for when nodes are scaled down?
Show answerHide answer

Correct answer: B Node is CAPI deleted from its infrastructure provider, effectively removing it from its hypervisor.

Explanation

Explanation
The Kubernetes Cluster Autoscaler, which is integrated with NKP, is designed to reduce costs by removing unnecessary infrastructure when it is no longer needed. Its scaling-down behavior is direct and focused on eliminating cloud resource consumption.

Why Option B is Correct:
When the Cluster Autoscaler determines a node is underutilized and its pods can be safely rescheduled elsewhere, it does not put the node in a standby or hibernation state. Instead, it:

Cordon and drain the node, evicting all pods.

Trigger the deletion of the node's underlying virtual machine instance via the Cluster API (CAPI) provider.

This results in the VM being permanently deleted from the infrastructure provider (e.g., AWS EC2, Nutanix AHV, vSphere).

This action directly stops the accrual of costs for that compute instance, which is the primary goal of cost control.

Why the Other Options are Incorrect:

A. Node is changed to a status of Hibernate.
Kubernetes and standard Cluster Autoscaler do not have a native "Hibernate" state for nodes. Hibernation is a specific feature of some cloud services for instances, but it is not the default scaling-down behavior of the autoscaler.

C. Node is changed to a status of Power-Off for stand-by.
A powered-off VM still incurs costs in most cloud environments (e.g., storage costs for the disk, and often a reduced compute cost). The autoscaler's purpose is to minimize costs, so it deletes the resource entirely rather than leaving it in a state that continues to incur charges.

D. Node is paused in Kubernetes and the infrastructure continues to consume the resources...
This is the opposite of cost control. If the infrastructure continues to run and consume resources, the company continues to pay for it. The autoscaler is specifically designed to avoid this scenario.

Reference / Key Concept:
This question tests the understanding of the Kubernetes Cluster Autoscaler's scaling-down mechanism and its direct impact on cloud costs.

Cost-Optimization Focus:
The autoscaler is not just about performance; it's a key cost-control tool. Its most effective way to save money is to completely remove unneeded compute resources.

CAPI Integration:
In NKP, cluster operations are managed by the Cluster API (CAPI). The autoscaler interacts with the CAPI custom resources, which in turn instruct the infrastructure provider (via the CAPI provider) to delete the VM.

Stateless Nodes:
The autoscaler operates under the assumption that worker nodes are stateless and replaceable. Any persistent data must be on network-attached storage (PersistentVolumes), not local to the node, to allow for safe node deletion.

That's the last free question in Conduct NKP Fleet Management

You've seen the free 30% (4 of 16 questions). Full access unlocks every question and full-length NCP-CN mock exams, a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the NCP-CN exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real NCP-CN exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full NCP-CN mock exam
  • —questions per mock
  • —time limit
  • 95questions in the bank
  • Newmock on every attempt