HashiCorp Certified: Terraform Associate — Question 202

What is the workflow for deploying new infrastructure with Terraform?

Answer options

Correct answer: A

Explanation

The correct answer is A because it accurately describes the necessary steps of initializing the workspace and applying the configuration to deploy resources. Option B incorrectly includes 'terraform show', which does not deploy any infrastructure. Option C suggests using 'terraform validate' after applying, which is not part of the deployment process. Option D incorrectly states that 'terraform plan' is used to initialize the workspace, while it is actually used to preview changes.