HashiCorpHashiCorp
TA-002-P · Question #356
TA-002-P Question #356: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #356. The question stem and answer options stay visible for context.
Implement and maintain state
Question
You have modified your Terraform configuration to fix a typo in the Terraform ID of a resource from aws_security_group.http to aws_security_group.http Which of the following commands would you run to update the ID in state without destroying the resource?
Options
- Aterraform refresh
- Bterraform apply
- Cterraform mv aws-security-group.htp aws-security-group.http
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Terraform state#terraform mv#Resource renaming#CLI commands