nerdexam
HashiCorpHashiCorp

TA-002-P · Question #337

TA-002-P Question #337: Real Exam Question with Answer & Explanation

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #337. The question stem and answer options stay visible for context.

Implement and maintain state

Question

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?

Options

  • ATerraform will not make any changes to the Load Balancer and will update the state file to reflect
  • BTerraform will change the port back to 80 in your code
  • CTerraform will change the load balancer port to 80, and) then change it back to 443
  • DTerraform will fail with in error because the state file is no longer accurate

Unlock TA-002-P to see the answer

You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Terraform state#State drift#terraform apply#Infrastructure reconciliation
Full TA-002-P PracticeBrowse All TA-002-P Questions