What will happen?
 
Notifications
Clear all

What will happen?

1 Posts
1 Users
0 Likes
196 Views
 Coy
(@millotcoy)
Noble Member
Joined: 2 years ago
Posts: 688
Topic starter  

You have created an AWS EC2 instance of type t2.micro through your terraform configuration file ec2.tf . Now you want to change the instance type from t2.micro to

t2.medium. Accordingly you have changed your configuration file and and ran terraform plan. After running terraform plan you check the output and saw one instance will be updated from t2.micro --> t2.medium. After this you went to grab a coffee without running terraform apply and meanwhile a member of your team changed the instance type of that EC2 instance to t2.medium from aws console. After coming to your desk you run terraform apply.

What will happen?

  • A . No resource will be updated and you will see the message: Apply Complete !
    Resources: 0 added, 0 changed, 0 destroyed.
  • B . The instance type will be changed to t2.micro and again will be changed to t2.medium
  • C . terraform apply will through an error.
  • D . 1 resource will be updated and you will see the message: Apply Complete ! Resources:
    0 added, 1 changed, 0 destroyed.

Show Answer Hide Answer

Suggested Answer: A

   
Quote

Latest HashiCorp TA-002-P Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: