ich two inbound ports must be allowed in the EC2 Security Group to connect to the instance and serve a basic webpage?
Port-22- SSH: To connect to a Linux EC2 instance remotely.
Port 80-HTTP: To access and serve a basic webpage through a web browser.