Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 84

A terraform apply can not _________ infrastructure.

    Correct Answer: D

    The terraform apply command is used to apply the changes required to reach the desired state of the configuration. It can change (update), destroy, and provision infrastructure, but importing existing infrastructure into the state file is performed using the terraform import command. Therefore, terraform apply cannot import infrastructure.

Discussion
alejandro_torres

deprecated question https://www.hashicorp.com/blog/terraform-1-5-brings-config-driven-import-and-checks

LunarPhobiaOption: D

D as importing requires a separate command from Apply

iDiddyOption: D

import is an explicit command

Clapton79

Not any more, you can have an import {} clause so I guess this question is no longer valid. https://www.hashicorp.com/blog/terraform-1-5-brings-config-driven-import-and-checks

root_i_amOption: D

The answer is D. While terraform allows you import existing infrastructure, it is not through the apply command.

antivrilleeOption: D

https://www.educative.io/answers/what-is-the-command-to-destroy-infrastructure-in-terraform

SureNotOption: A

Terraform v1.5.0 and later supports import blocks... A bit old question...

Power123Option: D

Answer is D

vadeemkaaOption: D

Answer D. terraform import command

dnscloud02Option: D

Not sure --> Terraform can import existing infrastructure resources. This functionality allows you take resources you created by some other means and bring them under Terraform management.

antivrillee

The question is about the command "terraform apply" and not terraform