Nutanix certification · Exam NCP-CN

NCP-CN Mock Exam

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

Free NCP-CN questions on Manage Building an NKP Cluster, each with the answer and an explanation.

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

Manage Building an NKP Cluster questions

1–4 of 4 free
Question 1 Choose 1
Which NKP-supported infrastructure will not receive CAPI components when an NKP cluster is deployed to it?
Show answerHide answer

Correct answer: D AKS

Explanation

Explanation
This question tests the understanding of the Cluster API (CAPI) model and how NKP uses it to manage Kubernetes clusters across different infrastructures

Why Option D is Correct:
AKS (Azure Kubernetes Service) is a managed Kubernetes service. When you deploy to AKS, you are not provisioning the underlying virtual machines, networks, or Kubernetes control plane nodes yourself. Instead, you are asking Azure to provide a fully managed, pre-configured Kubernetes cluster.

NKP uses CAPI to declaratively manage the entire lifecycle of a cluster, including creating the VMs, installing Kubernetes, and managing the control plane. Since AKS abstracts away the underlying infrastructure and control plane, there is no need for NKP to install CAPI components (like the cluster-api controllers or provider-specific controllers such as azure)*. The management is done through the Azure API, not through CAPI custom resources acting on IaaS.

Why the Other Options are Incorrect:

A. vSphere, B. GCP, and C. Nutanix are all infrastructure platforms where NKP uses CAPI to provision and manage the cluster.
For vSphere and Nutanix (AHV), NKP uses the cluster-api-provider-nutanix to create VMs and deploy Kubernetes onto them.

For GCP, NKP uses the cluster-api-provider-gcp to create Google Compute Engine instances and deploy Kubernetes.

In all these cases, the NKP management cluster installs and uses the respective CAPI provider components to manage the workload clusters. The key differentiator is that these are IaaS platforms where you have control over the VMs, unlike a managed service like AKS.

Reference / Key Concept

Cluster API (CAPI):
A Kubernetes sub-project that provides declarative APIs and tooling to simplify provisioning, upgrading, and operating multiple Kubernetes clusters. It uses a management cluster to manage the lifecycle of workload clusters.

NKP as a Management Cluster:
NKP itself acts as a CAPI-based management cluster. When you deploy a new workload cluster to an IaaS provider (vSphere, Nutanix, GCP, AWS), it installs the corresponding CAPI infrastructure provider into the management cluster to handle that deployment.

Managed Services vs. IaaS:
Managed Kubernetes services like AKS, EKS, and GKE are a higher level of abstraction. The cloud provider manages the control plane and often the worker nodes. You cannot and do not need to install CAPI components to manage them; you interact with the cloud provider's own API and control plane.

In summary, CAPI is for managing clusters on infrastructure you control (IaaS). It is not used for clusters that are already managed by a cloud provider.
Question 2 Choose 1
A Platform Engineer is deploying an NKP workload cluster using the nkp create cluster vsphere command. The cluster will be utilized by the company’s code-green team and the engineer has already created a codegreen NKP workspace on the NKP management cluster.
After issuing the deploy command, the engineer monitored the build using the nkp describe cluster command and confirmed it completed successfully. However, a few hours later, after logging into the NKP UI, the engineer checked the code-green NKP workspace and saw that the NKP workload cluster was not there.
What is the likely reason the NKP workload cluster is not in the code-green NKP workspace?
Show answerHide answer

Correct answer: C The engineer did not supply the --namespace code-green parameter as part of the nkp create cluster vsphere command, therefore it was created in the default workspace and needs to be manually attached.

Explanation

Explanation
In NKP, a workspace is a Kubernetes namespace on the management cluster that provides a logical boundary and access control for a set of resources, including workload clusters. When you create a workload cluster, you must explicitly specify which workspace (namespace) it belongs to.

