HashiCorp Certified: Terraform Associate — Question 201
What kind of configuration block will create an infrastructure object with settings specified within the block?
Answer options
- A. provider
- B. state
- C. data
- D. resource
Correct answer: D
Explanation
The correct answer is D, as a resource block is specifically designed to create infrastructure objects and their associated settings. The other options, such as provider, state, and data, serve different purposes within the configuration and do not directly create infrastructure objects.