0
0
Terraformcloud~5 mins

Import limitations and considerations in Terraform - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the Terraform import command do?
It brings existing infrastructure resources into Terraform's management by adding them to the state file without changing the actual resource.
Click to reveal answer
intermediate
Why can't Terraform import multiple resources at once?
Terraform import works on one resource at a time because each resource requires a unique address and ID to be mapped correctly in the state file.
Click to reveal answer
beginner
What must you do after importing a resource to Terraform?
You must write the matching Terraform configuration code for the imported resource to avoid discrepancies between the state and configuration.
Click to reveal answer
intermediate
Can Terraform import resources that are not supported by the provider?
No, Terraform can only import resources that the provider supports and has import functionality for.
Click to reveal answer
advanced
What is a common consideration when importing resources with dependencies?
You should import resources in the correct order (dependencies first) to maintain relationships and avoid errors in the state.
Click to reveal answer
What does Terraform import update?
AThe Terraform state file
BThe cloud provider's resource configuration
CThe Terraform configuration files
DThe Terraform backend settings
Which of the following is a limitation of Terraform import?
AIt requires manual configuration code after import
BIt automatically generates configuration code
CIt can import multiple resources simultaneously
DIt changes the resource in the cloud provider
If a resource has dependencies, what should you do when importing?
AIgnore dependencies during import
BImport the resource without dependencies first
CImport the dependent resources first
DImport all resources at once
Can Terraform import a resource that the provider does not support?
AOnly if manually configured
BNo, only supported resources can be imported
CYes, always
DYes, but only with plugins
What happens if Terraform configuration does not match the imported resource?
ATerraform will automatically fix the configuration
BTerraform deletes the resource
CTerraform ignores the mismatch
DTerraform will show a difference and may try to change the resource
Explain the key limitations and considerations when using Terraform import.
Think about what import changes and what you must do after.
You got /5 concepts.
    Describe the steps you should take after importing a resource into Terraform.
    Consider how to keep Terraform state and config consistent.
    You got /4 concepts.