exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 400 discussion

A company has an application hosted on Amazon EC2 instances in two VPCs across different AWS Regions. To communicate with each other, the instances use the internet for connectivity. The security team wants to ensure that no communication between the instances happens over the internet.
What should a solutions architect do to accomplish this?

  • A. Create a NAT gateway and update the route table of the EC2 instances' subnet.
  • B. Create a VPC endpoint and update the route table of the EC2 instances' subnet.
  • C. Create a VPN connection and update the route table of the EC2 instances' subnet.
  • D. Create a VPC peering connection and update the route table of the EC2 instances' subnet.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
syu31svc
Highly Voted 3 years, 9 months ago
https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html: You can establish peering relationships between VPCs across different AWS Regions (also called Inter-Region VPC Peering). This allows VPC resources including EC2 instances, Amazon RDS databases and Lambda functions that run in different AWS Regions to communicate with each other using private IP addresses, without requiring gateways, VPN connections, or separate network appliances. The traffic remains in the private IP space" Answer D
upvoted 34 times
...
jkwek
Highly Voted 3 years, 9 months ago
Answer is D. https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering
upvoted 9 times
...
Mohammed_Kamal
Most Recent 1 year, 4 months ago
lol i see this question in cloud practitioner exam
upvoted 1 times
...
cloud_collector
2 years, 11 months ago
D A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IPv4 addresses or IPv6 addresses The VPCs can be in different regions (also known as an inter-region VPC peering connection). https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html
upvoted 1 times
...
byhyey
3 years, 8 months ago
A = traffic will traverse over the internet B = VPC endpoints only work in the same region as per this resource: https://aws.amazon.com/blogs/architecture/using-vpc-endpoints-in-multi-region-architectures-with-route-53-resolver/ "The challenge some customers have faced is that VPC endpoints can only be used to access resources in the same Region as the endpoint. For example, an Amazon Simple Storage Service (S3) VPC endpoint deployed in us-east-1 can only be used to access S3 buckets also located in us-east-1. To access a bucket in us-east-2, that traffic has to traverse the public internet. Ideally, customers want to keep this traffic within their private network and apply VPC endpoint policies, regardless of the Region where the resource is located." C = traffic will traverse over the internet D = A VPC uses AWS internal infrastructure to communicate
upvoted 8 times
...
JackFrag
3 years, 8 months ago
Answer is "D"
upvoted 3 times
...
walkwolf3
3 years, 8 months ago
The answer is between B and D, they both support Cross-region access. I know some AWS documents are confusing....The only difference is VPC peering does NOT support CIDR overlap, while VPC endpoint supports it. What if two VPCs have overlapping subnet, we need to consider all possible scenarios. https://support.huaweicloud.com/intl/en-us/vpcep_faq/vpcep_04_0004.html So the answer is B
upvoted 1 times
Jonfernz
3 years, 8 months ago
Not true. VPC Endpoint is region specific.
upvoted 2 times
...
...
KK_uniq
3 years, 8 months ago
Somebody please say why not VPC endpoint?
upvoted 3 times
Xfo
3 years, 8 months ago
Because VPC Endpoint only works in the same Region, VPC Peeering works across Regions. The question says.."in two VPCs across different AWS Regions.."
upvoted 11 times
...
...
Balki
3 years, 8 months ago
Answer D I too thought aboubt B initially and then changed my answer back https://aws.amazon.com/about-aws/whats-new/2017/11/announcing-support-for-inter-region-vpc-peering/#:~:text=Inter%2DRegion%20VPC%20Peering%20allows,connections%20or%20separate%20network%20appliances.
upvoted 3 times
...
Kenzo
3 years, 9 months ago
You can create a VPC endpoint to connect your local data center to a cloud service using a VPN connection or a direct connection over an internal network. VPC Peering supports only communication between two VPCs in the same region. The answer should be B since it's across regions
upvoted 1 times
andwill1001
3 years, 8 months ago
The top answer at as the most upvoted comment has an actual AWS link that shows this is incorrect. Read the comments on here first before confusing people.
upvoted 3 times
...
virendrapsingh
3 years, 9 months ago
VPC peering is allowed across region. (https://docs.aws.amazon.com/devicefarm/latest/developerguide/amazon-vpc-cross-region.html) Only condition is CIDR block shouldn't be shared.
upvoted 1 times
DahMac
3 years, 8 months ago
You can connect with private links, VPNs etc, but link above does not say its VPC peering.
upvoted 1 times
...
DahMac
3 years, 8 months ago
https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html a better link The VPCs can be in different regions (also known as an inter-region VPC peering connection).
upvoted 1 times
...
...
...
solee
3 years, 9 months ago
I am trying to understand - considering VPC endpoint does not require public IP address, why the answer can't be VPC endpoint? Can someone help? Thanks.
upvoted 3 times
muirinn
3 years, 9 months ago
At first glance, it's a bit of an overkill to peer VPCs to enable communication between 2 EC2s only; all resources of the VPCs could connect to each other. But it's likely more complicated to go using VPC endpoints, needing AWS PrivateLink, check this: https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/aws-privatelink.html
upvoted 2 times
cnmc
3 years, 9 months ago
The above answer is right, and for more clarity, VPC endpoint (with Private Link) is even a bigger overkill than VPC peering
upvoted 1 times
...
theCreatorSD
3 years, 9 months ago
https://aws.amazon.com/about-aws/whats-new/2018/10/aws-privatelink-now-supports-access-over-inter-region-vpc-peering/ I think this post says VPC Peering cannot cross regions. Could you please check this?
upvoted 1 times
Grandweez
3 years, 8 months ago
https://aws.amazon.com/about-aws/whats-new/2017/11/announcing-support-for-inter-region-vpc-peering This says otherwise. VPC peering across regions is now being supported. D it is.
upvoted 1 times
...
...
...
Twinkie
3 years, 9 months ago
I would definitely choose answer C as the question clearly refers only to the 2 EC2 instances and the VPC endpoint is exactly suited for this purpose. It’s not more complicated to setup than vpc peering either.
upvoted 1 times
Twinkie
3 years, 9 months ago
Sorry, I meant answer B
upvoted 1 times
Tapsinha
3 years, 8 months ago
VPC Endpoints are supported within the same Region only. You cannot create an endpoint between a VPC and a service in a different Region. So the answer is D
upvoted 2 times
...
...
...
...
Raksim
3 years, 9 months ago
VPC peering over the AWS backbone network. D
upvoted 3 times
...
KK_uniq
3 years, 9 months ago
D for sure
upvoted 4 times
...
waqas
3 years, 9 months ago
D. VPC Peering.
upvoted 3 times
...
dmscountera
3 years, 9 months ago
D. Create a VPC peering connection and update the route table of the EC2 instancesג€™ subnet.
upvoted 4 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 ...