Question 10 of 10Pro Only

You need to bring existing infrastructure under Terraform management. Explain the terraform import process and other state manipulation commands. What are the challenges and best practices?

Sample answer preview

Bringing existing infrastructure under Terraform management is a common task when adopting IaC in an organization. Terraform provides several commands for manipulating state, with import being the primary tool for this scenario.

terraform importstate manipulationterraform state mvterraform state rmexisting infrastructuremigration

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more DevOps Engineer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime