Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 255


In Terraform HCL, an object type of object({ name=string, age=number }) would match this value:

Show Answer
Correct Answer: B

In Terraform HCL, for an object type of object({ name=string, age=number }), the 'name' attribute must be a string, and the 'age' attribute must be a number. Option B correctly matches this format with 'name' containing a string value in quotes and 'age' containing a numeric value not in quotes.

Discussion

3 comments
Sign in to comment
March2023Option: B
Dec 15, 2023

B is correct

LemonadeSoftware
May 15, 2024

B The name (string) must be written in quotes. The age (number) should not be in quotes and must be written with numeric characters

nileeka97Option: B
Jul 19, 2024

B for sure