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 291 discussion

A solutions architect is creating a new VPC design. There are two public subnets for the load balancer, two private subnets for web servers, and two private subnets for MySQL. The web servers use only HTTPS. The solutions architect has already created a security group for the load balancer allowing port 443 from
0.0.0.0/0. Company policy requires that each resource has the least access required to still be able to perform its tasks.
Which additional configuration strategy should the solutions architect use to meet these requirements?

  • A. Create a security group for the web servers and allow port 443 from 0.0.0.0/0. Create a security group for the MySQL servers and allow port 3306 from the web servers security group.
  • B. Create a network ACL for the web servers and allow port 443 from 0.0.0.0/0. Create a network ACL for the MySQL servers and allow port 3306 from the web servers security group.
  • C. Create a security group for the web servers and allow port 443 from the load balancer. Create a security group for the MySQL servers and allow port 3306 from the web servers security group.
  • D. Create a network ACL for the web servers and allow port 443 from the load balancer. Create a network ACL for the MySQL servers and allow port 3306 from the web servers security group.
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
toto059
Highly Voted 3 years, 7 months ago
C is right
upvoted 34 times
...
jkwek
Highly Voted 3 years, 6 months ago
C is correct. Reasons as below: Security groups are stateful: This means any changes applied to an incoming rule will be automatically applied to the outgoing rule. e.g. If you allow an incoming port 80, the outgoing port 80 will be automatically opened. Network ACLs are stateless: This means any changes applied to an incoming rule will not be applied to the outgoing rule. e.g. If you allow an incoming port 80, you would also need to apply the rule for outgoing traffic. Refer url: https://medium.com/awesome-cloud/aws-difference-between-security-groups-and-network-acls-adc632ea29ae
upvoted 22 times
...
kc1990
Most Recent 2 years, 11 months ago
(A) is the answer, load balancer does not NAT by default the Source address coming from Internet, it NATs only the destination (private IP of web application) User (IP 0.0.0.0/0) Server (private IP x.x.x.x) Load Balancer (public IP y.y.y.y) the traffic flow is: 1- from user (src IP: 0.0.0.0/0 | dst IP: y.y.y.y) 2- at LB is made the NAT from (src IP: 0.0.0.0/0 | dst IP: y.y.y.y) to (src IP: 0.0.0.0/0 | dst IP: x.x.x.x) 3- at WEB server the package has the IP (src IP: 0.0.0.0/0 | dst IP: x.x.x.x)
upvoted 1 times
...
keeplearning_rahul
3 years, 4 months ago
C is correct answer
upvoted 2 times
...
Akbar_aws
3 years, 6 months ago
This was on my test 7/28/21 and C is correct.
upvoted 5 times
vvsandipvv
3 years, 6 months ago
passed or na?
upvoted 1 times
...
...
tinyshare
3 years, 6 months ago
Answer C Network ACL is used for VPC subnet, not instance, so D is wrong
upvoted 6 times
...
chickenstrips
3 years, 6 months ago
CCCCCCCCCCCCCc
upvoted 3 times
...
jkwek
3 years, 6 months ago
C is correct. Reason is the keywords "each resource has the least access required" and only security groups are stateful and least access required.
upvoted 4 times
...
KK_uniq
3 years, 6 months ago
C is ok
upvoted 3 times
...
syu31svc
3 years, 6 months ago
C for correct
upvoted 3 times
...
Ni_yot
3 years, 6 months ago
Yep C is correct. The web servers and the sql servers are all the private subnet and should not have direct internet access.
upvoted 3 times
...
Yogi
3 years, 6 months ago
Ans=A. Create a security group for the web servers and allow port 443 from 0.0.0.0/0. Create a security group for the MySQL servers and allow port 3306 from the web servers security group.
upvoted 2 times
waqas
3 years, 6 months ago
C is right...Traffic should be coming via ELB SG not directly (from anywhere). Web servers are behind ELB and in Pvt subnet.
upvoted 7 times
...
...
dave0808
3 years, 7 months ago
C 100%
upvoted 2 times
...
NSF
3 years, 7 months ago
You can’t have the LB as the source but you can have its SG as the source, if you have to specify IP address, range or prefix
upvoted 2 times
...
AK003
3 years, 7 months ago
CCCCCCCCCCC
upvoted 4 times
...
algreat
3 years, 7 months ago
C is correct
upvoted 8 times
...
leonardoy
3 years, 7 months ago
It is C
upvoted 6 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