# Helm quiz questions

> 117 multiple-choice questions on charts, templates, values, releases, hooks, repositories and Helm 4, with answers and explanations.

Quiz page: https://k8wiz.com/helm/difficulty

## Beginner (Easy): 33 questions

Interactive quiz: https://k8wiz.com/helm/quiz/easy

### What is Helm?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-helm

- A. A container runtime for Kubernetes
- B. A package manager for Kubernetes
- C. A monitoring solution for Kubernetes
- D. A service mesh for Kubernetes

**Answer:** A package manager for Kubernetes

**Explanation:** Helm is a package manager for Kubernetes that helps you define, install, and upgrade even the most complex Kubernetes applications. It works like apt/yum/homebrew for Kubernetes, managing packages called 'charts'.

### What is a Helm chart?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-a-helm-chart

- A. A visualization of Kubernetes cluster resources
- B. A collection of pre-configured Kubernetes resources
- C. A monitoring dashboard for Kubernetes
- D. A network diagram of Kubernetes services

**Answer:** A collection of pre-configured Kubernetes resources

**Explanation:** A Helm chart is a collection of pre-configured Kubernetes resources that can be managed as a single unit. Charts are organized as directories containing templates and values that are combined to generate valid Kubernetes manifest files.

### Which command installs a Helm chart?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-installs-a-helm-chart

- A. helm install [NAME] [CHART]
- B. helm create [NAME] [CHART]
- C. helm deploy [NAME] [CHART]
- D. helm start [NAME] [CHART]

**Answer:** helm install [NAME] [CHART]

**Explanation:** The 'helm install' command is used to install a chart, creating a new release. The command requires a release name and the chart reference to install.

### What is the purpose of the 'values.yaml' file in a Helm chart?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-valuesyaml-file-in-a-helm-chart

- A. To store the chart's version information
- B. To define default configuration values for the chart
- C. To list dependencies for the chart
- D. To validate the chart's structure

**Answer:** To define default configuration values for the chart

**Explanation:** The values.yaml file contains the default configuration values for a chart. These values can be overridden during installation or upgrade using the --values or --set flags.

### Which command creates a new Helm chart directory structure?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-creates-a-new-helm-chart-directory-structure

- A. helm new [NAME]
- B. helm create [NAME]
- C. helm generate [NAME]
- D. helm init [NAME]

**Answer:** helm create [NAME]

**Explanation:** The 'helm create' command creates a new chart directory with the given name, containing the common chart structure including a Chart.yaml file, templates directory, and values.yaml file.

### What is a Helm release?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-a-helm-release

- A. A version of a Helm chart
- B. An instance of a chart running in a Kubernetes cluster
- C. A published chart in a repository
- D. A collection of charts that work together

**Answer:** An instance of a chart running in a Kubernetes cluster

**Explanation:** A Helm release is an instance of a chart running in a Kubernetes cluster. When you install a chart, a new release is created. Each release has a unique name within the cluster.

### Which command updates a release with a new version of a chart?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-updates-a-release-with-a-new-version-of-a-chart

- A. helm update [RELEASE] [CHART]
- B. helm upgrade [RELEASE] [CHART]
- C. helm refresh [RELEASE] [CHART]
- D. helm apply [RELEASE] [CHART]

**Answer:** helm upgrade [RELEASE] [CHART]

**Explanation:** 'helm upgrade [RELEASE] [CHART]' moves a release to a new chart version or new values and records a new revision you can roll back to. Add --install to create the release if it doesn't exist yet. Helm has no update, refresh or apply commands for releases.

### What is the purpose of the 'Chart.yaml' file in a Helm chart?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-chartyaml-file-in-a-helm-chart

- A. To define the Kubernetes resources to be deployed
- B. To provide metadata about the chart such as version and description
- C. To specify the values that can be configured
- D. To list the templates used in the chart

**Answer:** To provide metadata about the chart such as version and description

**Explanation:** The Chart.yaml file contains metadata about the chart, including its name, version, description, maintainers, and other information that helps users understand what the chart does.

### Which command lists all releases in the current namespace?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-lists-all-releases-in-the-current-namespace

- A. helm list
- B. helm releases
- C. helm show
- D. helm get all

**Answer:** helm list

**Explanation:** The 'helm list' command (or 'helm ls' for short) lists all of the releases in the current namespace. You can use flags like --all-namespaces to see releases across all namespaces.

### Which command removes a release from the cluster?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-removes-a-release-from-the-cluster

- A. helm delete [RELEASE]
- B. helm remove [RELEASE]
- C. helm uninstall [RELEASE]
- D. helm destroy [RELEASE]

**Answer:** helm uninstall [RELEASE]

**Explanation:** The 'helm uninstall' command removes a release from the cluster. In Helm 3, this completely removes the release and its history by default. In Helm 2, 'helm delete' was used, which kept release history unless --purge was specified.

### Which command is used to package a chart directory into a chart archive?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-is-used-to-package-a-chart-directory-into-a-chart-archive

- A. helm archive [CHART_DIR]
- B. helm package [CHART_DIR]
- C. helm compress [CHART_DIR]
- D. helm bundle [CHART_DIR]

**Answer:** helm package [CHART_DIR]

**Explanation:** The 'helm package' command packages a chart directory into a chart archive (.tgz file). This archive can then be shared, stored in a repository, or installed directly.

### What is a Helm repository?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-a-helm-repository

- A. A Kubernetes namespace dedicated to Helm releases
- B. A server that stores and serves Helm chart archives
- C. A local directory containing chart templates
- D. A collection of Kubernetes manifests

**Answer:** A server that stores and serves Helm chart archives

**Explanation:** A Helm repository is a server that stores and serves Helm chart archives (.tgz files) along with an index file that contains metadata about the available charts. Repositories make it easy to share and distribute charts.

### Which command adds a Helm repository?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-adds-a-helm-repository

- A. helm repo add [NAME] [URL]
- B. helm repository add [NAME] [URL]
- C. helm add repo [NAME] [URL]
- D. helm register repo [NAME] [URL]

**Answer:** helm repo add [NAME] [URL]

**Explanation:** The 'helm repo add' command adds a chart repository with the specified name and URL to your Helm configuration. After adding a repository, you can install charts from it using 'helm install'.

### What is the purpose of the 'templates' directory in a Helm chart?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-templates-directory-in-a-helm-chart

- A. To store example configurations for the chart
- B. To contain template files that generate Kubernetes manifests
- C. To define the chart's appearance in the Helm UI
- D. To provide sample output for chart testing

**Answer:** To contain template files that generate Kubernetes manifests

**Explanation:** The templates directory contains template files that, when combined with values, generate valid Kubernetes manifest files. These templates use the Go template language with additional functions provided by the Sprig library and Helm-specific functions.

### What is the purpose of the 'helm repo update' command?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-repo-update-command

- A. To update the Helm binary to the latest version
- B. To update charts in the local repository
- C. To update the list of available charts from all added repositories
- D. To update a specific chart repository's URL

**Answer:** To update the list of available charts from all added repositories

**Explanation:** The 'helm repo update' command updates the local cache of available charts from all the repositories that have been added to Helm. This ensures that Helm has the latest information about available charts and their versions.

### What is the purpose of the 'helm search' command?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-search-command

- A. To search for text within chart files
- B. To search for available charts in repositories
- C. To search for installed releases
- D. To search for Kubernetes resources created by Helm

**Answer:** To search for available charts in repositories

**Explanation:** The 'helm search' command searches for available charts in repositories that have been added to Helm. It has two subcommands: 'helm search repo' searches repository indexes, and 'helm search hub' searches the Artifact Hub.

### What is the purpose of the 'helm show chart' command?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-show-chart-command

- A. To display a visual representation of a chart
- B. To show the Chart.yaml file of a chart
- C. To list all charts in a repository
- D. To display the structure of a chart directory

**Answer:** To show the Chart.yaml file of a chart

**Explanation:** The 'helm show chart' command displays the contents of the Chart.yaml file for a chart. This shows metadata about the chart such as its name, version, description, and dependencies.

### What is the purpose of the 'helm show readme' command?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-show-readme-command

- A. To display the README.md file of a chart
- B. To show usage instructions for a chart
- C. To display the chart's documentation website
- D. To list common commands for a chart

**Answer:** To display the README.md file of a chart

**Explanation:** The 'helm show readme' command displays the contents of the README.md file for a chart. This typically contains documentation about the chart, including its purpose, configuration options, and usage examples.

### What is the purpose of the 'helm status' command?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-status-command

- A. To check the status of the Helm client
- B. To display the status of a release
- C. To verify the health of a chart repository
- D. To show the connection status to the Kubernetes cluster

**Answer:** To display the status of a release

**Explanation:** The 'helm status' command displays the current status of a release, including which resources were created, the state of those resources, and any notes provided by the chart. It's useful for checking if a release was successfully deployed and is running correctly.

### What is the purpose of the 'helm env' command?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-env-command

- A. To set environment variables for Helm
- B. To show Helm-related environment variables
- C. To configure the environment for a release
- D. To display the environment variables available in templates

**Answer:** To show Helm-related environment variables

**Explanation:** The 'helm env' command displays information about the Helm client environment, including paths to configuration files, cache directories, data directories, and other settings that affect Helm's behavior.

### What is the purpose of the 'helm repo list' command?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-repo-list-command

- A. To list all charts in a repository
- B. To list all repositories added to Helm
- C. To list repository mirrors
- D. To list repository synchronization status

**Answer:** To list all repositories added to Helm

**Explanation:** The 'helm repo list' command displays all chart repositories that have been added to Helm, showing their names and URLs. This helps you keep track of which repositories are available for installing charts.

### How can you supply configuration values to Helm without modifying values.yaml?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/how-can-you-supply-configuration-values-to-helm-without-modifying-valuesyaml

- A. Use --set or --values/-f flags
- B. Only edit Chart.yaml
- C. Modify templates directly
- D. Use helm config

**Answer:** Use --set or --values/-f flags

**Explanation:** -f or --values reads values from a YAML file, and --set sets single values, such as --set image.tag=1.2.3. Both can be repeated: later files override earlier ones, and --set values override files.

### Which option to 'helm template' will supply values from a file?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-option-to-helm-template-will-supply-values-from-a-file

- A. --values/-f
- B. --set
- C. --file
- D. --config

**Answer:** --values/-f

**Explanation:** helm template takes the same value flags as helm install: -f or --values for files and --set for single values. It prints the rendered manifests without installing anything, which makes it handy for checking what a values file changes.

### Which release property indicates the namespace into which the release was installed?

Helm, Easy (Beginner), Templates. https://k8wiz.com/uquiz/which-release-property-indicates-the-namespace-into-which-the-release-was-installed

- A. .Release.Namespace
- B. .Chart.Namespace
- C. .Values.namespace
- D. .Release.Name

**Answer:** .Release.Namespace

**Explanation:** .Release.Namespace is the namespace the release is installed into, from --namespace or the current kubeconfig context. Charts set it as metadata.namespace so their resources land in the release's namespace.

### Which file in a chart contains the Kubernetes resource templates?

Helm, Easy (Beginner), Charts. https://k8wiz.com/uquiz/which-file-in-a-chart-contains-the-kubernetes-resource-templates

- A. templates/
- B. manifests.yaml
- C. resources/
- D. k8s_templates/

**Answer:** templates/

**Explanation:** Files in templates/ are rendered and sent to Kubernetes, except files whose names start with an underscore, such as _helpers.tpl, which hold named templates, and NOTES.txt, which is printed after an install or upgrade.

### What does the '.Chart' object expose inside templates?

Helm, Easy (Beginner), Templates. https://k8wiz.com/uquiz/what-does-the-chart-object-expose-inside-templates

- A. .Chart.Name and .Chart.Version info
- B. Chart sources only
- C. values.yaml only
- D. Release metadata

**Answer:** .Chart.Name and .Chart.Version info

**Explanation:** .Chart exposes the fields of Chart.yaml with capitalized names, such as .Chart.Name, .Chart.Version and .Chart.AppVersion. Charts often use .Chart.AppVersion as the default image tag.

### Which file extension is used by packaged Helm charts?

Helm, Easy (Beginner), Charts. https://k8wiz.com/uquiz/which-file-extension-is-used-by-packaged-helm-charts

- A. .tar.gz
- B. .tgz
- C. .zip
- D. .helm

**Answer:** .tgz

**Explanation:** helm package writes <name>-<version>.tgz, a gzipped tarball of the chart directory. Chart repositories and OCI registries both store charts in this format.

### Which Chart.yaml field lists keywords and app information sometimes used by catalogs?

Helm, Easy (Beginner), Charts. https://k8wiz.com/uquiz/which-chartyaml-field-lists-keywords-and-app-information-sometimes-used-by-catalogs

- A. keywords and appVersion
- B. tags
- C. labels
- D. annotations

**Answer:** keywords and appVersion

**Explanation:** keywords is a list of search terms, and appVersion records the version of the application the chart deploys, separate from the chart's own version. Chart repositories and Artifact Hub show both.

### Which Helm release status indicates that a release failed during an operation?

Helm, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/which-helm-release-status-indicates-that-a-release-failed-during-an-operation

- A. failed
- B. error
- C. failing
- D. pending

**Answer:** failed

**Explanation:** A release is failed when its last install, upgrade or rollback didn't complete. Other statuses include deployed, superseded for older revisions, uninstalled, and pending-install, pending-upgrade or pending-rollback while an operation runs.

### What does the Helm error "another operation (install/upgrade/rollback) is in progress" usually mean?

Helm, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/what-does-the-helm-error-another-operation-installupgraderollback-is-in-progress-usually-mean

- A. The chart repository index is still being refreshed
- B. The API server is rate limiting Helm's write requests
- C. The release's latest revision still has a pending status
- D. A Kubernetes Job from a chart hook is still running

**Answer:** The release's latest revision still has a pending status

**Explanation:** Helm writes each new revision with a pending status before it applies anything, and an upgrade refuses to start while the latest revision is pending-install, pending-upgrade or pending-rollback. When a Helm process dies mid-operation, that status stays behind and blocks every retry. Rolling back to the last good revision clears it.

### Which helm rollback flag added in Helm 4.3 records a reason for the rollback in the release history?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-helm-rollback-flag-added-in-helm-43-records-a-reason-for-the-rollback-in-the-release-history

- A. --reason
- B. --description
- C. --message
- D. --annotate

**Answer:** --description

**Explanation:** Helm 4.3 added --description to helm rollback, limited to 256 characters. The text replaces the default 'Rollback to N' description and shows up in helm history. --reason and --message don't exist on helm rollback.

### Which label must an existing object carry before helm install will adopt it into a release?

Helm, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/which-label-must-an-existing-object-carry-before-helm-install-will-adopt-it-into-a-release

- A. app.kubernetes.io/instance set to the release name
- B. app.kubernetes.io/managed-by set to Helm
- C. helm.sh/chart set to the chart name and version
- D. app.kubernetes.io/part-of set to the release name

**Answer:** app.kubernetes.io/managed-by set to Helm

**Explanation:** Helm adopts an existing object only when it has the label app.kubernetes.io/managed-by: Helm and the annotations meta.helm.sh/release-name and meta.helm.sh/release-namespace match the release. Without them the install stops with an invalid ownership metadata error. The instance and chart labels are common chart conventions, but Helm doesn't check them.

### Which helm template flag prints only the manifests rendered from a template file you name, such as templates/configmap.yaml?

Helm, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-helm-template-flag-prints-only-the-manifests-rendered-from-a-template-file-you-name-such-as-templatesconfigmapyaml

- A. --output-dir
- B. --show-only
- C. --include-crds
- D. --skip-tests

**Answer:** --show-only

**Explanation:** --show-only, or -s, filters the output to the manifests from the template paths you give it, relative to the chart root, and accepts glob patterns. Helm still renders every template, so an error in another file still fails the command. --output-dir writes all rendered files to a directory instead of filtering them.

## Advanced (Medium): 52 questions

Interactive quiz: https://k8wiz.com/helm/quiz/medium

### What is the purpose of Helm hooks?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-helm-hooks

- A. To connect Helm to external systems
- B. To intercept and modify Kubernetes API requests
- C. To run operations at specific points in a release's lifecycle
- D. To validate chart values before installation

**Answer:** To run operations at specific points in a release's lifecycle

**Explanation:** Helm hooks allow chart developers to intervene at specific points in a release's lifecycle, such as pre-installation, post-installation, pre-deletion, etc. Hooks can be used for tasks like database migrations, resource validation, or cleanup operations.

### What is the purpose of the .helmignore file?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helmignore-file

- A. To specify which files should be ignored by Kubernetes
- B. To list files that should be excluded when packaging the chart
- C. To define resources that should not be installed
- D. To identify templates that should be skipped during rendering

**Answer:** To list files that should be excluded when packaging the chart

**Explanation:** The .helmignore file specifies files and patterns that should be ignored when packaging a chart. It works similarly to .gitignore, allowing you to exclude files like development artifacts, test data, or documentation from the packaged chart.

### Which command shows the rendered templates for a release?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-command-shows-the-rendered-templates-for-a-release

- A. helm template [RELEASE]
- B. helm get manifest [RELEASE]
- C. helm get templates [RELEASE]
- D. helm show templates [RELEASE]

**Answer:** helm get manifest [RELEASE]

**Explanation:** The 'helm get manifest' command fetches the rendered templates for a named release. This shows the actual Kubernetes manifests that were generated and applied to the cluster for the release.

### What is the purpose of the 'helm template' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-template-command

- A. To create a new template file in a chart
- B. To render chart templates locally without installing the chart
- C. To extract templates from an existing chart
- D. To validate template syntax in a chart

**Answer:** To render chart templates locally without installing the chart

**Explanation:** The 'helm template' command renders chart templates locally and displays the output. This is useful for debugging charts, previewing what would be installed, or generating manifests that can be applied with kubectl instead of Helm.

### What is a subchart in Helm?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-a-subchart-in-helm

- A. A chart that extends another chart's functionality
- B. A chart that is used as a dependency by another chart
- C. A partial chart that cannot be installed directly
- D. A chart that only contains a subset of resources

**Answer:** A chart that is used as a dependency by another chart

**Explanation:** A subchart is a chart that is included as a dependency by another chart (the parent chart). Subcharts can be used to break down complex applications into smaller, reusable components. They are specified in the parent chart's Chart.yaml file under the 'dependencies' section.

### Which file is used to define dependencies in a Helm chart?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-file-is-used-to-define-dependencies-in-a-helm-chart

- A. dependencies.yaml
- B. requirements.yaml
- C. Chart.yaml
- D. values.yaml

**Answer:** Chart.yaml

**Explanation:** In Helm 3, dependencies are defined in the Chart.yaml file under the 'dependencies' section. In Helm 2, they were defined in a separate requirements.yaml file, but this was merged into Chart.yaml in Helm 3.

### Which command updates the dependencies of a chart?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-command-updates-the-dependencies-of-a-chart

- A. helm dependency update [CHART]
- B. helm update dependencies [CHART]
- C. helm dep update [CHART]
- D. helm chart update [CHART]

**Answer:** helm dependency update [CHART]

**Explanation:** The 'helm dependency update' command (or 'helm dep update' for short) updates the dependencies for a chart. It downloads any required charts into the 'charts/' directory according to the dependencies specified in Chart.yaml.

### What is the purpose of the 'helm lint' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-lint-command

- A. To format chart files according to best practices
- B. To check a chart for possible issues or errors
- C. To validate chart values against a schema
- D. To clean up unused files in a chart

**Answer:** To check a chart for possible issues or errors

**Explanation:** The 'helm lint' command examines a chart for possible issues or errors. It checks the chart's structure, validates the Chart.yaml file, verifies template rendering, and performs other checks to ensure the chart follows best practices.

### What is the purpose of the 'helm rollback' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-rollback-command

- A. To uninstall a release and remove its history
- B. To revert a release to a previous revision
- C. To roll back changes made to the Helm binary
- D. To undo the last helm command executed

**Answer:** To revert a release to a previous revision

**Explanation:** The 'helm rollback' command reverts a release to a previous revision. Each time you install, upgrade, or rollback a release, a new revision is created, allowing you to return to any point in the release's history.

### What is the purpose of the 'helm history' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-history-command

- A. To show the deployment history of the cluster
- B. To display the command history of the Helm CLI
- C. To show the revision history of a release
- D. To list previously used chart versions

**Answer:** To show the revision history of a release

**Explanation:** The 'helm history' command displays the revision history of a release. It shows information about each revision, including the revision number, status, chart version, app version, and description of what happened in that revision.

### What is the purpose of the 'helm show values' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-show-values-command

- A. To display the values currently used by a release
- B. To show all possible values that can be configured for a chart
- C. To display the default values defined in a chart's values.yaml file
- D. To show environment values available to templates

**Answer:** To display the default values defined in a chart's values.yaml file

**Explanation:** The 'helm show values' command displays the contents of the values.yaml file for a chart. This shows the default configuration values and helps users understand what can be customized when installing or upgrading the chart.

### What is the purpose of the 'helm get values' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-get-values-command

- A. To retrieve the values.yaml file from a chart
- B. To show the values used by a specific release
- C. To extract values from a running Kubernetes resource
- D. To get the default values for a chart

**Answer:** To show the values used by a specific release

**Explanation:** The 'helm get values' command shows the values used by a specific release. By default, it shows only the values that differ from the chart's defaults (those that were overridden during installation or upgrade). Use the --all flag to see all values.

### What is the purpose of the 'NOTES.txt' file in a Helm chart?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-notestxt-file-in-a-helm-chart

- A. To provide documentation for chart developers
- B. To display usage notes to users after installation
- C. To list known issues with the chart
- D. To document the chart's release history

**Answer:** To display usage notes to users after installation

**Explanation:** The NOTES.txt file in a chart's templates directory is rendered and displayed to the user after a successful installation or upgrade. It typically contains usage instructions, access information, and next steps for using the deployed application.

### What is the purpose of the 'helm pull' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-pull-command

- A. To download a chart from a repository to a local directory
- B. To pull container images used by a chart
- C. To extract a chart from a running release
- D. To update a chart with changes from a repository

**Answer:** To download a chart from a repository to a local directory

**Explanation:** The 'helm pull' command downloads a chart from a repository and (optionally) unpacks it in the local directory. This is useful when you want to examine or modify a chart before installation.

### What is a Helm plugin?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-a-helm-plugin

- A. A tool that extends Helm's functionality
- B. A special type of chart that modifies Kubernetes behavior
- C. A component that connects Helm to different container runtimes
- D. A mechanism for adding custom template functions

**Answer:** A tool that extends Helm's functionality

**Explanation:** A Helm plugin is a tool that extends Helm's functionality. Plugins can add new commands or features to Helm. They are typically written in any language that can be executed on the host system and follow a simple plugin protocol to integrate with Helm.

### Which command installs a Helm plugin?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-command-installs-a-helm-plugin

- A. helm plugin add [URL]
- B. helm plugin install [URL]
- C. helm install plugin [URL]
- D. helm add plugin [URL]

**Answer:** helm plugin install [URL]

**Explanation:** The 'helm plugin install' command installs a plugin from a URL, local path, or archive. The URL can point to a Git repository, a .tar.gz file, or a directory containing the plugin.

### What is a Helm starter?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-a-helm-starter

- A. The first chart installed in a cluster
- B. A template for creating new charts
- C. A minimal chart with essential resources
- D. A script that initializes Helm in a cluster

**Answer:** A template for creating new charts

**Explanation:** A Helm starter is a template for creating new charts. Starters provide pre-configured chart structures that can be used as a starting point when running 'helm create --starter'. They help standardize chart development within an organization or for specific types of applications.

### What is the purpose of the 'helm dependency build' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-dependency-build-command

- A. To build a Docker image for a chart
- B. To compile chart templates into Kubernetes manifests
- C. To rebuild the dependencies of a chart
- D. To create a build pipeline for chart development

**Answer:** To rebuild the dependencies of a chart

**Explanation:** The 'helm dependency build' command rebuilds the charts/ directory based on the contents of Chart.yaml. Unlike 'helm dependency update', it doesn't download the dependencies if they don't exist but will rebuild the dependencies from local cache if possible.

### What is the purpose of the 'helm test' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-test-command

- A. To run unit tests for a chart
- B. To test Helm's connection to the Kubernetes cluster
- C. To run tests defined in a release's test hooks
- D. To validate a chart's structure and templates

**Answer:** To run tests defined in a release's test hooks

**Explanation:** The 'helm test' command runs the tests defined in a release's test hooks. These tests are defined in the chart's templates directory with a special 'helm.sh/hook: test' annotation and help verify that the release is working as expected.

### What is the purpose of the 'helm upgrade --install' flag combination?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-upgrade-install-flag-combination

- A. To force reinstallation of a release
- B. To upgrade a release only if it already exists
- C. To install a release if it doesn't exist, or upgrade it if it does
- D. To install a release and then immediately upgrade it

**Answer:** To install a release if it doesn't exist, or upgrade it if it does

**Explanation:** The 'helm upgrade --install' flag combination (sometimes called 'upsert') will install a release if it doesn't already exist, or upgrade it if it does. This is useful for scripts and CI/CD pipelines where you don't want to handle the install and upgrade cases separately.

### What is the main difference between Helm 2 and Helm 3?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-main-difference-between-helm-2-and-helm-3

- A. Helm 3 uses a different templating language
- B. Helm 3 removed the server-side component (Tiller)
- C. Helm 3 can only be used with newer Kubernetes versions
- D. Helm 3 uses a completely different chart format

**Answer:** Helm 3 removed the server-side component (Tiller)

**Explanation:** The most significant change in Helm 3 was the removal of Tiller, the server-side component used in Helm 2. This improved security by using Kubernetes' role-based access control (RBAC) directly and eliminated the need for cluster-wide installation privileges.

### What is the purpose of the 'helm completion' command?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-completion-command

- A. To mark a chart as complete
- B. To generate shell completion scripts for Helm commands
- C. To complete a partially installed release
- D. To verify that a chart has all required files

**Answer:** To generate shell completion scripts for Helm commands

**Explanation:** The 'helm completion' command generates shell completion scripts for Helm commands. These scripts can be sourced or installed in your shell profile to enable tab completion for Helm commands, making it easier and faster to use Helm.

### What is the default chart type used to deploy applications (not a library chart)?

Helm, Medium (Advanced), Charts. https://k8wiz.com/uquiz/what-is-the-default-chart-type-used-to-deploy-applications-not-a-library-chart

- A. application
- B. service
- C. application/chart
- D. chart

**Answer:** application

**Explanation:** Chart.yaml's type field has two values: application, the default, and library. An application chart renders resources that get installed, while a library chart only provides helpers for other charts and can't be installed on its own.

### Which field in values.yaml is typically used for configuring image tags used in templates?

Helm, Medium (Advanced), Templates. https://k8wiz.com/uquiz/which-field-in-valuesyaml-is-typically-used-for-configuring-image-tags-used-in-templates

- A. image.tag
- B. metadata.tag
- C. chart.version
- D. imageVersion

**Answer:** image.tag

**Explanation:** There's no required key, but nearly every chart uses image.repository and image.tag, often with image.pullPolicy, and combines them in the template. Charts created with helm create fall back to the chart's appVersion when image.tag is empty.

### Which Helm template object gives access to the release name, namespace and revision?

Helm, Medium (Advanced), Templates. https://k8wiz.com/uquiz/which-helm-template-object-gives-access-to-the-release-name-namespace-and-revision

- A. .Release
- B. .Chart
- C. .Values
- D. .Capabilities

**Answer:** .Release

**Explanation:** .Release holds data about the current release: Name, Namespace, Revision, IsInstall, IsUpgrade and Service, which is always Helm. .Chart comes from Chart.yaml, .Values from the merged values, and .Capabilities describes the cluster.

### What function can be used in templates to include other template blocks defined with 'define'?

Helm, Medium (Advanced), Templates. https://k8wiz.com/uquiz/what-function-can-be-used-in-templates-to-include-other-template-blocks-defined-with-define

- A. include
- B. render
- C. inject
- D. call

**Answer:** include

**Explanation:** include renders a template defined with define and returns it as a string, so you can pipe the result, as in {{ include "mychart.labels" . | nindent 4 }}. The built-in template action renders too, but its output can't be piped, which is why charts use include.

### What file locks dependency versions for reproducible installs?

Helm, Medium (Advanced), Charts. https://k8wiz.com/uquiz/what-file-locks-dependency-versions-for-reproducible-installs

- A. Chart.lock
- B. values.lock
- C. dependencies.lock
- D. Chart.lock.yml

**Answer:** Chart.lock

**Explanation:** helm dependency update resolves the version ranges in Chart.yaml's dependencies and writes the exact versions and a digest to Chart.lock. helm dependency build then downloads exactly those versions, so every build gets the same dependencies. Commit Chart.lock with the chart.

### Which flag to 'helm install' will wait until resources are ready before marking the release as deployed?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-flag-to-helm-install-will-wait-until-resources-are-ready-before-marking-the-release-as-deployed

- A. --wait
- B. --ready
- C. --block
- D. --confirm

**Answer:** --wait

**Explanation:** With --wait, Helm waits until Pods, PersistentVolumeClaims, Services and the minimum Pods of Deployments, StatefulSets and ReplicaSets are ready before marking the release successful, up to --timeout, 5 minutes by default. Without it, Helm returns as soon as the API server accepts the manifests.

### Which flag to 'helm uninstall' keeps the release history but removes resources?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-flag-to-helm-uninstall-keeps-the-release-history-but-removes-resources

- A. --keep-history
- B. --keep
- C. --preserve-history
- D. --no-history

**Answer:** --keep-history

**Explanation:** helm uninstall --keep-history deletes the release's resources but keeps its release records, so helm history and helm list --uninstalled still show it. Without the flag, Helm removes the history too.

### What template object provides access to files inside the chart package (like files in the 'files/' dir)?

Helm, Medium (Advanced), Templates. https://k8wiz.com/uquiz/what-template-object-provides-access-to-files-inside-the-chart-package-like-files-in-the-files-dir

- A. .Files
- B. .Chart.Files
- C. .Resources
- D. .Assets

**Answer:** .Files

**Explanation:** .Files gives templates access to the chart's other files, with methods such as .Files.Get, .Files.Glob and .Files.AsConfig. Files inside templates/ and files excluded by .helmignore aren't available through it.

### Which function allows templates to fail with a custom error if a required value is missing?

Helm, Medium (Advanced), Templates. https://k8wiz.com/uquiz/which-function-allows-templates-to-fail-with-a-custom-error-if-a-required-value-is-missing

- A. required
- B. must
- C. assert
- D. mandatory

**Answer:** required

**Explanation:** required stops rendering with your message when a value is missing, as in {{ required "image.tag is required" .Values.image.tag }}. Helm also has fail, but it always fails, so you'd wrap it in your own if condition.

### What is an OCI registry in the context of Helm?

Helm, Medium (Advanced), Repositories. https://k8wiz.com/uquiz/what-is-an-oci-registry-in-the-context-of-helm

- A. A container registry format for storing charts
- B. A new chart template type
- C. A Helm plugin
- D. A remote chart index

**Answer:** A container registry format for storing charts

**Explanation:** Since Helm 3.8, charts can be stored as OCI artifacts in registries such as GHCR, ECR or Harbor and addressed as oci://registry/path/chart. You push them with helm push and log in with helm registry login, and no index.yaml is needed.

### Which command logs you into an OCI registry for pushing/pulling charts?

Helm, Medium (Advanced), Repositories. https://k8wiz.com/uquiz/which-command-logs-you-into-an-oci-registry-for-pushingpulling-charts

- A. helm registry login
- B. helm oci login
- C. helm repo login
- D. helm login

**Answer:** helm registry login

**Explanation:** helm registry login stores credentials for an OCI registry, so helm push, helm pull and helm install with oci:// URLs can use it. helm repo add doesn't apply to OCI registries, which have no repository index.

### What is a library chart used for?

Helm, Medium (Advanced), Charts. https://k8wiz.com/uquiz/what-is-a-library-chart-used-for

- A. Packaging binaries
- B. Defining reusable template helpers
- C. Storing images
- D. Running tests

**Answer:** Defining reusable template helpers

**Explanation:** A library chart has type: library in Chart.yaml and only contains named templates, which other charts add as a dependency and call with include. It renders no resources and can't be installed on its own.

### Which field in Chart.yaml specifies the chart API version (e.g., v1) and affects Chart.lock format?

Helm, Medium (Advanced), Charts. https://k8wiz.com/uquiz/which-field-in-chartyaml-specifies-the-chart-api-version-eg-v1-and-affects-chartlock-format

- A. apiVersion
- B. chartVersion
- C. helmVersion
- D. schemaVersion

**Answer:** apiVersion

**Explanation:** apiVersion v2 is for charts that need Helm 3 or later; they declare dependencies inside Chart.yaml and lock them in Chart.lock. v1 charts, from Helm 2, used a separate requirements.yaml and requirements.lock.

### What is the recommended way to store sensitive data for templates instead of hard-coding in values?

Helm, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-recommended-way-to-store-sensitive-data-for-templates-instead-of-hard-coding-in-values

- A. Put secrets in values.yaml
- B. Use Kubernetes Secrets or external secret managers
- C. Store in Chart.yaml
- D. Use ConfigMaps openly

**Answer:** Use Kubernetes Secrets or external secret managers

**Explanation:** Values files usually end up in Git, so they shouldn't hold passwords or keys. Have the chart reference an existing Kubernetes Secret, or manage the secret with a tool such as External Secrets Operator, SOPS or Sealed Secrets.

### Which flag to 'helm install' creates the namespace if it doesn't already exist?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-flag-to-helm-install-creates-the-namespace-if-it-doesnt-already-exist

- A. --create-namespace
- B. --namespace-create
- C. --ensure-namespace
- D. --make-namespace

**Answer:** --create-namespace

**Explanation:** helm install --create-namespace creates the --namespace target if it doesn't exist yet. Helm doesn't treat that namespace as part of the release, so helm uninstall leaves it behind.

### What is the purpose of 'helm repo index'?

Helm, Medium (Advanced), Repositories. https://k8wiz.com/uquiz/what-is-the-purpose-of-helm-repo-index

- A. Create an index.yaml for a chart repository
- B. Update remote repo
- C. Validate repository charts
- D. Publish charts to OCI

**Answer:** Create an index.yaml for a chart repository

**Explanation:** helm repo index <dir> scans a directory of packaged charts and writes index.yaml, the file that turns the directory into a chart repository once it's served over HTTP. --url sets the base URL for chart links, and --merge adds new charts to an existing index.

### Which command will push a chart to an OCI registry?

Helm, Medium (Advanced), Repositories. https://k8wiz.com/uquiz/which-command-will-push-a-chart-to-an-oci-registry

- A. helm push
- B. helm registry push
- C. helm oci push
- D. helm chart push

**Answer:** helm push

**Explanation:** helm push <chart>.tgz oci://registry.example.com/charts uploads a packaged chart to an OCI registry, tagged with the chart's version. Package the chart first with helm package, and log in with helm registry login.

### What command checks for available plugin commands and manages Helm plugins?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-command-checks-for-available-plugin-commands-and-manages-helm-plugins

- A. helm plugin
- B. helm plugin list
- C. helm plugins
- D. helm manage plugins

**Answer:** helm plugin

**Explanation:** helm plugin groups the plugin subcommands: install, list, uninstall and update. Plugins add commands of their own, such as helm diff.

### What is the effect of the --atomic flag when used with helm install or upgrade?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-effect-of-the-atomic-flag-when-used-with-helm-install-or-upgrade

- A. Roll back on failure
- B. Ignore failures
- C. Force install
- D. Only validate templates

**Answer:** Roll back on failure

**Explanation:** --atomic rolls back a failed upgrade, or uninstalls a failed install, and turns on --wait. In Helm 4 the flag is called --rollback-on-failure.

### Which template function returns the YAML representation of an object?

Helm, Medium (Advanced), Templates. https://k8wiz.com/uquiz/which-template-function-returns-the-yaml-representation-of-an-object

- A. toYaml
- B. toYAML
- C. yamlify
- D. dumpYaml

**Answer:** toYaml

**Explanation:** toYaml turns a value, such as a map from values.yaml, into YAML text, usually piped into nindent, as in {{ toYaml .Values.resources | nindent 12 }}. Function names are case-sensitive, so toYAML doesn't exist.

### What does the 'helm registry login' authenticate against when using OCI registries?

Helm, Medium (Advanced), Repositories. https://k8wiz.com/uquiz/what-does-the-helm-registry-login-authenticate-against-when-using-oci-registries

- A. OCI registry endpoint (e.g., registry.example.com)
- B. Chart repository index
- C. Artifact Hub
- D. Helm Hub

**Answer:** OCI registry endpoint (e.g., registry.example.com)

**Explanation:** It authenticates against the registry host, such as ghcr.io or registry.example.com, and stores the credentials for later push and pull commands. OCI registries have no chart index, so classic repository commands like helm repo add don't apply to them.

### How do library charts differ from regular charts in Chart.yaml?

Helm, Medium (Advanced), Charts. https://k8wiz.com/uquiz/how-do-library-charts-differ-from-regular-charts-in-chartyaml

- A. They set 'type: library' and have no templates rendered into resources
- B. They are stored in a different repo
- C. They cannot have dependencies
- D. They are executed as jobs

**Answer:** They set 'type: library' and have no templates rendered into resources

**Explanation:** type: library tells Helm the chart only provides named templates. It renders no resources, and Helm refuses to install it directly; other charts list it as a dependency instead.

### How can you pass a file's contents into a value using the CLI?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/how-can-you-pass-a-files-contents-into-a-value-using-the-cli

- A. --set-file key=path
- B. --file key=path
- C. --set-file-key path
- D. --values-file

**Answer:** --set-file key=path

**Explanation:** --set-file key=path sets a value to the contents of a file. It suits scripts, certificates or configuration files that would be awkward to escape on the command line with --set.

### What is semantic versioning used for in Chart.yaml 'version' field?

Helm, Medium (Advanced), Charts. https://k8wiz.com/uquiz/what-is-semantic-versioning-used-for-in-chartyaml-version-field

- A. Track chart API versions
- B. Manage chart release versions using semver
- C. Set Kubernetes compatibility
- D. Define app version only

**Answer:** Manage chart release versions using semver

**Explanation:** version is the chart's own version and must follow SemVer 2, such as 1.4.2. Bump it whenever the chart changes; appVersion is a separate field for the version of the application inside.

### What does 'helm upgrade --reuse-values' do?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-does-helm-upgrade-reuse-values-do

- A. Keeps previous release values and merges new ones
- B. Discard previous values
- C. Replaces values with defaults
- D. Force upgrade ignoring values

**Answer:** Keeps previous release values and merges new ones

**Explanation:** --reuse-values starts from the values of the last release and merges new --set and -f values on top. It ignores the new chart version's defaults, so keys added in that version can be missing. --reset-values does the opposite and uses only the new chart's defaults plus what you pass.

### Which change in Helm v4 may require updates to automation regarding CLI flags?

Helm, Medium (Advanced), Helm v4. https://k8wiz.com/uquiz/which-change-in-helm-v4-may-require-updates-to-automation-regarding-cli-flags

- A. Flags removed completely
- B. Some flags renamed (deprecated warnings)
- C. Flags behavior unchanged
- D. Flags moved to config file

**Answer:** Some flags renamed (deprecated warnings)

**Explanation:** Helm 4 renames --atomic to --rollback-on-failure and --force to --force-replace. The old names print deprecation warnings, so update scripts and CI pipelines that use them.

### Which Helm command lists the releases stuck in a pending state in every namespace?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-helm-command-lists-the-releases-stuck-in-a-pending-state-in-every-namespace

- A. helm list --pending -A
- B. helm status --pending -A
- C. helm history --pending -A
- D. helm list --stuck -A

**Answer:** helm list --pending -A