Why Option C is Correct:
The scenario states that a code-green workspace was created, but the engineer used the generic nkp create cluster vsphere command. If the --namespace or -n flag is omitted, the NKP CLI will default to deploying the cluster in the default workspace. This explains why the cluster deployed successfully (as verified by nkp describe cluster) but is not visible in the intended code-green workspace in the UI. The cluster exists, but it's in the wrong logical container.

Why the Other Options are Incorrect:

A. The vSphere cluster cannot be displayed in the NKP UI unless its Kubernetes version is within ‘N - 1’ versions...
This is not a standard restriction for UI visibility. NKP can manage workload clusters with various supported Kubernetes versions, and the version disparity would more likely cause functional issues rather than simply hiding the cluster from the UI.

B. The vSphere service account credentials had expired...
Expired credentials would have prevented the cluster from being built successfully in the first place. The nkp describe cluster command confirmed the build was successful, meaning the credentials were valid at the time of deployment. Furthermore, credential expiration after the fact would typically not cause a cluster to vanish from the UI; it would more likely show it in an error state.

D. NKP vSphere clusters cannot be assigned NKP workspaces...
This is factually false. NKP workload clusters, regardless of the underlying infrastructure provider (vSphere, Nutanix, AWS, etc.), can and should be assigned to specific workspaces for proper multi-tenancy and organization. They are not forced into the default workspace.

Reference / Key Concept
This question tests the understanding of NKP Workspaces and Namespaces and the imperative use of the NKP CLI.

Workspace = Namespace:
In the context of the NKP management cluster, a "workspace" is implemented as a Kubernetes namespace. All NKP custom resources (like Clusters) for a given project must be created within that namespace.

Imperative CLI Requires Explicit Targeting:
When using imperative commands like nkp create cluster, you must explicitly tell the system where to place the resource using the --namespace flag. There is no automatic assignment based on the user's context in the UI.

Solution:
The engineer has two main options to resolve this:

Recreate the Cluster:
The most straightforward method is to delete the cluster from the default workspace and redeploy it with the correct --namespace code-green flag.

Move the Cluster (if supported):
In some cases, it might be possible to move the cluster's resources to the correct namespace, but this is a more advanced and less common operation. Recreation is typically the recommended path.

In summary, the most common reason for a successfully created resource not appearing in the expected UI location is that it was created in the wrong namespace due to a missing --namespace flag in the CLI command.
Question 3 Choose 1
Using an NKP Ultimate license, a Platform Engineer has created a new workspace and needs to create a new Kubernetes cluster within this workspace. However, the engineer discovers that the Create Cluster option is grayed out, as shown in the exhibit. How should the engineer resolve this issue?
Show answerHide answer

Correct answer: C Create an Infrastructure provider for the workspace

Explanation

Explanation
In NKP, a workspace is a logical boundary for managing clusters and resources. To create a new cluster within a workspace (as opposed to attaching an existing one), the workspace must be configured with an Infrastructure Provider. This provider supplies the credentials and configuration (e.g., for Nutanix AHV, vSphere, AWS, etc.) that NKP needs to provision virtual machines and build the cluster.

Why Option C is Correct:
The "Create Cluster" button will be disabled (grayed out) in a workspace until an infrastructure provider is successfully added to that specific workspace. This is a fundamental prerequisite. The engineer needs to navigate to the workspace's settings, add a provider (by selecting the cloud/infrastructure type and providing the necessary credentials like API endpoints, username, and password), and then the option to create a new cluster will become available.

Why the Other Options are Incorrect:

A. Create the cluster only using YAML and not the GUI.
While it might be technically possible to apply a Cluster API YAML manifest directly via kubectl, this bypasses the intended NKP management workflow and does not address the root cause. The GUI is disabled for a specific, configurable reason—the lack of an infrastructure provider. The correct action is to fulfill that prerequisite within the platform.

