Nutanix certification · Exam NCP-CN

NCP-CN Mock Exam

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

Free NCP-CN questions on Prepare the Environment for an NKP Deployment, each with the answer and an explanation.

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

Prepare the Environment for an NKP Deployment questions

1–9 of 9 free
Question 1 Choose 1
A Platform Engineer is deploying a new NKP cluster that has internet connectivity. Now, a Cloud Administrator and Security Administrator are discussing the security of communications between the NKP Kubernetes cluster and the container registry. The engineer proposes to have an on-prem private registry. What is the most significant reason that the engineer should create a private registry instead of configuring a secure connection between the NKP cluster and Github (SaaS)?
Show answerHide answer

Correct answer: D Private registry provides security and privacy.

Explanation

Explanation
The core of this question revolves around the fundamental security and operational advantages of using a private, on-premises container registry versus relying on an external SaaS (Software-as-a-Service) registry, even with a secure connection.

Why Option D is Correct: A private, on-premises registry gives the organization full control over the security, availability, and privacy of its container images.

Security:
It allows for strict access control policies (e.g., integrated with on-prem LDAP/AD), vulnerability scanning as part of the internal CI/CD pipeline, and protection from supply chain attacks targeting public repositories.

Privacy:
Proprietary application code and container images never leave the organization's internal network. This prevents any potential exposure through misconfiguration of the SaaS platform and ensures compliance with data sovereignty regulations that may require data to reside on-premises.

While a secure connection (TLS) to GitHub's container registry protects data in transit, it does not address who else has access to the registry (multi-tenancy), the legal jurisdiction of the data at rest, or the registry's availability during an internet outage.

Why the Other Options are Incorrect:

A. Private registry license is included with NKP.
This is not a standard offering. NKP facilitates connecting to a registry but does not typically bundle a license for a private registry product like Harbor or JFrog Artifactory. The decision should be based on technical and security merits, not a presumed cost saving.

B. NKP requires specific registry versions.
This is false. NKP is designed to be agnostic and can work with any standard-compliant container registry (e.g., Docker Hub, Harbor, Google Container Registry, Amazon ECR, GitHub Container Registry). It does not mandate a specific version.

C. NKP cannot connect to public clouds.
This is factually incorrect. The question explicitly states the NKP cluster has internet connectivity. NKP clusters can absolutely be configured to pull images from public registries like GitHub Container Registry (ghcr.io), Docker Hub, and others. This is a common and supported practice.

Reference / Key Concept:
This question tests the understanding of software supply chain security and the role of a private registry in a secure enterprise Kubernetes deployment.

Control and Sovereignty:
The most significant reason for choosing an on-prem private registry is the complete control it offers over the entire lifecycle of the container images—who can push, who can pull, when they are scanned, and where the data is physically stored.

Defense-in-Depth:
Using a private registry is a key defense-in-depth strategy. It reduces the attack surface by eliminating dependence on an external service for a critical component (the application binaries themselves) and protects against outages or rate-limiting on public services.

Nutanix Best Practices:
While Nutanix provides the platform (NKP), it is a best practice in enterprise environments to manage your own private registry to ensure security, compliance, and operational reliability, aligning with the principle of "you build it, you run it," including your software artifacts.
Question 2 Choose 2
A Platform Engineer manages an NKP v2.12.x environment and is using NKP Image Builder (NIB) to create a custom image. Which two distributions are available for use by the engineer for this task? (Choose two.)
Show answerHide answer

Correct answer: A, C UbuntuRocky Linux

Explanation

Explanation
The Nutanix Kubernetes Platform (NKP) Image Builder is a tool used to create custom machine images for worker nodes. These images are pre-configured with the necessary components to join an NKP cluster. The available operating system distributions are limited to those that Nutanix has tested, certified, and provides pre-configured templates for within the NIB service.

Why Options A and C are Correct:

A. Ubuntu:
Ubuntu is a primary, first-class citizen and one of the most widely supported Linux distributions for Kubernetes and cloud-native workloads. It is a standard and consistently available option in NKP Image Builder.

C. Rocky Linux:
Rocky Linux (along with other RHEL-compatible derivatives like AlmaLinux) is a direct, binary-compatible successor to CentOS. As CentOS Stable shifted its focus, Nutanix and the broader enterprise community have adopted Rocky Linux as the recommended replacement for CentOS in the NKP ecosystem. It is the standard RHEL-compatible option.

Why the Other Options are Incorrect:

B. Fedora:
Fedora is a cutting-edge, community-driven distribution that serves as an upstream for Red Hat Enterprise Linux. Due to its rapid release cycle and shorter support lifespan, it is not typically supported or offered in enterprise platform tools like NKP Image Builder, which prioritize stability and long-term support.

D. CentOS:
While CentOS was historically a core supported distribution, its status changed with the shift to CentOS Stream. For NKP v2.12.x, the focus for RHEL-compatible images has moved to its stable alternatives, primarily Rocky Linux. CentOS (the classic stable version) is generally no longer available or recommended as a new choice in NIB.

Reference / Key Concept
This question tests knowledge of the supported operating systems for NKP worker nodes via the Image Builder service.

Enterprise-Grade Support:
NKP is an enterprise platform, and as such, it only integrates with Linux distributions that offer long-term stability and support (LTS). Both Ubuntu LTS and Rocky Linux fit this requirement.

Nutanix Documentation:
The official Nutanix documentation for NKP Image Builder explicitly lists the available base OS templates. For versions around NKP 2.12.x, this list prominently includes Ubuntu and Rocky Linux as the standard options, reflecting the industry-wide transition away from CentOS Stable.

In summary, the engineer should select Ubuntu for a Debian-based environment or Rocky Linux for a RHEL-based environment, as these are the current, stable, and supported distributions provided by NIB.
Question 3 Choose 1
A Platform Engineer needs to do an air-gapped installation of NKP. This environment needs to run without Internet access and be fully operational, including updates. Docker has been installed, and the NKP bundle exists on a bastion host. What is the first command that the engineer must run to begin the process?
Show answerHide answer

Correct answer: C tar -xzvf nkp-air-gapped-bundle_v2.12.0_linux_amd64.tar.gz

Explanation

Explanation
An air-gapped installation requires all necessary files to be physically transported into the isolated environment. The NKP air-gapped bundle is a single, compressed tarball file that contains all the container images, binaries, and configuration files needed for the installation. Before any of these components can be used, they must be extracted from this archive.

Why Option C is Correct:
The tar -xzvf command is used to extract the contents of a .tar.gz file. This is the absolute first step. You must extract the bundle's contents to access the:

NKP CLI binary (nkp)

Bootstrap container image tarball (e.g., konvoy-bootstrap-image-*.tar)

Other necessary installation files and charts.
Without performing this step, none of the subsequent commands can be run because the required files do not exist on the filesystem.

Why the Other Options are Incorrect:

A. nkp push bundle --bundle:
This command is used to push the extracted container images to a private registry. However, you cannot run the nkp command until after the bundle has been extracted, as the nkp binary itself is inside the tarball.

B. docker load -i konvoy-bootstrap-image-v2.12.0.tar:
This command loads the bootstrap container image into the local Docker daemon. This is a critical step, but it can only be performed after the main bundle tarball has been extracted, as this specific .tar file is one of the contents inside the main bundle.

D. nkp create cluster nutanix:
This command is used to initiate the cluster creation process. This is one of the final steps in the procedure and requires that all previous steps (extracting the bundle, loading the bootstrap image, pushing images to a registry) have been completed successfully.

Reference / Key Concept
This question tests the understanding of the sequential procedure for an air-gapped NKP installation. The logical, unskippable order of operations is crucial.

Extract the Bundle: Unpack the delivered tarball to make its contents available. (This is the first command)

Load the Bootstrap Image: Use docker load to make the NKP bootstrap container available locally.

Initialize the NKP CLI: The nkp binary, now extracted, can be used.

Push Images to Registry: Use nkp push bundle to upload all container images from the extracted bundle to your private, air-gapped container registry.

Create Cluster: Finally, use nkp create cluster to deploy the cluster, which will now pull its images from the internal registry.

You cannot run a tool before you have extracted it from its packaging. Therefore, extracting the main bundle tarball is the mandatory first step.
Question 4 Choose 1
After loading the NKP bundles to a private registry in an air-gapped environment, a Platform Engineer now needs the Konvoy bootstrap image to create the bootstrap cluster. The Konvoy image has not been loaded into the registry. Which is the most viable command to load the Konvoy bootstrap image on the bastion host?
Show answerHide answer

Correct answer: A docker load -i konvoy-bootstrap-image-.tar

Explanation

Explanation
The question specifies a critical detail:the engineer needs the Konvoy bootstrap image to create the bootstrap cluster on the bastion host, and the image has not been loaded into the registry. The bootstrap cluster is a temporary, local Docker-based cluster used to orchestrate the installation of the final, permanent NKP cluster.

