Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 103 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 103
Topic #: 1
[All Terraform Associate Questions]

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

  • A. sensitive
  • B. description
  • C. default
  • D. value
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nunyabiznes
Highly Voted 1 year, 8 months ago
Selected Answer: 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" } ```
upvoted 10 times
Nunyabiznes
1 year, 8 months ago
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.
upvoted 4 times
...
...
Ni33
Most Recent 1 year, 6 months ago
Selected Answer: D
DDDDDDDDD
upvoted 1 times
...
Power123
1 year, 7 months ago
D is correct
upvoted 1 times
...
nakikoo
1 year, 10 months ago
Selected Answer: D
https://developer.hashicorp.com/terraform/language/values/outputs
upvoted 3 times
...
Gaby999
2 years, 2 months ago
yes, correct answer is D
upvoted 1 times
...
Burakko
2 years, 2 months ago
Selected Answer: D
There has to be a value for sure.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...