Data sources fetch information about existing resources.

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

Data sources fetch information about existing resources.

Explanation:
Data sources in Terraform are used to read information from providers about resources that already exist or are managed outside your current configuration. They are read-only and let you pull details such as IDs, ARNs, IPs, or metadata so you can reference them when creating new resources or outputs. This is why the statement that data sources fetch information about existing resources is the best description. They don’t create resources, they don’t store state themselves, and they aren’t limited to Terraform Cloud — you can use them with any Terraform setup and provider.

Data sources in Terraform are used to read information from providers about resources that already exist or are managed outside your current configuration. They are read-only and let you pull details such as IDs, ARNs, IPs, or metadata so you can reference them when creating new resources or outputs. This is why the statement that data sources fetch information about existing resources is the best description. They don’t create resources, they don’t store state themselves, and they aren’t limited to Terraform Cloud — you can use them with any Terraform setup and provider.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy