Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 176


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

A.

B.

Show Answer
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

3 comments
Sign in to comment
cankayahmet
Jul 15, 2023

what a stupid question!

dani88ge
Sep 14, 2022

age=number -> fifty two is not a number

gekkehenk
Mar 4, 2023

Age = 52 Only number.