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

A company has a web server running on an Amazon EC2 instance in a public subnet with an Elastic IP address. The default security group is assigned to the EC2 instance. The default network ACL has been modified to block all traffic. A solutions architect needs to make the web server accessible from everywhere on port
443.
Which combination of steps will accomplish this task? (Choose two.)

  • A. Create a security group with a rule to allow TCP port 443 from source 0.0.0.0/0.
  • B. Create a security group with a rule to allow TCP port 443 to destination 0.0.0.0/0.
  • C. Update the network ACL to allow TCP port 443 from source 0.0.0.0/0.
  • D. Update the network ACL to allow inbound/outbound TCP port 443 from source 0.0.0.0/0 and to destination 0.0.0.0/0.
  • E. Update the network ACL to allow inbound TCP port 443 from source 0.0.0.0/0 and outbound TCP port 32768-65535 to destination 0.0.0.0/0.
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
manoj101
Highly Voted 3 years, 7 months ago
A & E are correct.
upvoted 76 times
noahsark
3 years, 5 months ago
To avoid confusion, A & E are correct: Security group can only be configured with Allow. NACL can be configured with Allow and Deny. You can see it in your AWS free trial. And we need high ports for Client's source port. Basic OSI layer.
upvoted 9 times
elemzy
3 years, 5 months ago
You only need high ports when the host is initiating traffic. In this case, traffic comes to the server on port 443, and you need the server to be able to respond from 443 and not random ports. This is basic networking. A&D
upvoted 6 times
...
...
...
cmthiru
Highly Voted 3 years, 6 months ago
A = Security Group = Stateful E = NACL = Stateless = Bi-directional, Inbound - Any Source to Destination port-TCP & Outbound Any Destination to TCP Port-range. Not for all ports.
upvoted 41 times
mohamedsadek
3 years, 6 months ago
completely true
upvoted 4 times
...
...
nayan22032002
Most Recent 3 weeks, 2 days ago
Selected Answer: AD
While you do need to allow inbound port 443, outbound traffic on ephemeral ports (32768-65535) is not necessary for this use case, and it's not required to explicitly allow these ports for HTTPS communication.
upvoted 1 times
...
Uzbekistan
1 year, 1 month ago
Selected Answer: AC
To make the web server accessible from everywhere on port 443, you would need to perform the following steps: Create a security group with a rule to allow TCP port 443 from source 0.0.0.0/0: This allows inbound traffic on port 443 from any source IP address. Update the network ACL to allow inbound TCP port 443 from source 0.0.0.0/0: This allows inbound traffic on port 443 from any source IP address. So, the correct combination of steps would be: A. Create a security group with a rule to allow TCP port 443 from source 0.0.0.0/0. C. Update the network ACL to allow TCP port 443 from source 0.0.0.0/0.
upvoted 1 times
...
Uzbekistan
1 year, 1 month ago
Selected Answer: AC
E - is not correct ! ! ! Option E suggests updating the network ACL to allow inbound TCP port 443 from source 0.0.0.0/0 and outbound TCP port 32768-65535 to destination 0.0.0.0/0. However, this is not necessary for allowing inbound traffic on port 443. Network ACLs control traffic at the subnet level, and for inbound traffic to reach the EC2 instance, you only need to allow inbound traffic on port 443 from the source IP addresses specified in the ACL's rules. Allowing outbound traffic on ports 32768-65535 to destination 0.0.0.0/0 is also unnecessary for this scenario and could potentially introduce security risks by allowing unrestricted outbound traffic. Therefore, option E is not required to accomplish the task of making the web server accessible from everywhere on port 443.
upvoted 1 times
...
Uzbekistan
1 year, 1 month ago
Selected Answer: AC
To make the web server accessible from everywhere on port 443, you would need to perform the following steps: Create a security group with a rule to allow TCP port 443 from source 0.0.0.0/0: This allows inbound traffic on port 443 from any source IP address. Update the network ACL to allow inbound TCP port 443 from source 0.0.0.0/0: This allows inbound traffic on port 443 from any source IP address. So, the correct combination of steps would be: A. Create a security group with a rule to allow TCP port 443 from source 0.0.0.0/0. C. Update the network ACL to allow TCP port 443 from source 0.0.0.0/0.
upvoted 1 times
...
Samuel03
2 years, 1 month ago
Selected Answer: AE
Definitely A & E
upvoted 1 times
...
cloud_collector
2 years, 8 months ago
AE ..... There's a corresponding outbound rule that enables responses to that inbound traffic (outbound rule 140, which covers ephemeral ports 32768-65535) https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html
upvoted 2 times
...
bora4motion
2 years, 9 months ago
Selected Answer: AE
A + E is correct
upvoted 2 times
...
lukaszr
2 years, 10 months ago
AE 100% - If you have doubts, read again option D. Communication between hosts with src and dst port 443 will be impossoble unless specified in configuration. For typical uses it will never appear. Between D&E example: D) SRC: 10.0.0.10/24:443 & DST 128.0.0.128/24:443 = NOT GOOD ;) E) SRC: 10.0.0.10/24:[random high port] & DST 128.0.0.128/24:443 = It is how TCP works I hope it helped
upvoted 5 times
...
Edgarrt
3 years, 3 months ago
Selected Answer: AE
Case 1: if a request comes into a web server in your VPC from a Windows 10 client on the internet, your network ACL must have an outbound rule to enable traffic destined for ports 49152-65535 (ephemeral ports, range varies). Case 2: If an instance in your VPC is the client initiating a request, your network ACL must have an inbound rule to enable traffic destined for the ephemeral ports specific to the type of instance (Amazon Linux, Windows Server 2008, and so on) https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html I think q it's case 1 so you need outbound rule for ephemeral ports.
upvoted 3 times
...
kamino
3 years, 4 months ago
A & E : "To enable the connection to a service running on an instance, the associated network ACL must allow both: Inbound traffic on the port that the service is listening on Outbound traffic to ephemeral ports" https://aws.amazon.com/premiumsupport/knowledge-center/resolve-connection-sg-acl-inbound/
upvoted 4 times
...
yarvis
3 years, 5 months ago
https://aws.amazon.com/premiumsupport/knowledge-center/connect-http-https-ec2/
upvoted 2 times
...
ansarica
3 years, 5 months ago
A & E absolutely.
upvoted 2 times
...
Monbots
3 years, 5 months ago
This question came to my exam.
upvoted 3 times
...
Pb55
3 years, 5 months ago
A&E The client that initiates the request chooses the ephemeral port range. The range varies depending on the client's operating system. Many Linux kernels (including the Amazon Linux kernel) use ports 32768-61000. Requests originating from Elastic Load Balancing use ports 1024-65535. Windows operating systems through Windows Server 2003 use ports 1025-5000. Windows Server 2008 and later versions use ports 49152-65535. A NAT gateway uses ports 1024-65535. AWS Lambda functions use ports 1024-65535. Therefore range for Windows 2008 or Linux is 32768-65535.
upvoted 12 times
...
elemzy
3 years, 5 months ago
A and D I think. A is obvious because a security group is stateful. ACL is however stateless and needs to be opened in both directions. Opening from ephemeral ports is irrelevant because the webserver will not initiate traffic, but only respond to traffic directed to port 443. Ephemeral ports are used to initiate traffic from a host.
upvoted 3 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