terraform-associate question 337 discussion

View all HashiCorp Certified: Terraform Associate Exam here
back to hashicorp forum

Question 337

You have been working in a Cloud provider account that is shared with other team members. You
previously used Terraform to create a load balancer that is listening on port 80. After some
application changes, you updated the Terraform code to change the port to 443.
You run terraform plan and see that the execution plan shows the port changing from 80 to 443 like
you intended, and step away to grab some coffee.
In the meantime, another team member manually changes the load balancer port to 443 through
the Cloud provider console before you get back to your desk.
What will happen when you terraform apply upon returning to your desk?

  • A. Terraform will change the load balancer port to 80, and) then change it back to 443
  • B. Terraform will fail with in error because the state file is no longer accurate
Answer:

A


User Votes:
A
50%
B
50%
Discussions
0 / 1000