exam questions

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

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

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 510 discussion

A global marketing company has applications that run in the ap-southeast-2 Region and the eu-west-1 Region. Applications that run in a VPC in eu-west-1 need to communicate securely with databases that run in a VPC in ap-southeast-2.

Which network design will meet these requirements?

  • A. Create a VPC peering connection between the eu-west-1 VPC and the ap-southeast-2 VPC. Create an inbound rule in the eu-west-1 application security group that allows traffic from the database server IP addresses in the ap-southeast-2 security group.
  • B. Configure a VPC peering connection between the ap-southeast-2 VPC and the eu-west-1 VPC. Update the subnet route tables. Create an inbound rule in the ap-southeast-2 database security group that references the security group ID of the application servers in eu-west-1.
  • C. Configure a VPC peering connection between the ap-southeast-2 VPC and the eu-west-1 VPUpdate the subnet route tables. Create an inbound rule in the ap-southeast-2 database security group that allows traffic from the eu-west-1 application server IP addresses.
  • D. Create a transit gateway with a peering attachment between the eu-west-1 VPC and the ap-southeast-2 VPC. After the transit gateways are properly peered and routing is configured, create an inbound rule in the database security group that references the security group ID of the application servers in eu-west-1.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
VellaDevil
Highly Voted 1 year, 5 months ago
Selected Answer: C
Answer: C -->"You cannot reference the security group of a peer VPC that's in a different Region. Instead, use the CIDR block of the peer VPC." https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-security-groups.html
upvoted 45 times
MatAlves
3 months, 1 week ago
Wow, big thanks!
upvoted 2 times
...
hsinchang
1 year, 5 months ago
Thanks for this clarification!
upvoted 4 times
...
...
Axeashes
Highly Voted 1 year, 6 months ago
Selected Answer: C
"You cannot reference the security group of a peer VPC that's in a different Region. Instead, use the CIDR block of the peer VPC." https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-security-groups.html
upvoted 11 times
...
potomac
Most Recent 1 year, 1 month ago
Selected Answer: C
After establishing the VPC peering connection, the subnet route tables need to be updated in both VPCs to route traffic to the other VPC's CIDR blocks through the peering connection.
upvoted 3 times
...
Bennyboy789
1 year, 3 months ago
Selected Answer: C
VPC Peering Connection: This allows communication between instances in different VPCs as if they are on the same network. It's a straightforward approach to connect the two VPCs. Subnet Route Tables: After establishing the VPC peering connection, the subnet route tables need to be updated in both VPCs to route traffic to the other VPC's CIDR blocks through the peering connection. Inbound Rule in Database Security Group: By creating an inbound rule in the ap-southeast-2 database security group that allows traffic from the eu-west-1 application server IP addresses, you ensure that only the specified application servers from the eu-west-1 VPC can access the database servers in the ap-southeast-2 VPC.
upvoted 4 times
...
Guru4Cloud
1 year, 4 months ago
Selected Answer: B
B) Configure VPC peering between ap-southeast-2 and eu-west-1 VPCs. Update routes. Allow traffic in ap-southeast-2 database SG from eu-west-1 application server SG. This option establishes the correct network connectivity for the applications in eu-west-1 to reach the databases in ap-southeast-2: VPC peering connects the two VPCs across regions - https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html#:~:text=You%20can%20create%20a%20VPC,%2DRegion%20VPC%20peering%20connection). Updating route tables enables routing between the VPCs Security group rule allowing traffic from eu-west-1 application server SG to ap-southeast-2 database SG secures connectivity
upvoted 2 times
awsgeek75
11 months, 1 week ago
No, you cannot use a SG reference from another region so last part "Create an inbound rule in the ap-southeast-2 database security group that references the security group ID of the application servers in eu-west-1" cannot be setup. This is why B is wrong.
upvoted 3 times
...
Guru4Cloud
1 year, 4 months ago
Options A, C, D have flaws: Option A peer direction is wrong Option C opens databases to application server IP addresses rather than SG Option D uses transit gateway which is unnecessary for just two VPCs
upvoted 2 times
...
...
TariqKipkemei
1 year, 5 months ago
Selected Answer: C
Selected C but B can also work
upvoted 1 times
...
TariqKipkemei
1 year, 5 months ago
I just tried from the the console, You can specify the name or ID of another security group in the same region. To specify a security group in another AWS account (EC2-Classic only), prefix it with the account ID and a forward slash, for example: 111122223333/OtherSecurityGroup. You can Specify a single IP address, or an IP address range in CIDR notation in the same/other region. In the exam both option B and C would be a pass. In the real world both option will work.
upvoted 3 times
TariqKipkemei
1 year, 1 month ago
Correction, You cannot reference the security group of a peer VPC that's in a different Region. Instead, use the CIDR block of the peer VPC. The C is the only option here. https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-security-groups.html#:~:text=You%20cannot-,reference,-the%20security%20group
upvoted 4 times
awsgeek75
11 months, 1 week ago
This is why B is wrong. You can never access cross region security group id
upvoted 1 times
...
...
...
Chris22usa
1 year, 5 months ago
I realize D is right as ChatGpt indicates.Because here is not a problem just one application in a VPC connection to another in different region. Actually there many applications in different VPCs in a region which need to connect any other application crossingly in other region. So two transit gateway need to installed in two regions for multiple to multiple VPCs connections.
upvoted 2 times
Iragmt
1 year, 5 months ago
However, there was also a part of "create an inbound rule in the database security group that references the security group ID of the application servers in eu-west-1" therefore, still C because we cannot reference SG ID of diff VPC, we should use the CIDR block
upvoted 1 times
...
...
Chris22usa
1 year, 5 months ago
post it on ChaptGpt and it give me answer D. what heck with this?
upvoted 2 times
...
haoAWS
1 year, 6 months ago
Selected Answer: C
B is wrong because It is in a different region, so reference to the security group ID will not work. A is wrong because you need to update the route table. The answer should be C.
upvoted 1 times
...
mattcl
1 year, 6 months ago
is B. what happens if application server IP addresses changes (Option C). You must change manually the IP in the security group again.
upvoted 1 times
...
antropaws
1 year, 6 months ago
Selected Answer: C
I thought B, but I vote C after checking Axeashes response.
upvoted 1 times
...
HelioNeto
1 year, 6 months ago
Selected Answer: C
I think the answer is C because the security groups are in different VPCs. When the question wants to allow traffic from app vpc to database vpc i think using peering connection you will be able to add the security groups rules using private ip addresses of app servers. I don't think the database VPC will identify the security group id of another VPC.
upvoted 2 times
...
REzirezi
1 year, 7 months ago
D You cannot create a VPC peering connection between VPCs in different regions.
upvoted 3 times
[Removed]
1 year, 7 months ago
You can peer any two VPCs in different Regions, as long as they have distinct, non-overlapping CIDR blocks https://docs.aws.amazon.com/devicefarm/latest/developerguide/amazon-vpc-cross-region.html
upvoted 3 times
...
fakrap
1 year, 7 months ago
You can peer any two VPCs in different Regions, as long as they have distinct, non-overlapping CIDR blocks. This ensures that all of the private IP addresses are unique, and it allows all of the resources in the VPCs to address each other without the need for any form of network address translation (NAT).
upvoted 2 times
...
...
nosense
1 year, 7 months ago
Selected Answer: B
b for me. bcs correct inbound rule, and not overhead
upvoted 2 times
...
cloudenthusiast
1 year, 7 months ago
Selected Answer: B
Option B suggests configuring a VPC peering connection between the ap-southeast-2 VPC and the eu-west-1 VPC. By establishing this peering connection, the VPCs can communicate with each other over their private IP addresses. Additionally, updating the subnet route tables is necessary to ensure that the traffic destined for the remote VPC is correctly routed through the VPC peering connection. To secure the communication, an inbound rule is created in the ap-southeast-2 database security group. This rule references the security group ID of the application servers in the eu-west-1 VPC, allowing traffic only from those instances. This approach ensures that only the authorized application servers can access the databases in the ap-southeast-2 VPC.
upvoted 5 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