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

Which of the following arguments are required when declaring a Terraform output?

    Correct Answer: D

    When declaring a Terraform output, the only required argument is 'value'. The 'value' argument specifies what the output should be and is necessary for the configuration to understand what value should be returned. Other arguments like 'description' and 'sensitive' are optional and can be used to provide additional context or modify the behavior of the output, but they are not mandatory. The 'default' argument is not applicable to outputs; it is used for input variables.

Discussion
NunyabiznesOption: D

The only required argument when declaring a Terraform output is the value argument, which specifies the value of the output: ``` output "example" { value = "example output value" } ``` The description argument is optional and can be used to provide additional information about the output: ``` output "example" { value = "example output value" description = "An example output" } ```

Nunyabiznes

The sensitive argument is also optional and can be used to mark the output as sensitive, which prevents its value from being displayed in the output of Terraform commands, logs, and state files: ``` output "example" { value = "example output value" sensitive = true } ``` The default argument is not a valid argument for an output. It is used for input variables and specifies a default value to be used if a value is not set in the configuration or passed in through the command line.

nakikooOption: D

https://developer.hashicorp.com/terraform/language/values/outputs

BurakkoOption: D

There has to be a value for sure.

Ni33Option: D

DDDDDDDDD

Power123Option: D

D is correct

Gaby999Option: D

yes, correct answer is D