nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #221

Which of the following is true about terraform apply? (Pick 2 correct responses)

The correct answer is C. Depending on provider specification, Terraform may need to destroy and recreate your E. It only operates on infrastructure defined in the current working directory or workspace. C ( Correct) - If changes require a resource replacement (e.g., changing an immutable attribute like instance type), Terraform will destroy and recreate the resource. E ( Correct) - Terraform only applies the configuration in the current directory or workspace. Incorrect…

Submitted by ahmad_uae· Apr 18, 2026Use Terraform CLI

Question

Which of the following is true about terraform apply? (Pick 2 correct responses)

Options

  • AYou must pass the output of a terraform plan command to it.
  • BBy default, it does not refresh your state file to reflect the current infrastructure configuration.
  • CDepending on provider specification, Terraform may need to destroy and recreate your
  • DYou cannot target specific resources for the operation.
  • EIt only operates on infrastructure defined in the current working directory or workspace.

How the community answered

(16 responses)
  • B
    6% (1)
  • C
    88% (14)
  • D
    6% (1)

Explanation

C ( Correct) - If changes require a resource replacement (e.g., changing an immutable attribute like instance type), Terraform will destroy and recreate the resource. E ( Correct) - Terraform only applies the configuration in the current directory or workspace. Incorrect Answers: A ( Incorrect) - terraform apply can run without explicitly passing a plan. B ( Incorrect) - terraform apply automatically refreshes state before making changes. D ( Incorrect) - Terraform can target specific resources using -target.

Topics

#terraform apply#Terraform CLI#resource lifecycle#configuration scope

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice