If I want an instance to have a public IP address, which IP address should I use?

What type of IP address should be used to assign a public IP address to an instance?

An instance to have a public IP address, you should use the Elastic IP Address.

Explanation:

If you want an instance (a virtual server in the cloud) to have a public IP address, you should use the Elastic IP Address. An Elastic IP Address is a static IPv4 address designed for dynamic cloud computing. Unlike Class A or Class B IP addresses, which are reserved and unique within the confines of an organization's network, or a Dynamic IP Address, which may change every time you connect to the network, an Elastic IP Address is a public IPv4 address, reachable from the internet. It is associated with your AWS account, and you can associate it with any instance or network interface in your account.
← Edutech distributing uwp app to employees Visualizing the journey of human migrations through time →