▶ MCQ Portal
Home
Medical
Neet-Ug
4
Ssc-Cgl
General_Awareness
5
Devops
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
terraform
Exam5
Exam5
devops / terraform
• 5 questions
Question 1 of 5
Which block defines an input variable in Terraform?
A.
param { }
B.
input { }
C.
variable { }
D.
arg { }
Question 2 of 5
How do you reference an input variable named `region` in HCL?
A.
$region
B.
var.region
C.
input.region
D.
${variable.region}
Question 3 of 5
Which file is conventionally used to set variable values without modifying .tf files?
A.
vars.tf
B.
terraform.tfvars
C.
defaults.tf
D.
secrets.hcl
Question 4 of 5
What does the `sensitive = true` attribute on an output do?
A.
Encrypts the value in state
B.
Hides the value from CLI output
C.
Deletes the output after apply
D.
Marks the output as required
Question 5 of 5
Which variable type allows a list of strings in Terraform?
A.
type = array(string)
B.
type = list(string)
C.
type = set(string)
D.
type = collection(string)
← Back
Submit Answers ✓