How can software determine the public and private IP addresses of the EC2 instance that it is running on?
A.
Query the local instance metadata.
B.
Query the local instance userdata.
C.
Query the appropriate Amazon CloudWatch metric.
D.
Use an ipconfig or ifconfig command.
A. Query the local instance metadata.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
D?
not asked regarding OS but EC2 instance
ipconfig / ifconfig can’t show public ip