Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 176

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

A.

B.

    Correct Answer:

    In Terraform HCL, the object type of object({ name=string, age=number }) means that the 'name' attribute must be a string and the 'age' attribute must be a number. In the options provided, option B ({name = "John", age = 52}) correctly matches the defined types because the 'name' is a string and the 'age' is a number. Therefore, option B is the correct answer.

Discussion
cankayahmet

what a stupid question!

dani88ge

age=number -> fifty two is not a number

gekkehenk

Age = 52 Only number.