ExamGecko
Question list
Search
Search

Question 192 - Terraform Associate 003 discussion

Report
Export

Which of the following is not a way to trigger terraform destroy?

A.

Using the destroy command with auto-approve.

Answers
A.

Using the destroy command with auto-approve.

B.

Passing --destroy at the end of a plan request.

Answers
B.

Passing --destroy at the end of a plan request.

C.

Running terraform destroy from the correct directory and then typing yes when prompted in the CLI.

Answers
C.

Running terraform destroy from the correct directory and then typing yes when prompted in the CLI.

Suggested answer: B

Explanation:

Destroy Command Options: The terraform destroy command is the correct method to destroy resources, and it requires either manual approval or the -auto-approve flag.

Unsupported Triggering Method: The --destroy flag is not a recognized option for plan or apply commands, making B the correct answer as it is not a valid way to initiate resource destruction.

For more on destroying resources, refer to the terraform destroy command documentation in the Terraform CLI reference.


asked 29/10/2024
Updesh Kumar
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first