QuestionQ12

VerifiedDevSecOps Pipeline-Release and Deploy Stage

Bruce Altman works as a DevSecOps engineer at TechSoft Pvt. Ltd., a web application development company. Because of the strong security features offered by Microsoft Azure, his organization migrated all of its workloads from on-premises infrastructure to Azure in January 2020. Using the Terraform configuration management tool, Bruce created a resource group and a virtual machine (VM) in Azure, and then deployed a web application on that VM. Within an hour, Bruce's team leader informed him that several security issues had been found in the application code and asked him to destroy the infrastructure that he had provisioned in Microsoft Azure using Terraform.

Which of the following commands can Bruce use to destroy the infrastructure created using Terraform?

Explanation

The terraform destroy command is the built-in Terraform CLI command used to destroy all remote objects that are managed by a particular Terraform configuration, based on the current state file. It performs the reverse of terraform apply, terminating and removing all the resources (in this case, the resource group and VM) that Terraform tracks. The other listed commands (kill-infra, destroy-infra, kill) are not valid Terraform CLI commands.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!