exam questions

Exam ANS-C00 All Questions

View all questions & answers for the ANS-C00 exam

Exam ANS-C00 topic 1 question 9 discussion

Exam question from Amazon's ANS-C00
Question #: 9
Topic #: 1
[All ANS-C00 Questions]

Refer to the image.

You have three VPCs: A, B, and C. VPCs A and C are both peered with VPC B. The IP address ranges are as follows:
✑ VPC A: 10.0.0.0/16
✑ VPC B: 192.168.0.0/16
✑ VPC C: 10.0.0.0/16
Instance i-1 in VPC A has the IP address 10.0.0.10. Instance i-2 in VPC C has the IP address 10.0.0.10. Instances i-3 and i-4 in VPC B have the IP addresses
192.168.1.10 and 192.168.1.20, respectively, i-3 and i-4 are in the subnet 192.168.1.0/24.
✑ i-3 must be able to communicate with i-1
✑ i-4 must be able to communicate with i-2
✑ i-3 and i-4 are able to communicate with i-1, but not with i-2.
Which two steps will fix this problem? (Choose two.)

  • A. Create subnets 192.168.1.0/28 and 192.168.1.16/28. Move i-3 and i-4 to these subnets, respectively.
  • B. Create subnets 192.168.1.0/27 and 192.168.1.16/27. Move i-3 and i-4 to these subnets, respectively.
  • C. Change the IP address of i-2 to 10.0.0.100. Assign it an elastic IP address.
  • D. Create a new route table for VPC B, with unique route entries for destination VPC A and destination VPC C.
  • E. Create two route tables: one with a route for destination VPC A, and another for destination VPC C.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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
