Hashicorp Certified Terraform Associate 003 · Free Practice Question Easy

Question 14

After executing a terraform plan, you notice that a resource has a tilde (~) next to it. What does this mean?

  • A

    the resource will be destroyed and recreated

  • B

    the resource will be updated in place

  • C

    Terraform can't determine how to proceed due to a problem with the state file

  • D

    the resource will be created

Reveal correct answer

Correct answer: B

Explanation

The prefix -/+ means that Terraform will destroy and recreate the resource, rather than updating it in-place. Some attributes and resources can be updated in-place and are shown with the ~ prefix.

https://developer.hashicorp.com/terraform/cli/commands/plan

https://learn.hashicorp.com/tutorials/terraform/infrastructure-as-code

A. The tilde (~) next to a resource in the terraform plan output indicates that the resource will be updated in place, meaning Terraform will make changes to the existing resource without destroying and recreating it.

B. When a resource has a tilde (~) next to it in the terraform plan, it signifies that the resource will be updated in place, preserving its current state and making necessary modifications without recreating it.

C. If a resource has a tilde (~) next to it in the terraform plan, it does not mean that Terraform can't determine how to proceed due to a problem with the state file. Instead, it signifies that the resource will be updated in place, without being destroyed and recreated.

D. The presence of a tilde (~) next to a resource in the terraform plan does not indicate that the resource will be created. Instead, it suggests that the resource will be updated in place, maintaining its existing state.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need