Every time you create an instance, it gets allocated a private and a public address. Where on the one hand, the private IP is linked with its respective instance and it is delivered back to the IP address pool of AWS EC2 when it is terminated or stopped, on the other hand, public IP stays connected till the time an instance is stopped or terminated. This can be resolved using Elastic static IP, which stays till the time the user does not detach it manually. But in the case where you are hosting numerous websites on the server, then you will need more than one Elastic IP addresses.
If you want to get certified in AWS, check out this AWS Course to enroll yourself.
If you want to know about AWS in detail, watch this video below: