Question 44 of 997
Cloud Native ArchitecturemediumMultiple ChoiceObjective-mapped

Terraform for Infrastructure as Code

This KCNA practice question tests your understanding of cloud native architecture. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: infrastructure as Code (IaC). Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A team wants to implement Infrastructure as Code (IaC) for managing Kubernetes resources. Which tool is BEST suited for this purpose?

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

Terraform

Terraform is an Infrastructure as Code (IaC) tool that allows you to define and manage Kubernetes resources declaratively using HCL. It is cloud-agnostic and supports Kubernetes provider for managing clusters, pods, services, etc. While Pulumi also provides IaC capabilities, Terraform is more widely adopted for managing Kubernetes infrastructure. Helm, on the other hand, is a package manager for deploying pre-packaged applications, not an IaC tool.

Key principle: Infrastructure as Code (IaC)

Answer analysis

Option-by-option breakdown

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

  • Pulumi

    Why it's wrong here

    Pulumi is an IaC tool that can manage Kubernetes resources, but Terraform is more specialized and commonly used for this purpose within the IaC ecosystem.

  • Ansible

    Why it's wrong here

    Ansible is a configuration management tool that can interact with Kubernetes, but it is not primarily designed for IaC and lacks the declarative, state-driven approach of Terraform.

  • Terraform

    Why this is correct

    Terraform is the best choice for Infrastructure as Code (IaC) with Kubernetes because it uses a declarative language (HCL) and a dedicated Kubernetes provider to manage resources as code.

    Related concept

    Infrastructure as Code (IaC)

  • Helm

    Why it's wrong here

    Helm is a Kubernetes package manager used for installing and managing applications, not for Infrastructure as Code. It focuses on templating and releasing application charts, not on managing infrastructure resources.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Detailed technical explanation

How to think about this question

Treat this as a scenario question. Identify the problem, the constraint, and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Infrastructure as Code (IaC)
  • Terraform

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Infrastructure as Code (IaC)

Real-world example

How this comes up in practice

A practitioner preparing for the KCNA exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Infrastructure as Code (IaC) Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Review infrastructure as Code (IaC), then practise related KCNA questions on the same topic to reinforce the concept.

Related practice questions

Related KCNA practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free KCNA practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this KCNA question test?

Cloud Native Architecture — This question tests Cloud Native Architecture — Infrastructure as Code (IaC).

What is the correct answer to this question?

The correct answer is: Terraform — Terraform is an Infrastructure as Code (IaC) tool that allows you to define and manage Kubernetes resources declaratively using HCL. It is cloud-agnostic and supports Kubernetes provider for managing clusters, pods, services, etc. While Pulumi also provides IaC capabilities, Terraform is more widely adopted for managing Kubernetes infrastructure. Helm, on the other hand, is a package manager for deploying pre-packaged applications, not an IaC tool.

What should I do if I get this KCNA question wrong?

Review infrastructure as Code (IaC), then practise related KCNA questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Infrastructure as Code (IaC)

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

3 more ways this is tested on KCNA

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which CNCF project is commonly used for Infrastructure as Code to provision cloud resources?

easy
  • A.Crossplane
  • B.Envoy
  • C.Prometheus
  • D.CoreDNS

Why A: Crossplane is a CNCF project that extends the Kubernetes API to provision and manage cloud infrastructure declaratively — Infrastructure as Code using Kubernetes-style manifests and controllers. Terraform is the better-known IaC tool but is a HashiCorp product, not a CNCF project, which is exactly the distinction this question tests. Envoy is a service proxy, Prometheus is a monitoring system, and CoreDNS is a DNS server — all CNCF projects, but none of them do infrastructure provisioning.

Variation 2. An organization wants to manage infrastructure using code to ensure consistent and repeatable deployments across multiple cloud providers. Which tool is MOST suitable for this multi-cloud Infrastructure as Code approach?

medium
  • A.Terraform
  • B.Kuberntes manifests
  • C.AWS CloudFormation
  • D.Azure Resource Manager Templates

Why A: Terraform is a cloud-agnostic IaC tool that supports multiple providers, enabling consistent management across clouds.

Variation 3. Which of the following is an example of Infrastructure as Code (IaC) tool?

medium
  • A.Kubernetes
  • B.Terraform
  • C.Docker
  • D.Prometheus

Why B: Terraform is a widely used IaC tool that allows declarative definition of infrastructure across multiple cloud providers.

Keep practising

More KCNA practice questions

Last reviewed: Jun 21, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This KCNA 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 KCNA exam.