▶ 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
Exam9
Exam9
devops / terraform
• 5 questions
Question 1 of 5
What is a `data` source in Terraform?
A.
A resource that stores binary data
B.
A way to read existing infrastructure not managed by Terraform
C.
An external variable file
D.
A type of provider plugin
Question 2 of 5
Which meta-argument prevents Terraform from destroying a resource accidentally?
A.
prevent_destroy = true inside lifecycle { }
B.
no_destroy = true
C.
protect = true
D.
lock = true
Question 3 of 5
What does `create_before_destroy = true` do in a lifecycle block?
A.
Delays creation until dependencies exist
B.
Creates the replacement resource before destroying the old one
C.
Always creates even if the resource already exists
D.
Triggers recreation on every apply
Question 4 of 5
Which `ignore_changes` lifecycle setting ignores ALL attribute changes?
A.
ignore_changes = true
B.
ignore_changes = []
C.
ignore_changes = all
D.
ignore_changes = ["*"]
Question 5 of 5
What is the `depends_on` meta-argument used for?
A.
Ordering providers during init
B.
Defining explicit resource dependencies not inferred by Terraform
C.
Specifying backend priority
D.
Locking a resource version
← Back
Submit Answers ✓