nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #161

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

The correct answer is A. value. When declaring a Terraform output, the value argument is required. Outputs are a way to extract information from Terraform-managed infrastructure, and the value argument specifies what data will be outputted. While other arguments like description and sensitive can provide additi

Submitted by packet_pusher· Apr 18, 2026Understand Terraform Basics

Question

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

Options

  • Avalue
  • Bdescription
  • Cdefault
  • Dsensitive

How the community answered

(21 responses)
  • A
    90% (19)
  • B
    5% (1)
  • C
    5% (1)

Explanation

When declaring a Terraform output, the value argument is required. Outputs are a way to extract information from Terraform-managed infrastructure, and the value argument specifies what data will be outputted. While other arguments like description and sensitive can provide additional context or security around the output, value is the only mandatory argument needed to define an

Topics

#Terraform Outputs#HCL#Configuration Syntax#Required Arguments

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice