Courseiva
Understand IaC conceptsmediumMatchingObjective-mapped

TF-004 Understand IaC concepts Practice Question

Match each Terraform command to its primary function.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Initialize a working directory with provider plugins

Create an execution plan

Execute the actions proposed in a plan

Destroy previously-created infrastructure

Check configuration for syntax and internal consistency

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 init: Initializes a working directory containing Terraform configuration files

The correct matches are: init initializes the workspace, plan creates an execution plan, apply executes changes, destroy tears down resources. Common mistakes include confusing init with apply or plan with destroy.

Answer analysis

Option-by-option breakdown

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

  • terraform init: Initializes a working directory containing Terraform configuration files

    Why this is correct

    Terraform init is used to initialize a working directory, download provider plugins, and set up the backend.

  • terraform plan: Creates an execution plan showing what actions Terraform will take

    Why this is correct

    Terraform plan previews the changes that will be made to reach the desired state without applying them.

  • terraform apply: Applies the changes required to reach the desired state of the configuration

    Why this is correct

    Terraform apply executes the plan and makes the actual infrastructure changes.

  • terraform destroy: Destroys all resources managed by the current Terraform configuration

    Why this is correct

    Terraform destroy tears down all resources defined in the configuration.

  • terraform init: Applies changes to infrastructure

    Why it's wrong here

    Incorrect — this describes terraform apply, not init.

  • terraform plan: Destroys all resources

    Why it's wrong here

    Incorrect — this describes terraform destroy, not plan.

About these practice questions

This TF-004 question is part of Courseiva's 428-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 TF-004 practice question is part of Courseiva's free HashiCorp 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 TF-004 exam.