▶ 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
Exam7
Exam7
devops / terraform
• 5 questions
Question 1 of 5
What block configures a Terraform provider?
A.
backend { }
B.
plugin { }
C.
provider { }
D.
source { }
Question 2 of 5
Where are provider version constraints typically specified?
A.
In each resource block
B.
In the `required_providers` block inside `terraform { }`
C.
In a separate providers.tfvars file
D.
On the command line via --provider flag
Question 3 of 5
What does `~> 4.0` mean as a provider version constraint?
A.
Any version >= 4.0
B.
Exactly version 4.0
C.
Any 4.x version but not 5.0 or higher
D.
Any version < 4.0
Question 4 of 5
Which command downloads and installs the required provider plugins?
A.
terraform get
B.
terraform install
C.
terraform init
D.
terraform providers install
Question 5 of 5
What file records the exact provider versions resolved during `terraform init`?
A.
terraform.lock.hcl
B.
.terraform.lock.hcl
C.
providers.lock
D.
terraform.versions
← Back
Submit Answers ✓