Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
A.
When you change a Terraform-managed resource via the Azure Cloud Console, Terraform updates the state file to reflect the change during the next plan or apply
B.
Changing resources via the Azure Cloud Console records the change in the current state file
C.
When you change a resource via the Azure Cloud Console, Terraform records the changes in a new state file
D.
Changing resources via the Azure Cloud Console does not update current state file
Refer to an earlier question #98. Answer should be A and D. I honestly suggest anyone who is not that knowledgeable (like me) to not be over-confident and mislead others. Thank you.
Only D is the correct one, Terraform will never update the state file to reflect changes that occurred in the environment manually (outside Terraform), it will do the opposity, if the your code is not updated accordingly with what was manually changed, Terraform will bring your environment back to what it is in the state file.
A. It is not correct, terraform plan doesn't reflect the changes, it only shows the changes to you when you run terraform apply it reflects the change.
B. When you do manual change in resource, Terraform doesn't imply changes automatically
C. Terraform never creates a new state file for the new changes and it uses the existing one unless you don't specify a different backend.
D. Correct. You can only update tfstate file with either terraform apply (suggested) or terraform apply -refresh-only (not suggested though).
Option A has probably typo issue, terraform plan shouldn't be in there.
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.
ogerber
6 days, 12 hours agodankositzke
2 months, 3 weeks agoAkaAka4
3 weeks agoSpandrop
5 months agoTronko86
6 months, 2 weeks agoJas14
7 months, 3 weeks agonuridgsn
10 months, 3 weeks agoDevoteamAnalytix
10 months, 3 weeks ago