AWS Certified SysOps Administrator – Associate (legacy) — Question 152
A user has created a VPC with CIDR 20.0.0.0/16 using the wizard. The user has created public and VPN only subnets along with hardware VPN access to connect to the user's data center. The user has not yet launched any instance as well as modified or deleted any setup. He wants to delete this VPC from the console. Will the console allow the user to delete the VPC?
Answer options
- A. Yes, the console will delete all the setups and also delete the virtual private gateway
- B. No, the console will ask the user to manually detach the virtual private gateway first and then allow deleting the VPC
- C. Yes, the console will delete all the setups and detach the virtual private gateway
- D. No, since the NAT instance is running
Correct answer: C
Explanation
The correct answer is C because when a VPC is deleted, the console automatically handles the detachment of the virtual private gateway and removes all associated resources. Options A and B are incorrect as they misrepresent the process and requirements for VPC deletion, while D is irrelevant since the presence of a NAT instance does not prevent VPC deletion.