asiansensation
Highly Voted 3 years, 9 months ago
A,E are the answers
upvoted 20 times
Cyril_the_Squirl
3 years, 8 months ago
You’re wrong…Subnetting locally doesn’t fix the problem of destination network prefix, which will remain identical unless you use more preferred specific routes, the same way prefix lists work, keep it simple.
upvoted 2 times
slackbot
2 years, 2 months ago
you are incorrect - with different route tables for each subnet, you can use different pcx as a target. so yes - A&E
upvoted 1 times
...
...
...
BKV83
Highly Voted 3 years, 5 months ago
Selected Answer: AE
https://docs.aws.amazon.com/vpc/latest/peering/peering-configurations-partial-access.html
upvoted 7 times
...
PavanKushwah123
Most Recent 2 years, 6 months ago
Correct Answer A E
upvoted 1 times
...
joanneli77
2 years, 8 months ago
A and B are both overlapping CIDR blocks witn 192.168.1.0/24, so they can't work. I would otherwise agree with A+E, but there's nothing that states I can tear-down the current /24 subnet (i.e. there may be other instances there, no clue as to prod/dev, etc.). Real answer is to use unallocated range in the massive /16 to accomplish this, but A is wrong "as written".
upvoted 1 times
...
cannoe
2 years, 9 months ago
This question is a nut! Even if you create two route tables on VPC-B, it won't work. There is no way for i3 to communicate with 1-2, and the same for 1-4 to i-1. The only way is to change the IP address of i-2. Now, if the only requirement is for i-3 to communicate with i-1 and 1-4 to communicate with i-2, then letters A &E are correct. But these whole conversations started because 1-3 and 1-4 cannot communicate with i-2, and some nuts want it fixed.
upvoted 2 times
...
quixo
2 years, 12 months ago
Selected Answer: CD
According to this knowledge, I choose C&D - The owner of the peer VPC must also complete these steps to add a route to direct traffic back to your VPC through the VPC peering connection. - For Destination, enter the IPv4 address range to which the network traffic in the VPC peering connection must be directed. You can specify the entire IPv4 CIDR block of the peer VPC, a specific range, or an individual IPv4 address, such as the IP address of the instance with which to communicate. For example, if the CIDR block of the peer VPC is https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-routing.html The solution should be like this: (1) VPC B route table - VPC B => Local - 10.0.0.10/32 => PCX A - 10.0.0.100/32 (changed i-2 IP to 10.0.0.100 according to answer C) => PCX C (2) VPC A route table - VPC A => Local - 192.168.1.10 => PCX B - 192.168.1.20 => PCX B (3) VPC C route table - VPC C => Local - 192.168.1.20 => PCX B
upvoted 2 times
quixo
2 years, 12 months ago
with AE answer - how can we parallel do propagate i-4 to both VPC A and VPC C. 1 subnet has only 1 route table. - 2 subnet , with different route table, let assume i-4 in 1 subnet - with only 1 destination to A or C ? how can we resolve the requirement. However, C&D is still not enough. We still need to configure Route table in VPC A and VPC C
upvoted 1 times
...
...
shaji123
3 years ago
Answer - A & D Why D -- A single route table with unique routes would help here. Single route table for VPC-B, with three route entries. Destination Target 192.1680.0.0/16 LOCAL (local route) 192.168.1.0/28 VPC-A (route to VPC-A) 192.168.1.16/28 VPC-B (route to VPC-B)
upvoted 1 times
...
Royce341
3 years, 1 month ago
Initially I agreed with Cyril_the_Squirl but after a bit of digging - A & E are the correct answers. Look at 'Subnet route tables' & 'Custom route tables' to get an understanding. My take is that by splitting the two VPC B devices into two separate subnets (/28 is the correct fit in this example) you can then create two custom route tables with the target being a different VPC for the same IP address - in this case VPC A & VPC C respectively. https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html#route-table-assocation
upvoted 2 times
...
Cyril_the_Squirl
3 years, 8 months ago
C & D are correct. You change the ipaddress of i2 so that you can then create more specific routes.
upvoted 2 times
...
afantict
3 years, 8 months ago
Who can tell me how to realise the below request with A&E. Thanks ✑ i-3 and i-4 are able to communicate with i-1, but not with i-2.
upvoted 4 times
...
ptpho
3 years, 8 months ago
CD with me Duplicated IP and cidr between i1 and i2 The most specific route we can have is /32 so with the same IP then I dont see any ways to route to both of them from a subnet -> Need to change i2 to 10.0.0.100 and RT of VPCB can be 10.0.0.10/32 via pxc-ba 10.0.0.100/32 via pxc-bc This is pcx so return route can be same in VPCA and C
upvoted 2 times
...
AshishBravo
3 years, 8 months ago
DE, As to change the subnet we need to recreate the Machine (So A is not the answer), we can create a specific route for i4(VPC C). Source: Destination: Via 192.168.1.0/24 -->10.0.0.10/32 --> PCXB-C 192.168.1.0/24 -->10.0.0.0/16 -->PCXB-A So the Answer is DE. As per the current Infrastructure. Later in case VPC refactorization is done then we may go for AE.(But not now)
upvoted 1 times
StelSen
3 years, 8 months ago
With this '192.168.1.0/24 -->10.0.0.10/32' configuration, i-3 can communicate to i-2 machine, which fails to meet requirement.
upvoted 1 times
...
...
ChauPhan
3 years, 9 months ago
A. Create subnets 192.168.1.0/28 and 192.168.1.16/28. Move i-3 and i-4 to these subnets, respectively. Then E. Create route 1st to VPC A, associated with both subnets 192.168.1.0/28 and 192.168.1.16/28 Create route 2nd to VPC C, associated with ONLY subet 192.168.1.16/28, where i-4 is located.
upvoted 1 times
ChauPhan
3 years, 8 months ago
Sorry ignore my comment above, it is not possible.
upvoted 1 times
...
...
vnsuk
3 years, 9 months ago
there's nothing wrong with VPC B. ans is C,D
upvoted 2 times
TerrenceC
3 years, 8 months ago
Agree with your point, I would prefer C and D as well. Although VPC-A and VPC-C use the same CIDR, from the route table aspect, the traffic is still able to separate via a more specific prefix (a host). Therefore, in VPC-B, you could point 10.0.0.10/32 toward VPC-A-PCX and point 10.0.0.100/32 toward VPC-C-PCX.
upvoted 2 times
StelSen
3 years, 8 months ago
C - Technically can. But imagine, we will end up allocating manual IPV4. And will keep adding /32 route entries. Isn't it easier to do A and future proof?
upvoted 1 times
sapien45
3 years, 3 months ago
The question is not about what is easier ... it is an emotionless exam. So /32 routes work fine on paper, to route to one instance.
upvoted 2 times
...
...
...
...
Huntkey
3 years, 9 months ago
BD can't be right. It will break i-4 to i-2. C itself is good enough in some sense. C&D together doesn't look right because D doesn't make sense without A. Why would you create another RT if you only have one subnet? Actually, the requirement is self-conflicting: ✑ i-4 must be able to communicate with i-2 ✑ i-3 and i-4 are able to communicate with i-1, but not with i-2. Did it just say i-4 need to talk to i-2? I hope I don't run into this question. If you let me guess, it wants you to choose BD but didn't have their mind straight for the question.
upvoted 1 times
Huntkey
3 years, 9 months ago
Sorry I meant for A and E
upvoted 3 times
StelSen
3 years, 8 months ago
You are right. But B also can. Its just that AWS supports /28 onwards. So, we can with A. But I will go with B when I really do this for my Client. But exam perspective, it will be A. :-)
upvoted 1 times
...
...
...
dev62
3 years, 9 months ago
Answer should be c & D. As i3 & i4 both will connect to i1 & i2.
upvoted 1 times
...
doski
3 years, 9 months ago
I'll take A and D because there's connection between vpc-a and vpc b already
upvoted 1 times
eeghai7thioyaiR4
3 years, 9 months ago
It cannot be D D means a new route table, with unique routes for VPC A and VPC C, but both VPC are using the same network (10.0.0.0/16), so you cannot create two unique routes C is wrong: changing the addr will not change the subnet size (still overlaps) B is wrong: 192.168.1.0/27 is the same as 192.168.1.16/27 (192.168.1.0/27 = 192.168.1.0 to 192.168.1.31) So, answer = AE
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 ...