NSE7_PBC-7.2 · Question #53
Refer to the exhibit. An administrator deployed a FortiGate-VM in a high availability (HA) (active/passive) architecture in Amazon Web Services (AWS) using Terraform for testing purposes. At the…
The correct answer is A. Use the terraform destroy command D. The administrator must manually delete the Linux server. Use the terraform destroy command. This command is used to remove all the resources that were created using the Terraform configuration. It is the opposite of the terraform apply command, which is used to create resources. The terraform destroy command will first show a plan of…
Question
Refer to the exhibit. An administrator deployed a FortiGate-VM in a high availability (HA) (active/passive) architecture in Amazon Web Services (AWS) using Terraform for testing purposes. At the same time, the administrator deployed a single Linux server using AWS Marketplace. Which two options are available for the administrator to delete all the resources created in this test? (Choose two.)
Exhibit
Options
- AUse the terraform destroy command
- BUse the terraform validate command.
- CUse the terraform destroy all command.
- DThe administrator must manually delete the Linux server.
How the community answered
(54 responses)- A72% (39)
- B19% (10)
- C9% (5)
Explanation
Use the terraform destroy command. This command is used to remove all the resources that were created using the Terraform configuration. It is the opposite of the terraform apply command, which is used to create resources. The terraform destroy command will first show a plan of what resources will be destroyed, and then ask for confirmation before proceeding. The command will also update the state file to reflect the changes. The administrator must manually delete the Linux server. This is because the Linux server was not deployed using Terraform, but using AWS Marketplace. Therefore, Terraform does not have any information about the Linux server in its state file, and cannot manage or destroy it. The administrator will have to use the AWS console or CLI to delete the Linux server manually.
Topics
Community Discussion
No community discussion yet for this question.
