Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 328 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 328
Topic #: 1
[All Terraform Associate Questions]

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 fail with an error because the state file is no longer accurate.
  • B. Terraform will change the load balancer port to 80, and then change it back to 443.
  • C. Terraform will not make any changes to the Load Balancer and will update the state file to reflect any changes made.
  • D. Terraform will recreate the load balancer.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
AZMAAZ
3 months, 3 weeks ago
Selected Answer: C
C has to be the right answer!!
upvoted 1 times
...
zarkov
3 months, 3 weeks ago
Selected Answer: C
C is correct
upvoted 1 times
...
irusharulz
5 months ago
C is the correct answer
upvoted 2 times
...
artyartycms
5 months, 1 week ago
Selected Answer: C
C is correct
upvoted 1 times
...
Edward2021
5 months, 3 weeks ago
C is the correct answer
upvoted 1 times
...
TheShantyman
5 months, 3 weeks ago
Selected Answer: C
C is the correct answer. Terraform will see that no changes need to be made as the load balancer now matches the local configuration. It will then update the state files to reflect the new remote configuration.
upvoted 1 times
...
irusharulz
5 months, 3 weeks ago
Selected Answer: C
It's not making any changes load balancer. Since the load balancer now listening in port 443. No need to update the load balancer. but State file will be modified according to that
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...