A developer runs `terraform plan` and it fails with a provider plugin error. Which command should they run first to resolve the issue?
Trap 1: terraform validate
Validates configuration syntax but does not download plugins.
Trap 2: terraform apply
Would attempt to apply and fail due to missing provider.
Trap 3: terraform fmt
Formats configuration files but does not resolve provider issues.
- A
terraform validate
Why wrong: Validates configuration syntax but does not download plugins.
- B
terraform apply
Why wrong: Would attempt to apply and fail due to missing provider.
- C
terraform fmt
Why wrong: Formats configuration files but does not resolve provider issues.
- D
terraform init
Downloads required provider plugins and reinitializes the backend.