You have a web application hosted on a web server in AWS.
You have a need for the moment to allow both HTTP and HTTPS Traffic for this application.
Which of the following ports need to be configured in the security group to ensure that the traffic gets routed accordingly.
Choose 2 answers from the options given below.
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - B and C.
The port used by HTTP traffic is port 80 and that by HTTPS is port 443.
For configuration of these ports on a load balancer, one can visit the below URL:
http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create-https-ssl-load-balancer.htmlTo allow both HTTP and HTTPS traffic for a web application hosted on a web server in AWS, the security group needs to be configured to allow incoming traffic on ports 80 and 443.
Port 80 is the default port used for HTTP traffic, while port 443 is used for HTTPS traffic. HTTP traffic is unencrypted, while HTTPS traffic is encrypted using SSL/TLS. By allowing both ports in the security group, incoming traffic to the web server can be routed accordingly depending on whether it is HTTP or HTTPS traffic.
Here's a brief overview of the options provided:
A. Port 22 is used for SSH (Secure Shell) traffic, which is used to remotely connect to a server to manage it. It is not used for HTTP or HTTPS traffic and does not need to be configured for this scenario.
B. Port 80 is used for HTTP traffic and needs to be configured to allow incoming HTTP traffic to the web server.
C. Port 443 is used for HTTPS traffic and needs to be configured to allow incoming HTTPS traffic to the web server.
D. Port 25 is used for SMTP (Simple Mail Transfer Protocol) traffic, which is used for sending email. It is not used for HTTP or HTTPS traffic and does not need to be configured for this scenario.
Therefore, the correct answers are options B and C: ports 80 and 443 need to be configured in the security group to ensure that both HTTP and HTTPS traffic get routed accordingly.