**Explanation:** helm list filters releases by status with flags such as --deployed, --failed and --pending, and -A (--all-namespaces) widens the search to the whole cluster. helm status and helm history work on one named release and have no --pending flag.

### Which helm history flag in Helm 4.3 adds a table column showing the revision each rollback restored?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-helm-history-flag-in-helm-43-adds-a-table-column-showing-the-revision-each-rollback-restored

- A. --show-rollback-target
- B. --include-rollbacks
- C. --rollback-column
- D. --show-rollback-revision

**Answer:** --show-rollback-revision

**Explanation:** helm history --show-rollback-revision adds a ROLLBACK column filled from the new rollback_revision field that Helm 4.3 stores on rollback revisions. JSON and YAML output include rollback_revision without the flag. Rollbacks made with an older Helm leave the field empty.

### What does the --take-ownership flag on helm install and helm upgrade do?

Helm, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-does-the-take-ownership-flag-on-helm-install-and-helm-upgrade-do

- A. It deletes existing objects and recreates them from the chart
- B. It moves the release record into the namespace of each object
- C. It adopts only objects that already have Helm's ownership label
- D. It skips the ownership check and adopts existing chart objects

**Answer:** It skips the ownership check and adopts existing chart objects

**Explanation:** Added in Helm 3.17, --take-ownership makes Helm adopt every existing object the chart renders without checking its managed-by label or release annotations, then writes its own metadata onto them. It doesn't check whether another release owns the object, so review the objects first.

### helm template fails at <.Values.database.primary.host> with nil pointer evaluating interface {}.primary. Which key is missing from the values?

Helm, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/helm-template-fails-at-valuesdatabaseprimaryhost-with-nil-pointer-evaluating-interface-primary-which-key-is-missing-from-the-val

- A. database
- B. primary
- C. host
- D. Values

**Answer:** database

**Explanation:** Reading a missing key returns nothing, and the failure comes when the template tries to read the next field from that nothing. The message names that next field, primary, so the missing key is the one before it, database. A default in values.yaml or a with block around the access fixes it.

## Expert (Hard): 32 questions

Interactive quiz: https://k8wiz.com/helm/quiz/hard

### What is the purpose of the 'helm verify' command?

Helm, Hard (Expert), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-verify-command

- A. To verify that a chart follows best practices
- B. To verify that a chart package has not been tampered with
- C. To verify that a release is working correctly
- D. To verify connectivity to a chart repository

**Answer:** To verify that a chart package has not been tampered with

**Explanation:** The 'helm verify' command verifies that a chart package (a .tgz file) has not been tampered with by checking its provenance file (a .prov file). This helps ensure the integrity and authenticity of charts downloaded from repositories.

### What is the purpose of the 'helm get hooks' command?

Helm, Hard (Expert), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-helm-get-hooks-command

- A. To list all available hook types
- B. To show the hook scripts defined in a chart
- C. To display the hook resources for a release
- D. To extract hook templates from a chart

**Answer:** To display the hook resources for a release

**Explanation:** The 'helm get hooks' command shows the hook resources defined for a specific release. These are Kubernetes resources with special annotations that Helm uses to perform actions at specific points in a release's lifecycle.

### Which Helm capability provides cluster information like API versions available?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/which-helm-capability-provides-cluster-information-like-api-versions-available

- A. .Capabilities
- B. .Kube
- C. .ClusterInfo
- D. .Server

**Answer:** .Capabilities

**Explanation:** .Capabilities describes the cluster Helm renders for: .Capabilities.KubeVersion, the Helm version, and .Capabilities.APIVersions with a Has method. Charts use it to pick an API version, for example only creating a resource when its API exists.

### Which annotation is commonly used to mark a resource as a Helm hook?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/which-annotation-is-commonly-used-to-mark-a-resource-as-a-helm-hook

- A. helm.sh/hook
- B. helm.hook
- C. helm.sh/annotate
- D. helm.hook.type

**Answer:** helm.sh/hook

**Explanation:** A hook is an ordinary manifest with the helm.sh/hook annotation naming one or more events, such as pre-install or post-upgrade. helm.sh/hook-weight orders hooks of the same event, and helm.sh/hook-delete-policy decides when Helm deletes them. Hook resources aren't managed as part of the release.

### Which manifest hook weight determines order when multiple hooks of the same type run?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/which-manifest-hook-weight-determines-order-when-multiple-hooks-of-the-same-type-run

- A. hook.weight
- B. helm.sh/hook-weight
- C. helm.sh/hook-order
- D. helm.sh/hook-priority

**Answer:** helm.sh/hook-weight

**Explanation:** Hooks of the same event run in ascending order of helm.sh/hook-weight, so -5 runs before 0 and 5. The weight is written as a string in the annotation, and hooks with the same weight are sorted by kind and then by name.

### Which command can render templates but also show Kubernetes object diffs against the cluster when combined with other tools?

Helm, Hard (Expert), Commands. https://k8wiz.com/uquiz/which-command-can-render-templates-but-also-show-kubernetes-object-diffs-against-the-cluster-when-combined-with-other-tools

- A. helm diff
- B. helm show diff
- C. helm compare
- D. helm manifest --diff

**Answer:** helm diff

**Explanation:** helm diff is a widely used plugin, not a built-in command. 'helm diff upgrade <release> <chart>' renders the chart and shows what would change compared with the deployed release, which teams often run in CI before helm upgrade.

### What does the 'lookup' function in templates do?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/what-does-the-lookup-function-in-templates-do

- A. Query the Kubernetes API for live resources
- B. Search chart dependencies
- C. Lookup values in values.yaml
- D. Find template blocks

**Answer:** Query the Kubernetes API for live resources

**Explanation:** lookup reads live objects from the API server while the chart renders, for example an existing Secret, and returns an empty result when nothing matches. With helm template or a client-side dry run it always returns empty, so charts that use it need a fallback.

### Which function trims trailing newlines from a string in templates?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/which-function-trims-trailing-newlines-from-a-string-in-templates

- A. chomp "\n"
- B. trimSuffix "\n"
- C. stripNewline "\n"
- D. nindent 2

**Answer:** trimSuffix "\n"

**Explanation:** Helm has no chomp or stripNewline function. trimSuffix "\n" removes one trailing newline, and trim removes all leading and trailing whitespace, newlines included. nindent does the opposite: it adds a newline and indentation.

### How can you override a nested map value via the command line?

Helm, Hard (Expert), Commands. https://k8wiz.com/uquiz/how-can-you-override-a-nested-map-value-via-the-command-line

- A. --set parent:child=value
- B. --set parent/child=value
- C. --set-file parent.child=value
- D. --set parent.child=value

**Answer:** --set parent.child=value

**Explanation:** --set uses dots for nesting, so --set image.tag=1.2.3 sets tag under image. To use a literal dot in a key, escape it with a backslash, as in kubernetes\.io/os, and use --set-string to keep a value from being read as a number or boolean.

### Which setting would you use to make a template helper available to child charts (subcharts)?

Helm, Hard (Expert), Charts. https://k8wiz.com/uquiz/which-setting-would-you-use-to-make-a-template-helper-available-to-child-charts-subcharts

- A. chartHelpers: true in the parent's Chart.yaml
- B. None, because named templates are shared across the chart tree
- C. subchartInherit: true in the parent's values.yaml
- D. parentTemplates: true on the dependency entry

**Answer:** None, because named templates are shared across the chart tree

**Explanation:** Template names are global in Helm, so a helper defined in a parent or a subchart can be included from any chart in the tree. That's why helpers are prefixed with the chart name, as in mychart.labels, to avoid clashes. Values are different: a subchart only sees its own section and global.

### Which Helm feature helps ensure chart values conform to a schema (like types and required fields)?

Helm, Hard (Expert), Charts. https://k8wiz.com/uquiz/which-helm-feature-helps-ensure-chart-values-conform-to-a-schema-like-types-and-required-fields

- A. values.schema.json (values validation)
- B. Chart.lock enforcement
- C. helm lint rules
- D. Chart.schema.yaml

**Answer:** values.schema.json (values validation)

**Explanation:** A chart can ship values.schema.json, a JSON Schema that Helm checks the merged values against during install, upgrade, lint and template. Wrong types or missing required keys stop the command with an error naming the field.

### Which Helm feature can help modify rendered manifests before they are applied to the cluster?

Helm, Hard (Expert), Commands. https://k8wiz.com/uquiz/which-helm-feature-can-help-modify-rendered-manifests-before-they-are-applied-to-the-cluster

- A. post-renderer
- B. preprocessor
- C. post-apply hooks
- D. manifest filter

**Answer:** post-renderer

**Explanation:** A post-renderer is a program that receives the manifests Helm rendered and returns changed ones before Helm applies them. A common use is running kustomize to patch a third-party chart without forking it.

### Which command explains why a resource failed during a helm install by showing events/logs (combining kubectl)?

Helm, Hard (Expert), Commands. https://k8wiz.com/uquiz/which-command-explains-why-a-resource-failed-during-a-helm-install-by-showing-eventslogs-combining-kubectl

- A. helm status --debug
- B. helm get events
- C. There is no single helm command; use kubectl describe/pod logs
- D. helm explain errors

**Answer:** There is no single helm command; use kubectl describe/pod logs

**Explanation:** Helm reports that an install or upgrade failed or timed out, but not why a Pod didn't start. Use kubectl describe and kubectl get events to see scheduling and image errors, and kubectl logs for crashes.

### Which field in a hook's annotations sets a timeout for hook execution?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/which-field-in-a-hooks-annotations-sets-a-timeout-for-hook-execution

- A. A helm.sh/hook-timeout annotation
- B. A helm.sh/hook-weight value in seconds
- C. None; the command's --timeout applies
- D. The helm.sh/hook-delete-policy annotation

**Answer:** None; the command's --timeout applies

**Explanation:** Hooks have no timeout annotation. Helm waits for each hook up to the --timeout of the install or upgrade, 5 minutes by default, and a Job hook counts as done when it completes. helm.sh/hook-weight sets the order, and helm.sh/hook-delete-policy sets when hook resources are removed.

### How do Helm 3 and Helm 4 apply changes to the cluster during an install or upgrade?

Helm, Hard (Expert), Concepts. https://k8wiz.com/uquiz/how-do-helm-3-and-helm-4-apply-changes-to-the-cluster-during-an-install-or-upgrade

- A. Both delete and recreate every resource on each upgrade
- B. Helm 3 uses server-side apply; Helm 4 switched to kubectl replace
- C. Helm 3 does a three-way merge; Helm 4 uses server-side apply for new releases
- D. Both diff only the new manifest against the last release, ignoring live state

**Answer:** Helm 3 does a three-way merge; Helm 4 uses server-side apply for new releases

**Explanation:** Helm 3 builds each patch from three inputs: the manifest from the previous release, the object in the cluster, and the newly rendered manifest. Helm 4 installs new releases with Kubernetes server-side apply, which tracks field ownership on the API server. On upgrade or rollback, Helm 4 keeps the release's previous apply method, so releases created by Helm 3 stay on client-side apply unless you pass --server-side.

### Where does Helm 3 store release information by default?

Helm, Hard (Expert), Architecture. https://k8wiz.com/uquiz/where-does-helm-3-store-release-information-by-default

- A. In a ConfigMap in kube-system named after the release
- B. In Secrets of type helm.sh/release.v1 in the release's namespace
- C. In a HelmRelease custom resource in the release's namespace
- D. In ~/.cache/helm on the machine that ran the install

**Answer:** In Secrets of type helm.sh/release.v1 in the release's namespace

**Explanation:** Each release revision is a Secret named sh.helm.release.v1.<release>.v<revision> that holds the chart, values and rendered manifest in compressed, encoded form. Helm 2 kept releases in ConfigMaps managed by Tiller in kube-system. The HELM_DRIVER environment variable switches storage to ConfigMaps, memory or SQL.

### A chart has a pre-upgrade Job hook with no helm.sh/hook-delete-policy annotation. What happens to the Job left from the previous upgrade when the hook runs again?

Helm, Hard (Expert), Concepts. https://k8wiz.com/uquiz/a-chart-has-a-pre-upgrade-job-hook-with-no-helmshhook-delete-policy-annotation-what-happens-to-the-job-left-from-the-previous-up

- A. The new Job fails because one with that name already exists
- B. Helm deletes it just before creating the new Job
- C. Helm keeps both and adds a revision suffix to the new one
- D. Helm deleted it right after it succeeded last time

**Answer:** Helm deletes it just before creating the new Job

**Explanation:** Hook resources aren't tracked as part of the release, so they stay in the cluster after they run. When no delete policy is set, Helm applies before-hook-creation, which removes the previous resource just before creating the new one. Use hook-succeeded or hook-failed to clean up right after the hook finishes.

### What does the annotation helm.sh/resource-policy: keep do on a resource in a chart?

Helm, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-does-the-annotation-helmshresource-policy-keep-do-on-a-resource-in-a-chart

- A. Helm never updates the resource again after the first install
- B. Kubernetes blocks kubectl delete on the resource until it's removed
- C. Helm keeps every past revision of the resource in release history
- D. Helm leaves the resource behind when it would otherwise delete it

**Answer:** Helm leaves the resource behind when it would otherwise delete it

**Explanation:** Use it for objects such as a PersistentVolumeClaim that must survive an uninstall. Helm leaves the object in place and stops managing it, so cleaning it up later is your job.

### Which values from the parent chart can a subchart named 'redis' read?

Helm, Hard (Expert), Concepts. https://k8wiz.com/uquiz/which-values-from-the-parent-chart-can-a-subchart-named-redis-read

- A. All of the parent's values, merged over the subchart's defaults
- B. None, because subcharts only read their own values.yaml
- C. Values under the parent's 'redis:' key, plus 'global:'
- D. Only values passed to the parent with --set or --values

**Answer:** Values under the parent's 'redis:' key, plus 'global:'

**Explanation:** Helm passes a subchart the section of the parent's values that matches the subchart's name, merged over the subchart's own defaults, and the subchart reads it as plain .Values. Values under 'global' are copied to every chart, so .Values.global works the same everywhere. A subchart can't see the parent's other values, which keeps charts reusable.

### values.yaml contains host: "{{ .Release.Name }}.example.com". What do you write in a template so the output contains the release name instead of the literal braces?

Helm, Hard (Expert), Concepts. https://k8wiz.com/uquiz/valuesyaml-contains-host-releasename-examplecom-what-do-you-write-in-a-template-so-the-output-contains-the-release-name-instead

- A. {{ .Values.host | quote }}
- B. {{ include .Values.host . }}
- C. Nothing, because Helm renders values files as templates
- D. {{ tpl .Values.host . }}

**Answer:** {{ tpl .Values.host . }}

**Explanation:** Helm doesn't render values files, so .Values.host is the raw string with the braces in it. The tpl function renders a string as a template with the context you pass, usually the root '.'. include takes the name of a defined template, not template text.

### In Helm 4, which wait strategy does helm upgrade use when you don't pass the --wait flag at all?

Helm, Hard (Expert), Helm v4. https://k8wiz.com/uquiz/in-helm-4-which-wait-strategy-does-helm-upgrade-use-when-you-dont-pass-the-wait-flag-at-all

- A. watcher
- B. legacy
- C. none
- D. hookOnly

**Answer:** hookOnly

**Explanation:** Without --wait, Helm 4 uses the hookOnly strategy, which waits for hooks but not for the release's workloads to become ready. A bare --wait selects watcher, which follows resource status, and --wait=legacy keeps the Helm 3 behavior. --rollback-on-failure also turns on watcher.

### A Helm release's only revision is stuck in pending-install. Which recovery works?

Helm, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/a-helm-releases-only-revision-is-stuck-in-pending-install-which-recovery-works

- A. helm rollback the release to revision 0
- B. helm uninstall it, then install it again
- C. helm upgrade --install with --force-replace
- D. helm install the same name with --replace

**Answer:** helm uninstall it, then install it again

**Explanation:** There is no earlier revision to roll back to, and helm upgrade --install still refuses because the latest revision is pending. helm install --replace only reuses a name whose last revision is failed or uninstalled. Uninstalling removes what the first attempt created, after which a normal install works.