B. Attach existing clusters instead of creating a new cluster.
The "Attach Cluster" function is separate from the "Create Cluster" function. Attaching a cluster imports an already-running Kubernetes cluster into the workspace for management. The question states the engineer's goal is to create a new cluster, and this option does not resolve why the "Create" button is disabled.

D. Ensure NKP is upgraded to a minimum version of 2.12.
The issue is not related to the NKP version. The behavior described—the "Create Cluster" button being disabled until an infrastructure provider is configured—is standard functionality across multiple versions of NKP. An upgrade would not resolve this specific configuration issue.

Reference / Key Concept
This question tests the understanding of NKP workspace configuration and the prerequisites for cluster provisioning.

Workspace Configuration:
Workspaces in NKP are not just visual groupings; they are secure, multi-tenant boundaries that require explicit configuration for the actions they are permitted to perform.

Infrastructure Provider:
This is a set of credentials and configuration stored within a workspace (or shared from a global context) that grants NKP the permission to create and manage resources (VMs, disks, networks) on a specific cloud or virtualization platform.

UI/UX Logic:
The NKP UI dynamically enables or disables features based on the configured capabilities of the workspace. The "Create Cluster" option remains disabled as a clear indicator that a essential piece of configuration—the infrastructure provider—is missing.

In summary, the engineer must configure the underlying infrastructure (Nutanix, vSphere, etc.) that the new cluster will be built upon before the NKP UI will allow the cluster creation process to begin. This is done by adding an Infrastructure Provider to the workspace.
Question 4 Choose 2
A Cloud Engineer is deploying an NKP Cluster in AWS. The environment is for testing purposes only, so the AWS team has requested it be deployed to use a minimal set of system resources to reduce cloud subscription fees. Which two parameters should be specified when initializing a Kommander installation, using the nkp install kommander command set? (Choose two.)
Show answerHide answer

Correct answer: B, D --wait-timeout--init

Explanation

Explanation
The goal is to deploy a minimal NKP Kommander cluster in AWS to reduce resource consumption and cost. The nkp install kommander command has specific flags to control the installation profile and behavior.

Why Option B and D are Correct:

D. --init:
This is the most critical flag for this scenario. The --init flag instructs the installer to deploy Kommander in its minimal configuration. This means it will install only the essential components required for the management cluster to function, skipping additional platform services and applications that would consume more CPU, memory, and storage. This directly fulfills the requirement for a "minimal set of system resources."

B. --wait-timeout:
This flag is used to specify the maximum amount of time the installer will wait for the cluster to become ready. In a minimal test environment, provisioning might be slower due to less powerful underlying instances. Setting a --wait-timeout (e.g., --wait-timeout=1h) ensures the installer does not give up prematurely if the deployment takes longer than the default timeout on constrained resources.

Why the Other Options are Incorrect:

A. --request-timeout:
This flag typically sets the timeout for individual API requests made by the installer. It is a more granular, lower-level setting than --wait-timeout and is not the primary flag for controlling the overall installation profile or ensuring completion in a slow environment.

C. --yaml:
This flag is used to specify a custom YAML configuration file for the installation. While a custom YAML could be used to define a minimal resource footprint, the question asks for parameters to specify with the command set. The --init flag is the standard, built-in way to achieve a minimal installation without needing to create and manage a separate YAML file.

Reference / Key Concept:
This question tests the knowledge of the nkp install kommander command-line flags used to control the deployment profile and behavior.

Minimal Installation (--init):
Used for proof-of-concept, development, or test environments where resource consumption must be minimized. It installs the core Kommander components without the full suite of platform applications.

Wait Timeout (--wait-timeout):
Crucial for ensuring successful installation in environments where resource constraints might lead to longer deployment times. It prevents the CLI from exiting before the cluster is fully ready.

Therefore, to meet the requirement of a minimal, cost-effective test deployment, the engineer should use the combination of --init and an appropriate --wait-timeout.

That's the last free question in Manage Building an NKP Cluster

You've seen the free 30% (4 of 14 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