An application runs on an Amazon EC2 instance that has an Elastic IP address in VPC A. The application requires access to a database in VPC B. Both VPCs are in the same AWS account. Which solution will provide the required access MOST securely?
Select an option, then click Submit answer.
Reference / correct answer:
Configure a VPC peering connection between VPC A and VPC B.
Most accepted answer: B. Configure a VPC peering connection between VPC A and VPC B.
Community votes: A=2, B=10
Selected Answer: B B. Configure a VPC peering connection between VPC A and VPC B. The most secure solution is to configure a VPC peering connection between the two VPCs. This allows private communication between the application server and the database, without exposing resources to the public internet. Option A exposes the database to the public internet by allowing inbound traffic from a public IP address. Option C makes the database instance itself public, which is insecure. Option D adds complexity with a proxy that is not needed when a VPC peering connection can enable private communication between VPCs. So option B is the most secure while allowing the necessary connectivity between the application server and the database in the separate VPCs. upvoted 14 times
A is correct. B will work but is not the most secure method, since it will allow everything in VPC A to talk to everything in VPC B and vice versa, not at all secure. A on the other hand will only allow the application (since you select it's IP address) to talk to the application server in VPC A - you are allowing only the required connectivity. See the link for this exact use case: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html upvoted 14 times mhmt4438 3 years, 6 months ago " allows all traffic from the public IP address" Nice bro niceee This is absolutely the most secure method at all. :))) upvoted 18 times datz 3 years, 3 months ago he must be the security engineer lolol :D "Jaybee" - Please dont ever say that traffic over the public internet is secure :D upvoted 5 times swakan 1 year, 8 months ago https://aws.amazon.com/vpc/faqs/ upvoted 1 times ... ... graveend 2 years, 11 months ago Both VPCs are in the "SAME AWS ACCOUNT" and the requirement specifies allowing traffic from the *PUBLIC IP of the APPLICATION SERVER*. In this case the traffic remains inside the AWS infrastructure or will it go through the public internet? upvoted 2 times pentium75 2 years, 7 months ago Answer A (not "the requirement") specifies "allowing traffic from the public IP", which is for sure NOT the "most secure" option. upvoted 2 times ... ... ...
" allows all traffic from the public IP address" Nice bro niceee This is absolutely the most secure method at all. :))) upvoted 18 times datz 3 years, 3 months ago he must be the security engineer lolol :D "Jaybee" - Please dont ever say that traffic over the public internet is secure :D upvoted 5 times swakan 1 year, 8 months ago https://aws.amazon.com/vpc/faqs/ upvoted 1 times ... ... graveend 2 years, 11 months ago Both VPCs are in the "SAME AWS ACCOUNT" and the requirement specifies allowing traffic from the *PUBLIC IP of the APPLICATION SERVER*. In this case the traffic remains inside the AWS infrastructure or will it go through the public internet? upvoted 2 times pentium75 2 years, 7 months ago Answer A (not "the requirement") specifies "allowing traffic from the public IP", which is for sure NOT the "most secure" option. upvoted 2 times ... ...
he must be the security engineer lolol :D "Jaybee" - Please dont ever say that traffic over the public internet is secure :D upvoted 5 times swakan 1 year, 8 months ago https://aws.amazon.com/vpc/faqs/ upvoted 1 times ...
https://aws.amazon.com/vpc/faqs/ upvoted 1 times