A Developer is creating an application that needs to locate the public IPv4 address of the Amazon EC2 instance on which it runs.
How can the application locate this information?
A . Get the instance metadata by retrieving http://169.254.169.254/latest/metadata/.
B . Get the instance user data by retrieving http://169.254.169.254/latest/userdata/.
C . Get the application to run IFCONFIG to get the public IP address.
D . Get the application to run IPCONFIG to get the public IP address.
Answer: A
Explanation:
Reference: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html