Quiz 12 Question 10 of 20

A module accepts a bucket_config input with name, retention_days and versioning. Callers must always set name, and should be able to omit retention_days and versioning and receive 30 and true, while Terraform still type-checks every attribute. How should the variable type be declared?

Select an answer to reveal the explanation.

Motivation