exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 16 discussion

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

You need to design a VPC for a web-application consisting of an Elastic Load Balancer (ELB). a fleet of web/application servers, and an RDS database. The entire Infrastructure must be distributed over 2 availability zones.
Which VPC configuration works while assuring the database is not available from the Internet?

  • A. One public subnet for ELB one public subnet for the web-servers, and one private subnet for the database
  • B. One public subnet for ELB two private subnets for the web-servers, two private subnets for RDS
  • C. Two public subnets for ELB two private subnets for the web-servers and two private subnets for RDS
  • D. Two public subnets for ELB two public subnets for the web-servers, and two public subnets for RDS
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
While using ELB for web applications, ensure that you place all other EC2 instances in private subnets wherever possible. Except where there is an explicit requirement for instances requiring outside world access and Elastic IP attached, place all the instances in private subnets only. In the Amazon VPC environment, only ELBs must be in the public subnet as secure practice.
You will need to select a Subnet for each Availability Zone where you wish traffic to be routed by your load balancer. If you have instances in only one Availability
Zone, please select at least two Subnets in different Availability Zones to provide higher availability for your load balance

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
jyrajan69
Highly Voted 6 months, 3 weeks ago
Í have to agree with One Public for ELB and 2 for Web and 2 for DB..do not see why you need two ELB
upvoted 8 times
NguyenLC1
6 months ago
"Each subnet must reside entirely within one Availability Zone and cannot span zones." -> For HA of ELB, I think it should be placed in 2 public subnets.
upvoted 1 times
...
ImranR
6 months, 2 weeks ago
Answer C
upvoted 1 times
...
ImranR
6 months, 2 weeks ago
The entire Infrastructure must be distributed over 2 availability zones. so 2 public subnets for ELB needed instead of 1 to fulfill requirement as stated...
upvoted 3 times
...
...
karmaah
Highly Voted 7 months, 1 week ago
The main reason of C is . The entire Infrastructure must be distributed over 2 availability zones.
upvoted 7 times
...
AMohanty
Most Recent 4 months, 4 weeks ago
I would go for B. Why do u require 2 ELB's , it defeats the whole purpose of ELB.
upvoted 1 times
...
Shaktimaan
5 months, 3 weeks ago
B is the right answer. ELB is HA by default.
upvoted 1 times
...
FHU
5 months, 3 weeks ago
For me, letter C is correct. This question is very tricky, first of all it says the solution should be restricted to two availability zones. It might mislead you to choose letter A, where you have two subnets. But subnet is one thing, and availability zone is another. You can have multiple subnets on one AZ. Moreover, ELB requires at least two subnets, so letter A and B are not possible. Letter D is incorrect because it is not best practice to put web servers and RDS in public subnets.
upvoted 1 times
...
bobanBBB
6 months ago
I also think it is B. Only one ELB can serve both AZ where the EC2 and DBs are in private subnet.
upvoted 1 times
...
RicardoD
6 months ago
Answer is C ALB requires to reside at a public subnet and can span through AZs but, remember subnets do not span AZs, so 2 public subnets are required, 1 for each AZ Then you will need 2 private subnets for EC2 and 2 private subnets for RDS
upvoted 1 times
...
eyadman
6 months, 1 week ago
Subnets for your load balancer To ensure that your load balancer can scale properly, verify that each subnet for your load balancer has a CIDR block with at least a /27 bitmask (for example, 10.0.0.0/27) and has at least 8 free IP addresses. Your load balancer uses these IP addresses to establish connections with the instances. Create a subnet in each Availability Zone where you want to launch instances. Depending on your application, you can launch your instances in public subnets, private subnets, or a combination of public and private subnets. A public subnet has a route to an internet gateway. Note that default VPCs have one public subnet per Availability Zone by default. When you create a load balancer, you must add one or more public subnets to the load balancer. If your instances are in private subnets, create public subnets in the same Availability Zones as the subnets with your instances; you will add these public subnets to the load balancer. https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-backend-instances.html
upvoted 3 times
...
walthor
6 months, 1 week ago
I think the correct answer is B. The ELB is already in HA and is managed and guaranteed by AWS.
upvoted 3 times
...
waterzhong
6 months, 2 weeks ago
For load balancers in a VPC, we recommend that you add one subnet per Availability Zone for at least two Availability Zones. This improves the availability of your load balancer. Note that you can modify the subnets for your load balancer at any time. https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-manage-subnets.html
upvoted 2 times
jtzt2003
6 months, 1 week ago
This relates to the subnets which contain the target instances, not for the ELBs themselves. The ELB only needs one subnet, as it handles its own HA. The answer is B.
upvoted 3 times
...
...
waterzhong
6 months, 2 weeks ago
C. Two public subnets for ELB two private subnets for the web-servers and two private subnets for RDS
upvoted 2 times
...
fagas
6 months, 3 weeks ago
one ALB may lead to single point of failure. better to have two ALB each located in different AZ, although one ALB can serve both AZ but there is a risk of in case that AZ fails
upvoted 1 times
...
AWScloudGaf
6 months, 3 weeks ago
ELB can span multiple AZ - so one public subnet for ELB and two private for APP and DB
upvoted 4 times
...
Akbarali
7 months ago
Sorry, you guys understood question wrong, question said "The entire Infrastructure must be distributed over 2 availability zones" not each subnet distributed over 2 AZs and RDS must be in Private subnet only. Correct answer is "A".
upvoted 2 times
devvick
6 months, 4 weeks ago
No, it's not. Subnets are AZ-bound, therefore answer A does not satisfy that requirement.
upvoted 1 times
...
...
awscertified
7 months ago
C. Two public subnets for ELB two private subnets for the web-servers and two private subnets for RDS
upvoted 3 times
...
dahp
7 months, 1 week ago
Remember never to put your DB in a public subnet, only in private ones.
upvoted 2 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