
HashiCorp Certified:Terraform Associate
Domain 7Objective 1
7a Import Existing Infrastructure into Your Terraform Workspace TERRAFORM-ASSOCIATE-004 Practice Questions (Page 2)
Part of the Maintain infrastructure with Terraform domain, which makes up ~7% of our current practice bank. HashiCorp does not publish an official question count, but from its 60-minute exam (~25–40 total, ~2–3 in this domain), expect 1–1 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)
22questions here
5free pages
5concepts
Questions 6–10
- 6
Why is it important to write configuration that matches the imported resource's attributes?
Select an answer first - 7
A team manages a web application in AWS. An EC2 instance (instance ID i-0a1b2c3d4e5f67890) was created manually outside of Terraform. The team has already written a resource block for aws_instance.web in main.tf with the correct AMI, instance type, and tags. They want to bring this instance under Terraform management without recreating it. Which command should they run?
Select an answer first - 8
A team has imported an existing AWS EC2 instance into Terraform. The instance has a tag 'Environment = Production'. The configuration for aws_instance.web does not include any tags. After running terraform plan, what will Terraform propose to do?
Select an answer first - 9
What is the primary purpose of the terraform import command?
Select an answer first - 10
A team is importing an existing AWS DynamoDB table into Terraform. The table name is 'users-table'. They have a resource block aws_dynamodb_table.users in their configuration. They run the import command and it succeeds. However, when they run terraform plan, they see that Terraform wants to add a global secondary index that does not exist in the actual table. What is the most likely cause?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by HashiCorp. “TERRAFORM-ASSOCIATE-004” is a trademark of its owner, used for identification only.