nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #242

You modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying

Sign in or unlock TERRAFORM-ASSOCIATE-004 to reveal the answer and full explanation for question #242. The question stem and answer options stay visible for context.

Submitted by yaw92· Apr 18, 2026Manage Terraform State

Question

You modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying the existing resource? Original configuration: resource "aws_s3_bucket" "photoes" { bucket_prefix = "images" } Updated configuration: resource "aws_s3_bucket" "photos" { bucket_prefix = "images" }

Options

  • Amoved {
  • Bmoved {
  • Cmoved {
  • DNone. Terraform will automatically update the resource ID.

Unlock TERRAFORM-ASSOCIATE-004 to see the answer

You've previewed enough free TERRAFORM-ASSOCIATE-004 questions. Unlock TERRAFORM-ASSOCIATE-004 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

#moved block#resource renaming#state management#refactoring
Full TERRAFORM-ASSOCIATE-004 Practice