### Why can a Helm 4 upgrade stopped with SIGKILL leave the release in pending-upgrade when Ctrl+C doesn't?

Helm, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/why-can-a-helm-4-upgrade-stopped-with-sigkill-leave-the-release-in-pending-upgrade-when-ctrlc-doesnt

- A. Ctrl+C makes Helm roll back first, which SIGKILL never allows
- B. SIGKILL stops the API request that removes the release lock
- C. Helm traps SIGINT and SIGTERM to record failed; SIGKILL can't be trapped
- D. Kubernetes deletes the release Secret on SIGINT but not on SIGKILL

**Answer:** Helm traps SIGINT and SIGTERM to record failed; SIGKILL can't be trapped

**Explanation:** During an upgrade, Helm listens for SIGINT and SIGTERM, cancels the operation and records the revision as failed, which doesn't block later upgrades. SIGKILL ends the process at once, so the revision keeps its pending-upgrade status. That's why CI job timeouts should be longer than Helm's own --timeout.

### Why can helm uninstall in Helm 4.3 leave behind an object listed in the release's stored manifest?

Helm, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/why-can-helm-uninstall-in-helm-43-leave-behind-an-object-listed-in-the-releases-stored-manifest

- A. Its Helm ownership label or annotations don't match this release
- B. It was changed with kubectl edit after the last helm upgrade ran
- C. It lives in a namespace other than the namespace of the release
- D. It was created by a template that also defines a pre-install hook

**Answer:** Its Helm ownership label or annotations don't match this release

**Explanation:** Since 4.3.0, uninstall fetches each object and deletes it only if it has app.kubernetes.io/managed-by: Helm and meta.helm.sh/release-name and release-namespace annotations matching the release. Objects adopted by another release, or whose ownership can't be read (for example without get permission), are skipped and listed. The check compares the release-namespace annotation, not the object's own namespace.

### In a Helm 4.3 template, what does durationSeconds return when its input can't be parsed, such as "45 s"?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/in-a-helm-43-template-what-does-durationseconds-return-when-its-input-cant-be-parsed-such-as-45-s

- A. An error that stops the template from rendering
- B. The original input string, passed through as is
- C. 0, and the template keeps rendering without error
- D. nil, which the template renders as an empty value

**Answer:** 0, and the template keeps rendering without error

**Explanation:** The Helm 4.3 duration helpers such as durationSeconds and durationMilliseconds return 0 on a parse error. Only mustToDuration fails the render, so pipe a value through mustToDuration first when a silent 0 would be dangerous, for example in terminationGracePeriodSeconds.

### What did Helm 4.3.1 change for a chart with a crds/ directory installed without the --wait flag?

Helm, Hard (Expert), Helm v4. https://k8wiz.com/uquiz/what-did-helm-431-change-for-a-chart-with-a-crds-directory-installed-without-the-wait-flag

- A. Helm installs the crds/ directory again on each helm upgrade
- B. Helm waits for the CRDs with the watcher strategy before templates
- C. Helm skips the crds/ directory unless --include-crds is passed
- D. Helm applies the CRDs and templates in a single server-side apply

**Answer:** Helm waits for the CRDs with the watcher strategy before templates

**Explanation:** Without --wait, Helm 4 uses the hookOnly strategy, and before 4.3.1 that skipped waiting for CRDs too, so custom resources could be sent before their CRDs were established. 4.3.1 uses the watcher strategy for the CRD check (up to 60 seconds) while the rest of the release still follows hookOnly. Upgrades still never touch the crds/ directory.

### During helm upgrade, which objects does Helm check for an invalid ownership metadata conflict?

Helm, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/during-helm-upgrade-which-objects-does-helm-check-for-an-invalid-ownership-metadata-conflict

- A. Only objects added since the previous revision
- B. Every object rendered by the new chart version
- C. Only objects whose spec changed in this revision
- D. Objects the new chart removes from the release

**Answer:** Only objects added since the previous revision

**Explanation:** Helm diffs the stored manifest of the previous revision against the new one by kind and name. Only objects that are new in this revision go through the ownership check, which is why an upgrade that adds an existing ConfigMap to the chart fails with unable to continue with update. Objects already in the release are updated without the check.

### You re-annotate ConfigMap flags so release 'platform' owns it, then upgrade release 'web' with a chart that no longer renders it. What happens to flags?

Helm, Hard (Expert), Concepts. https://k8wiz.com/uquiz/you-re-annotate-configmap-flags-so-release-platform-owns-it-then-upgrade-release-web-with-a-chart-that-no-longer-renders-it-what

- A. Helm skips it because its annotations name another release
- B. The upgrade fails with an invalid ownership metadata error
- C. Helm deletes it unless it has helm.sh/resource-policy: keep
- D. Helm keeps it but removes its meta.helm.sh annotations

**Answer:** Helm deletes it unless it has helm.sh/resource-policy: keep

**Explanation:** On upgrade, Helm deletes objects that were in the previous manifest but not in the new one, and the only thing it checks on the live object first is the helm.sh/resource-policy: keep annotation. It doesn't check who owns the object now. The ownership check before deleting was added to helm uninstall in 4.3, not to upgrade.

### helm install --dry-run=server fails with invalid ownership metadata for one Deployment. What does this tell you about the chart's other existing objects?

Helm, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/helm-install-dry-runserver-fails-with-invalid-ownership-metadata-for-one-deployment-what-does-this-tell-you-about-the-charts-oth

- A. They all passed the ownership check and can be adopted
- B. Nothing, because Helm stops at the first object that fails
- C. They are missing from the cluster, so Helm would create them
- D. Nothing, because a server dry run never checks ownership

**Answer:** Nothing, because Helm stops at the first object that fails

**Explanation:** Helm walks the rendered objects in order and returns the first ownership error, so other conflicting objects only show up on later runs. Render the chart with helm template and pipe it to kubectl get -f - to see every existing object at once. A server dry run does run the check, unlike --dry-run=client, which never contacts the cluster.

### A template wraps .Values.database.host in required, and values.yaml leaves it empty. What does helm lint --strict report in Helm 4?

Helm, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/a-template-wraps-valuesdatabasehost-in-required-and-valuesyaml-leaves-it-empty-what-does-helm-lint-strict-report-in-helm-4

- A. An [ERROR] for the template, and lint exits non-zero
- B. A [WARNING] that --strict turns into a lint failure
- C. An [ERROR] for values.yaml naming the empty key
- D. A log line only, and the chart still passes

**Answer:** A log line only, and the chart still passes

**Explanation:** helm lint renders in lint mode, where required and fail return an empty string instead of stopping rendering, and Helm logs a missing required values warning. --strict only applies to lint's own warnings, so the chart passes. Render with helm template in CI, or add the key to values.schema.json, which lint does enforce.

### helm template suggests the --debug flag after failures. For which kind of error does --debug actually print the rendered manifests?

Helm, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/helm-template-suggests-the-debug-flag-after-failures-for-which-kind-of-error-does-debug-actually-print-the-rendered-manifests

- A. A parse error such as function not defined
- B. An execution error raised by required or fail
- C. A YAML parse error on one rendered file
- D. A nil pointer error on a nested value

**Answer:** A YAML parse error on one rendered file

**Explanation:** A YAML parse error happens after every template has rendered, so Helm has output to show and --debug prints it before the error. Parse and execution errors stop rendering before any manifest exists, so --debug adds only log lines. The line number in a YAML parse error refers to the rendered output, not the template source.

### A template reads an existing Secret with the lookup function. What does lookup return when you run helm template with its default flags?

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/a-template-reads-an-existing-secret-with-the-lookup-function-what-does-lookup-return-when-you-run-helm-template-with-its-default

- A. The Secret, read using your kubeconfig context
- B. An empty map, as no cluster is contacted
- C. An error saying lookup needs a cluster
- D. A nil value, so any field access fails

**Answer:** An empty map, as no cluster is contacted

**Explanation:** helm template defaults to --dry-run=client, which never connects to the cluster, and in that mode lookup is a placeholder that returns an empty map. Templates that branch on lookup therefore take the not found path locally. Pass --dry-run=server to run lookup against the real cluster.
