nerdexam
HashiCorpHashiCorp

TA-002-P · Question #82

TA-002-P Question #82: Real Exam Question with Answer & Explanation

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #82. The question stem and answer options stay visible for context.

Implement and maintain state

Question

A fellow developer on your team is asking for some help in refactoring their Terraform code. As part of their application's architecture, they are going to tear down an existing deployment managed by Terraform and deploy new. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep to perform some additional analysis. What command should be used to tell Terraform to no longer manage the resource?

Options

  • Aterraform apply rm aws_instance.ubuntu[1]
  • Bterraform state rm aws_instance.ubuntu[1]
  • Cterraform plan rm aws_instance.ubuntu[1]
  • Dterraform delete aws_instance.ubuntu[1]

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 CLI#State Management#terraform state rm#Resource Detachment
Full TA-002-P PracticeBrowse All TA-002-P Questions