Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 117 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 117
Topic #: 1
[All Terraform Associate Questions]

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

  • A. provider
  • B. resource
  • C. local
  • D. data
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Burakko
Highly Voted 2 years, 2 months ago
Selected Answer: D
Data sources allow data to be fetched or computed for use elsewhere in Terraform configuration. Use of data sources allows a Terraform configuration to build on information defined outside of Terraform, or defined by another separate Terraform configuration.
upvoted 14 times
...
bora4motion
Highly Voted 2 years, 2 months ago
Selected Answer: D
it's D as you're using infrastructure already created - that's when you use "data". With "resource" you create new infrastructure.
upvoted 13 times
...
Ni33
Most Recent 1 year, 6 months ago
Selected Answer: D
D is the correct answer !
upvoted 1 times
...
mkeology
1 year, 7 months ago
Selected Answer: D
D. data, a data source
upvoted 1 times
...
Ravi528
1 year, 8 months ago
Selected Answer: D
Definitely not A, It's D as Infra is done already, Data is used to compute
upvoted 2 times
...
SilentMilli
1 year, 8 months ago
Selected Answer: D
The data block is used in Terraform to fetch or compute information from a given data source, and make that information available for use elsewhere in the Terraform configuration. This data can come from a variety of sources, including cloud provider APIs, databases, and other external systems.
upvoted 3 times
...
TechHero
1 year, 10 months ago
D. data Data blocks in Terraform are used to fetch or compute information for use elsewhere in a Terraform configuration. They allow you to read data from external sources such as an API, a file, or a database and use it to populate variables or other parts of your Terraform configuration. A. provider A provider block is used to configure the provider plugin used in Terraform configuration, it's not related to data fetching or computation B. resource A resource block is used to create and manage infrastructure resources, it's not related to data fetching or computation C. local A local block is used to define variables that are only used within the module in which they are defined and not exposed as outputs. It's not related to data fetching or computation. It's important to understand that data blocks do not make changes to the infrastructure, they are only used to fetch or compute data.
upvoted 5 times
...
kprod
2 years, 2 months ago
Selected Answer: D
D - data
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...