How can software determine the public and private IP addresses of the Amazon EC2 instance that it is running
on?
A.
Query the local instance metadata.
B.
Query the appropriate Amazon CloudWatch metric.
C.
Query the local instance userdata.
D.
Use ipconfig or ifconfig command.
Hi, the correct answer is A
See: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
Thanks,
Frank
1
0
A
0
0
Agree with others. Answer is A, not B.
1
0
A is correct.
0
0
a
0
0
A is Answer. wget -q -O- http://169.254.169.254/latest/meta-data/public-ipv4
0
0
A
MYIP=`curl http://169.254.169.254/latest/meta-data/public-ipv4`
0
0
A
0
0