Practice question from AWS Foundations & Core Services
Complete the security group rule to allow HTTPS traffic:
ec2.authorize_security_group_ingress(
GroupId='sg-12345',
IpPermissions=[{
'IpProtocol': 'tcp',
'FromPort': ____,
'ToPort': ____,
'IpRanges': [{'CidrIp': '0.0.0.0/0'}]
}]
)Answer
!AI
Explanation
HTTPS traffic uses port 443. HTTP uses port 80. Both FromPort and ToPort should be 443 to allow HTTPS connections.