NCP-CN practice question 24 of 25

[Perform Day 2 Operations] A development team decided to employ an efficient monitoring system with Grafana-logging, which was successfully implemented as can be seen in the following output: AppDeployment "kommander-default-workspace/grafana-logging" created in namespace "kommander-default-workspace". Which command did the team execute to complete this task?

Full set: 108 questions
Answer options
A: nkp create appdeployment grafana-logging --app grafana-logging-6.57.4 --workspace default- workspace Correct answer
B: export WORKSPACE_NAMESPACE=kommander-default-workspaceappdeploymentnkp create package-bundle grafana-logging
C: kubectl get appdeployment -n kommander-default-workspace
D: kubectl get helmreleases grafana-logging -n kommander-default-workspace -w
Correct Answer:
A. nkp create appdeployment grafana-logging --app grafana-logging-6.57.4 --workspace default- workspace
Explanation

The output AppDeployment "kommander-default-workspace/grafana-logging" created... explicitly states that an AppDeployment resource was created. The Nutanix Kubernetes Platform (NKP) command-line interface (CLI) uses the nkp create appdeployment command to deploy an application from the catalog into a specified workspace.
Option A provides the correct command syntax: nkp create appdeployment [app-deployment-name] --app [app-package-name] --workspace [workspace-name]. This command instructs NKP to create a new application deployment named grafana-logging using the grafana-logging-6.57.4 application package within the default-workspace, which directly produces the output shown in the question.

Why Incorrect

B: This command is syntactically incorrect and uses create package-bundle, which is for creating application bundles, not for deploying a single application instance. C: The kubectl get command is used to retrieve or list existing resources. It does not create new resources, which is what the output indicates has happened. D: This is also a kubectl get command, used for viewing resources, not creating them. It also targets a lower-level HelmRelease resource, not the primary AppDeployment abstraction.

References

Nutanix Kubernetes Platform 2.4 Administration Guide: Section: "Deploying an Application from the CLI". The guide details the usage of the nkp create appdeployment command. The syntax shown is nkp create appdeployment --app --workspace [flags], which directly validates option A as the correct command to create an AppDeployment. (URL: https://portal.nutanix.com/page/documents/details?targetId=Nutanix-Kubernetes-Platform-Admin-Guide-v24:ec-applications-deploy-cli-t.html)

Scroll to Top