Courseiva
Application Deployment →easyMultiple Choice

CKAD Application Deployment Practice Question

Which Helm command is used to install a chart from a repository?

⚠ Common exam trap

It's easy for candidates to confuse repository management commands (`helm repo add`) with chart installation commands (`helm install`), leading candidates to select the command that adds a repository instead of the one that actually deploys the chart.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

helm install myrelease stable/nginx

`helm install myrelease stable/nginx` installs a chart named 'nginx' from the 'stable' repository, creating a release named 'myrelease'. This command requires the chart reference to include the repository alias (e.g., 'stable/nginx') after the repository has been added with `helm repo add`.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    helm repo add stable https://charts.helm.sh/stable

    Why it's wrong here

    helm repo add stable https://charts.helm.sh/stable only registers the repository URL in Helm's local configuration (e.g., $HELM_HOME/repositories.yaml). It does not fetch, render, or install any chart, and it creates no release in the cluster. This command is a prerequisite for later installs, not the installation itself.

  • ✗

    helm create mychart

    Why it's wrong here

    helm create mychart scaffolds a new chart skeleton in the local directory 'mychart', generating boilerplate files like Chart.yaml, values.yaml, and templates/. It works entirely on the filesystem and does not contact any Helm repository or the Kubernetes API server. This is a development aid for authoring charts, not a deployment operation.

  • ✓

    helm install myrelease stable/nginx

    Why this is correct

    helm install myrelease stable/nginx creates a new release named 'myrelease' by resolving the chart reference 'stable/nginx' from your configured repositories, rendering its templates, and applying the resulting Kubernetes manifests to the cluster. This command performs the actual first-time deployment, which is exactly what the question asks for. Without a prior release, this is the only valid way to install a chart from a repo.

  • ✗

    helm upgrade myrelease stable/nginx

    Why it's wrong here

    helm upgrade myrelease stable/nginx is meant to modify an already-deployed release by comparing the current release's resources with the new chart version or values and applying incremental changes. If 'myrelease' does not already exist in the target namespace, Helm returns an error unless the --install flag is provided. Because the scenario describes an initial installation, this command is not the right choice.

About these practice questions

This CKAD question is part of Courseiva's 826-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CKAD practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CKAD exam.