HashiCorp Certified: Terraform Associate — Question 270

Which type of block fetches or computes information for use elsewhere in a Terraform configuration?

Answer options

Correct answer: D

Explanation

The correct answer is D, as a data block in Terraform is specifically used to fetch or compute data that can be utilized in other parts of the configuration. Options A (provider) and B (resource) are used for defining infrastructure components, while C (local) is for storing computed values within the configuration, not fetching external data.