Recall & Review
beginner
What is the purpose of the Terraform import command?The Terraform import command is used to bring existing infrastructure resources into Terraform's management without recreating them.Click to reveal answer
beginner
How does Terraform import affect the state file?Terraform import adds the existing resource to the Terraform state file, allowing Terraform to track and manage it going forward.Click to reveal answer
intermediate
Can Terraform import create resource configuration automatically?No, Terraform import only updates the state file. You must manually write the resource configuration in your Terraform files to match the imported resource.Click to reveal answer
beginner
What is the general syntax of the Terraform import command?terraform import [options] <resource_type.resource_name> <resource_id>Click to reveal answer
intermediate
Why is it important to match the resource configuration with the imported resource?
If the configuration does not match the imported resource, Terraform may try to change or recreate the resource during the next apply.
Click to reveal answer
What does the Terraform import command do?
✗ Incorrect
Terraform import adds existing resources to the Terraform state so Terraform can manage them.
After importing a resource, what must you do next?
✗ Incorrect
You must write the resource configuration to match the imported resource so Terraform can manage it properly.
Which file does Terraform update when you run terraform import?
✗ Incorrect
Terraform import updates the state file to include the imported resource.
What happens if the Terraform configuration does not match the imported resource?
✗ Incorrect
Mismatch causes Terraform to try to fix the difference, which may lead to changes or recreation.
Which is the correct syntax for importing a resource?
✗ Incorrect
The syntax is terraform import .
Explain how the Terraform import command works and why it is useful.
Think about how Terraform tracks resources and what import changes.
You got /4 concepts.
Describe the steps you take after running terraform import to fully manage a resource.
Import updates state but configuration is needed for management.
You got /4 concepts.