TERRAFORM-ASSOCIATE-004 · Question #111
A terraform apply can not _________ infrastructure.
The correct answer is D. import. 'terraform apply' can provision, change, and destroy infrastructure (using the -destroy flag or by removing resources from configuration). However, 'terraform apply' cannot import existing infrastructure into the Terraform state. Importing is a separate operation performed exclus
Question
Options
- Achange
- Bdestroy
- Cprovision
- Dimport
How the community answered
(31 responses)- A6% (2)
- C3% (1)
- D90% (28)
Explanation
'terraform apply' can provision, change, and destroy infrastructure (using the -destroy flag or by removing resources from configuration). However, 'terraform apply' cannot import existing infrastructure into the Terraform state. Importing is a separate operation performed exclusively with the 'terraform import' command, which brings real-world resources under Terraform management by writing them into the state file. There is no way to trigger an import as part of a normal apply.
Topics
Community Discussion
No community discussion yet for this question.