HashiCorp Certified: Terraform Associate — Question 234
When you include a module block in your configuration that references a module from the Terraform Registry, the “version” attribute is required.
Answer options
- A. True
- B. False
Correct answer: B
Explanation
The correct answer is B because the 'version' attribute is optional when including a module from the Terraform Registry. If not specified, Terraform will use the latest available version of the module by default. Option A is incorrect as it implies that the 'version' attribute is mandatory, which it is not.