Discovers all providers used in the configuration and downloads them.
B.
Validates that values are set for all required input variables.
C.
Connects to the configured backend.
D.
Discovers any remote modules and downloads them.
The Answer Is:
B
This question includes an explanation.
Explanation:
Rationale for Correct Answer: terraform init initializes the working directory: it sets up the backend, downloads providers, and installs modules. It does not validate that required input variables have values—that check occurs when running commands that evaluate the configuration (typically plan/apply), and terraform validate checks configuration structure, not whether you supplied runtime variable values.
Analysis of Incorrect Options (Distractors):
A: Yes—init installs required providers.
C: Yes—init initializes and configures the backend.
D: Yes—init retrieves and installs modules referenced by module blocks.
Key Concept: What terraform init does vs what happens at plan/apply time.
[Reference: Terraform Objectives — Understand Terraform Basics and CLI (init responsibilities and workflow)., ====================, ]
Terraform-Associate-004 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"