HashiCorp Certified: Terraform Associate — Question 301
Running terraform fmt without any flags in a directory with Terraform configuration files will check the formatting of those files without changing their contents.
Answer options
- A. True
- B. False
Correct answer: B
Explanation
The correct answer is B, as running terraform fmt indeed formats the configuration files and changes their contents if any formatting issues are found. Option A is incorrect because it suggests that no changes occur, which is not true when the formatting is incorrect.