ExamGecko
Question list
Search
Search

Question 67 - Terraform Associate 003 discussion

Report
Export

You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?

A.
The Terraform CD needs you to log into Terraform Cloud first
Answers
A.
The Terraform CD needs you to log into Terraform Cloud first
B.
Terraform requires you to manually run terraform plan first
Answers
B.
Terraform requires you to manually run terraform plan first
C.
Terraform needs to install the necessary plugins first
Answers
C.
Terraform needs to install the necessary plugins first
D.
Terraform needs you to format your code according to best practices first
Answers
D.
Terraform needs you to format your code according to best practices first
Suggested answer: C

Explanation:

The reason why the apply fails after adding a new provider to the configuration and immediately runningterraform applyin the CD using the local backend is because Terraform needs to install the necessary plugins first. Terraform providers are plugins that Terraform uses to interact with various cloud services and other APIs. Each provider has a source address that determines where to download it from. When Terraform encounters a new provider in the configuration, it needs to runterraform initfirst to install the provider plugins in a local directory. Without the plugins, Terraform cannot communicate with the provider and perform the desired actions.Reference= [Provider Requirements], [Provider Installation]

asked 18/09/2024
Juliet Kihonge
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first