Question 310
A product infrastructure team is responsible for a change whose primary goal is to supply environment-specific root values without editing variable declarations. What should it select?
Explanation
Correct Answer
Tfvars files populate root module input variables. This meets the stated requirement to supply environment-specific root values without editing variable declarations.
Incorrect Answers
Variable validation condition is intended to reject an input region value that is not in an allowed list; variable validation blocks enforce declarative input contracts. That is not the specific requirement to supply environment-specific root values without editing variable declarations.
-var-file CLI option is intended to choose a production variable file different from development's when planning; -var-file supplies explicitly chosen input values. That is not the specific requirement to supply environment-specific root values without editing variable declarations.
Default input variable value is intended to run a module without specifying an optional setting each time; default provides a fallback for inputs not explicitly supplied. That is not the specific requirement to supply environment-specific root values without editing variable declarations.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests