exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 209 discussion

Exam question from Amazon's AWS-SysOps
Question #: 209
Topic #: 1
[All AWS-SysOps Questions]

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?

  • 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
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
The user can create subnets as per the requirement within a VPC. If the user wants to connect VPC from his own data center, he can setup a public and VPN only subnet which uses hardware VPN access to connect with his data center. When the user has configured this setup with Wizard, it will create a virtual private gateway to route all traffic of the VPN subnet. If the virtual private gateway is attached with VPC and the user deletes the VPC from the console it will first detach the gateway automatically and only then delete the VPC.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Bad_Mat
Highly Voted 3 years, 7 months ago
Just tested, the answer is B You should detach gateway manually
upvoted 8 times
...
mvsnogueira
Highly Voted 3 years, 6 months ago
Answer B https://aws.amazon.com/premiumsupport/knowledge-center/troubleshoot-dependency-error-delete-vpc/ The following errors indicate that the Amazon VPC has a dependency: "Network has some mapped public address(es). Please unmap those public address(es) before detaching the gateway." "VPC has one or more attached internet gateways or virtual private gateways, and cannot be deleted until they are detached or deleted."
upvoted 6 times
ittest2020
3 years, 5 months ago
The link you provided says you receive the errors when you try to delete the VPC using the CLI. The question asks what will happen if you use the console. When you use the console the right answer is C
upvoted 1 times
...
...
e47cf49
Most Recent 6 months, 3 weeks ago
A. It will delete what it created since nothing was modified: subnets, route tables , network ACLs, security Groups,IGW and VGW
upvoted 1 times
...
Finger41
2 years, 9 months ago
Selected Answer: B
Tested this in a lab, its B. If i attached a Virtual Private Gateway, and i attempt to delete, i am told to manually detach it first before deleting
upvoted 1 times
...
Sriramps
3 years, 6 months ago
Ans is C....Concept is very simple 1. Created VPC using wizard - public and VPN subnet - no NAT instance 2. Created VPC using wizard - Public and private subnet - NAT instance will be there. so you need to delete that instance before deleting the VPC https://docs.aws.amazon.com/vpc/latest/userguide/VPC_wizard.html
upvoted 2 times
...
ritnyus
3 years, 6 months ago
This might help: https://aws.amazon.com/premiumsupport/knowledge-center/troubleshoot-dependency-error-delete-vpc/
upvoted 1 times
...
ThoseWereTheDays
3 years, 6 months ago
After some headache, I agree with awsnoob as D is correct. Default when create VPC using wizard, NAT Gateway or NAT Instance is required. Since question mentioned user not yet "deleted any setup", so the NAT Gateway/Instance is running. You can delete your VPC at any time. However, you must terminate all instances in the VPC, and delete any VPC peering connections first: https://docs.aws.amazon.com/vpc/latest/userguide/working-with-vpcs.html#VPC_Deleting. Things inside VPC that you don't need to worry about when delete VPC Virtual Private Gateways (the console will detach VPG from VPC ) VPN Attachments Internet Gateways Route Tables
upvoted 1 times
ThoseWereTheDays
3 years, 6 months ago
I revert back, "user has created public and VPN only subnets along with hardware VPN access" not " Private Public Wizard" as same as karmaah mentioned, so the NAT Gateway/Instance is not required. Hence, C is correct
upvoted 2 times
...
ittest2020
3 years, 5 months ago
The link you provided says you receive the errors when you try to delete the VPC using the CLI. The question asks what will happen if you use the console. When you use the console the right answer is C
upvoted 1 times
...
...
awscertified
3 years, 7 months ago
C. Yes, the console will delete all the setups and detach the virtual private gateway
upvoted 1 times
...
tetural
3 years, 7 months ago
Answer is B, The VPC has one or more attached VPN gateways, and cannot be deleted until they are detached or deleted.
upvoted 2 times
karmaah
3 years, 7 months ago
The default Ansis correct. If the virtual private gateway is attached with VPC and the user deletes the VPC from the console it will first detach the gateway automatically and only then delete the VPC.
upvoted 3 times
...
...
awsnoob
3 years, 7 months ago
Ans is D, the wizard will need to specify the creation of the NAT gateway/instance
upvoted 2 times
karmaah
3 years, 7 months ago
NAT will run only on Private Public Wizard..Not for Private / Public subnet along with H/w VPN Wizard.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago