1. A team uses Terraform to manage an AWS VPC. A network engineer manually added a subnet directly in the AWS console (outside of Terraform). The engineer then runs `terraform plan`. What will Terraform report about this manually created subnet?
- A. Terraform will detect the new subnet and automatically import it into state, then show it as a managed resource.
- B. Terraform will show no changes because it does not track resources it did not create.
- C. Terraform will show no changes for the manually created subnet because it is not in the Terraform state; it only reports on resources it is tracking.✓ Correct
- D. Terraform will show the subnet as a resource to be destroyed, because any resource not defined in the configuration will be removed.
Explanation
Correct: C. Terraform only plans changes for resources that are tracked in its state file. A manually created resource that was never imported or created by Terraform does not exist in state, so `terraform plan` will not reference it at all — it will not show it as something to create, destroy, or update. A is wrong — Terraform does NOT auto-import resources; import must be done explicitly via `terraform import` (or an `import` block in Terraform 1.5+). B is wrong — C is a more precise answer; Terraform doesn't 'track resources it did not create' isn't fully accurate since it could track imported resources it didn't create. D is wrong — Terraform only destroys resources that are in its state file. Because the manually created subnet is not in state, Terraform has no awareness of it and will not plan to destroy it.