Why Option A is Correct:
The docker load command is used to load a container image from a tarball directly into the local Docker daemon's image store. Since the next step is to create a local bootstrap cluster on this same bastion host, the image must be available to the local Docker engine. This command accomplishes that exact task efficiently and is the standard, required step before running nkp create cluster.

Why the Other Options are Incorrect:

B. docker image tag konvoy-bootstrap-image-.tar version docker.io/konvoy-bootstrap version:
This command is syntactically incorrect and conceptually flawed. The docker image tag command operates on an image that is already loaded into Docker, not on a tarball file. You must use docker load first.

C. nkp push bundle --bundle konvoy-bootstrap-image-.tar --to-registry=:
This command is used to push images to a private registry. While this is a necessary step for the container images needed by the final NKP cluster, the bootstrap image is specifically required by the local Docker daemon on the bastion host to initiate the process. Pushing it to a remote registry does not make it available locally for the bootstrap cluster.

D. nkp load image -f konvoy-bootstrap-image-.tar --to-registry=:
This command is not a standard nkp command. The nkp push bundle command is used for pushing a collection of images, and there is no separate nkp load image command for loading a single image into a local Docker daemon. This is a distractor.

Reference / Key Concept
This question tests the understanding of the two-stage process for an air-gapped NKP installation and the distinct purposes of the local Docker daemon versus the private container registry.

Bootstrap Cluster (Local):
A temporary, single-node cluster run locally on the bastion host using a kind (Kubernetes in Docker) or k3d cluster. This requires the konvoy-bootstrap image to be present in the local Docker daemon. The command to achieve this is docker load.

Permanent NKP Cluster (Remote):
The final, production-ready cluster that runs on your infrastructure (e.g., Nutanix AHV, vSphere). This cluster pulls all its application images (like Prometheus, Fluent Bit, etc.) from the private registry. The command to populate that registry is nkp push bundle.

The engineer is currently on step 1, preparing the local bastion host. Therefore, the only viable command is docker load.
Question 5 Choose 1
A Platform Engineer has been tasked with building a custom image for the deployment of NKP management and worker nodes. The engineer needs to ensure that the proper package versions are used when creating these images. The security team has only authorized version 1.30.5 of Kubernetes and version 1.7.22 of containerd. Where should the engineer go to verify that this is the version being used when building the custom image?
Show answerHide answer

Correct answer: C ansible/group_vars/all/defaults.yaml

Explanation

Explanation
The Nutanix Kubernetes Platform (NKP) Image Builder uses Ansible as the underlying configuration management tool to define the state of the operating system image, including which software packages are installed.

Why Option C is Correct:
Within the NKP Image Builder project structure, the Ansible variables that control the versions of core components like Kubernetes and container runtimes are defined in the ansible/group_vars/all/defaults.yaml file. This is the central location where you would set variables like:

kubernetes_version: 1.30.5

containerd_version: 1.7.22

By checking and modifying this file, the engineer can explicitly lock in the versions mandated by the security team, ensuring the custom image is built with the correct, authorized software.

Why the Other Options are Incorrect:

A. config/pulumi/vars/pulumi.kib.config:
Pulumi is used in some Nutanix automation contexts for infrastructure provisioning, but it is not the primary tool for defining package versions within the OS image itself in NKP Image Builder. The core image configuration is handled by Ansible.

B. terraform/vars/default/terraform.tfvars:
Terraform is an infrastructure-as-code tool used to provision cloud resources (VMs, networks, etc.). It is not used to define the software packages installed on a machine image. Its variables file would not contain Kubernetes or containerd version numbers.

D. The custom image's .env file:
While some applications use .env files for configuration, the NKP Image Builder project does not use a root-level .env file to define its core build parameters. The canonical and documented location for these variables is within the Ansible group_vars.

Reference / Key Concept
This question tests the understanding of the NKP Image Builder (NIB) architecture and its use of Ansible.

Ansible for Image State Management:
NKP Image Builder leverages Ansible playbooks and roles to install and configure all necessary software on a base OS image. The versions of this software are controlled by Ansible variables.

Centralized Variable Location:
The ansible/group_vars/all/ directory is where variables that apply to all hosts (in this case, all nodes in the image) are defined. The defaults.yaml file within this directory is the standard place to set these key-value pairs.

Compliance and Governance:
For organizations with strict security policies, the ability to pin software versions in this file is critical for maintaining a consistent, secure, and compliant software bill of materials (SBOM) for their Kubernetes nodes.

Therefore, to verify and control the versions of Kubernetes and containerd, the engineer must inspect and configure the ansible/group_vars/all/defaults.yaml file.
Question 6 Choose 1
A company uses an Artifactory private registry for development. The NKP deployment must use this private registry since the Security Administrator has the firewall configured to reject connections to public container registries. The first task is to push the NKP bundle to this private registry.
What options should be used to push the NKP bundle to this private registry?
Show answerHide answer

Correct answer: D --to-registry, --to-registry-username and --to-registry-password

Explanation

Explanation
The task is to push the NKP air-gapped bundle to a private registry (Artifactory) so that the NKP deployment can pull all necessary container images from it. The command for this operation is nkp push bundle.

Why Option D is Correct:
The standard and documented flags for the nkp push bundle command to specify the destination private registry are:

--to-registry: The URL of the target private registry (e.g., artifactory.company.com).

--to-registry-username: The username with push/write access to the registry.

--to-registry-password: The password or token for the specified user.

Why the Other Options are Incorrect:

A. --registry-mirror-url, --registry-mirror-username and --registry-mirror-password:
These flags are typically used in different contexts, such as configuring a pull-through cache or mirror for Docker or containerd during node setup. They are not the primary flags for the nkp push bundle command.

B. --mirror-url, --mirror-username and --mirror-password:
This is a simplified or incorrect version of the mirror flags and is not the valid set of parameters for the nkp push bundle command.

C. --registry-url, --registry-username and --registry-password:
These flags are ambiguous. They lack the critical --to- prefix that explicitly defines the destination of the push operation. The nkp CLI uses the --to-registry* flags to avoid this ambiguity.

Reference / Key Concept
This question tests knowledge of the specific syntax for the nkp push bundle command, which is a critical step in preparing an air-gapped or restricted NKP environment.

Command Purpose:
nkp push bundle takes the contents of the extracted NKP air-gapped bundle and uploads all the container images to a designated private registry.

Flag Semantics:
The use of --to-* is a common CLI convention to clearly indicate the target of an operation. In this case, --to-registry unambiguously means "push the bundle TO this registry."

Air-Gapped Workflow:

The standard sequence is:

Extract the bundle tar.gz file.

Load the bootstrap image locally (docker load).

Push the bundle to the private registry using nkp push bundle --bundle --to-registry ....

Create the cluster, which will be configured to pull from this registry.

Using the correct --to-registry, --to-registry-username, and --to-registry-password flags is essential for successfully populating the private registry and enabling the subsequent NKP deployment.
Question 7 Choose 1
The bastion host is currently set up with Rocky Linux and the engineer will need to configure it to meet the requirements for the air-gapped cluster.
Which first step should the engineer take to configure the bastion host?
Show answerHide answer

Correct answer: A Install the pre-requisites yum-utils, bzip2, and wget.

Explanation

Explanation
Before any complex software can be installed or configured, the operating system must have the necessary foundational tools and packages. This is a universal first step in system preparation.

Why Option A is Correct:
The question asks for the first step. The installation of basic system utilities is the foundational prerequisite. These packages are required for the subsequent steps:

yum-utils:
Contains critical utilities for managing YUM/DNF repositories and packages, which are needed to install Docker and other software.

bzip2:
A compression tool necessary for extracting the NKP air-gapped bundle file (which is a .tar.gz file that may contain .tar.bz2 archives internally).

wget:
A tool for downloading files from the internet. While the environment is air-gapped now, this tool was likely used to initially download the NKP bundle onto the bastion host from an internal file server.

Why the Other Options are Incorrect:

B. Create a bootstrap cluster.
This is a major step that occurs much later in the process. It can only be performed after the bastion host has been fully configured, including installing Docker, loading the NKP bootstrap image, and extracting the NKP CLI from the bundle.

C. Configure the bastion VM with a public IP address.
This is often unnecessary and against security best practices for a bastion host, especially in an air-gapped environment. Connectivity is typically managed through a private network. This is not a prerequisite for installing software packages.

D. Set up a connection on the bastion host so that it can pull images from Docker Hub.
This is impossible and contradictory in an air-gapped environment. By definition, an air-gapped system has no connection to the public internet, including Docker Hub. All necessary images are provided in the NKP bundle and must be loaded locally or pushed to a private, internal registry.

Reference / Key Concept
This question tests the understanding of a methodical system preparation process for an air-gapped deployment.

Preparation Sequence:
The logical order for preparing a bastion host is:

Install OS Prerequisites:
Ensure the basic tooling is available (e.g., yum-utils, bzip2, wget). (This is the first step)

Install Container Runtime:
Install Docker or containerd.

Load NKP Artifacts:
Extract the NKP bundle and load the container images into the local Docker daemon.

Proceed with Deployment:
Only after these steps can you run commands to create a bootstrap cluster or push images to a private registry.

You cannot build a house without first gathering the fundamental tools. Similarly, you cannot configure a bastion host for NKP without first installing the basic packages that all subsequent steps depend on.
Question 8 Choose 1
There is a private registry for the NKP deployment and the company has an NKP Ultimate license. A Platform Engineer is using the Podman tool and is already logged in. Now, the engineer needs to send the private registry with the NKP Catalog Applications.
What command should the engineer use?
Show answerHide answer

Correct answer: B nkp push bundle --bundle ./container-images/nkp/catalog-applications-image-bundle-v2.12.0.tar --toregistry=${ REGISTRY_URL} --to-registry-username=${REGISTRY_USERNAME} --to-registrypassword=${ REGISTRY_PASSWORD}

Explanation

Explanation
The goal is to populate a private registry with the container images contained within the NKP Catalog Applications bundle. This is a standard step in preparing an air-gapped or restricted NKP environment.

Why Option B is Correct:
The nkp push bundle command is specifically designed for this task. It:

Reads the specified tarball (catalog-applications-image-bundle-v2.12.0.tar).

Extracts the container images.

Pushes (uploads) all of those images to the target private registry defined by the --to-registry* flags.

This command is the standard, supported method for loading the NKP application catalog into a private registry.

Why the Other Options are Incorrect:

A. podman load -i ./container-images/nkp/catalog-applications-image-bundle-v2.12.0.tar:
The podman load command loads an image from a tarball into the local container storage of the machine where the command is run. It does not push the image to a remote private registry. It only makes it available locally.

C. docker load -i ./container-images/nkp/catalog-applications-image-bundle-v2.12.0.tar:
This has the same core issue as option A. The docker load command only loads images into the local Docker daemon. It does not transfer them to a remote registry.

D. nkp apply bundle -f ...:
This is not a valid nkp command. The correct verb for transferring images to a registry is push bundle, not apply bundle. The apply command is typically used with YAML configuration files, not image tarballs.

Reference / Key Concept
This question tests the understanding of the container image workflow in an air-gapped NKP deployment and the distinction between local image management and registry operations.

load vs push:

podman load / docker load:
These commands are for local image management. They import an image from a file into the local container engine.

nkp push bundle:
This command is for registry population. It takes local images (from a bundle file) and uploads them to a remote registry so they can be pulled by other systems (like the NKP clusters).

NKP Air-Gapped Workflow:
The standard sequence is to use nkp push bundle to populate your private registry with all necessary images (both the core platform bundle and the catalog applications bundle) before creating clusters that will need to pull from that registry.

Since the engineer's goal is to "send" the images to the private registry, the only correct command is nkp push bundle.
Question 9 Choose 1
NKP Starter is bundled with which entitlement?
Show answerHide answer

Correct answer: B NCI Starter

Explanation

Explanation
This question tests knowledge of the Nutanix product bundling and licensing structure. NKP (Nutanix Kubernetes Platform) is built upon core Nutanix infrastructure and management software.

Why Option B is Correct:
The free tier of NKP, NKP Starter, is bundled with the free tier of the underlying infrastructure software. This is Nutanix Cloud Infrastructure (NCI) Starter. This bundle provides the foundational hyperconverged infrastructure and basic Kubernetes cluster management capabilities without additional licensing costs.

Why the Other Options are Incorrect:

A. NCI Pro:
NCI Pro is a paid, premium tier of the Nutanix Cloud Infrastructure software that includes advanced features. It is not bundled with the free NKP Starter license.

C. NCM Pro:
NCM (Nutanix Cloud Manager) is a separate portfolio for cloud management, including cost governance, security, and self-service. NCM Pro is a paid tier and is not part of the NKP Starter bundle.

D. NCM Starter:
While NCM Starter is a free tier, it is part of the Nutanix Cloud Manager portfolio for cloud operations, not the core infrastructure. NKP Starter is specifically bundled with the infrastructure layer, which is NCI Starter.

Reference / Key Concept

Nutanix Product Tiers:
Nutanix offers its software in different tiers (e.g., Starter, Pro, Ultimate) across its product portfolios.

NKP Foundation:
NKP requires Nutanix Cloud Infrastructure (NCI) to run. The free NKP Starter license is designed to be used with the free NCI Starter license, enabling customers to begin their Kubernetes journey at no cost.

Therefore, the correct entitlement bundled with NKP Starter is NCI Starter.

That's the last free question in Prepare the Environment for an NKP Deployment

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