A developer is hosting a web application on a single Amazon EC2 instance. The developer wants to allow external users to access the application over HTTPS while blocking all other incoming traffic. To achieve this, which configuration should be applied to the security group associated with the EC2 instance?
- Add an inbound rule allowing TCP port from source .Cevap
- BAdd both an inbound rule allowing TCP port from source and an outbound rule allowing ephemeral TCP ports to destination .
- CAdd only an outbound rule allowing TCP port to destination .
- DAdd a rule to the default AWS Shield protection to allow HTTPS traffic to the EC2 instance's IP address.
Cevap
Add an inbound rule allowing TCP port from source .
The correct option is the one that recommends adding an inbound rule allowing TCP port from source . Since security groups are stateful firewalls, they automatically allow return traffic for established connections. Therefore, allowing inbound TCP port is sufficient to enable external users to establish HTTPS connections and receive responses.
Adım Adım Çözüm
Anahtar Kavram
Stateful behavior of AWS Security Groups
Tahmini Süre:45s