Security Group is act as a virtual firewall
Elastic IP: It is just like a dedicated IP, This IP address will not change even if the instance stop and restart
Also, we can associate this Elastic IP address with another backup instance if the main server go down, this will help to prevent maximum outage for the aplication.