How can software determine the public and private IP addresses of the Amazon EC2
instance that it is running on?
A.
Query the appropriate Amazon CloudWatch metric.
B.
Use ipconfig or ifconfig command.
C.
Query the local instance userdata.
D.
Query the local instance metadata.
I agree with the answer. D
D
d
A is the answer
D
D.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
D
Metadata Value
instance-id i-1234567890abcdef0
ami-launch-index 0
public-hostname ec2-203-0-113-25.compute-1.amazonaws.com
public-ipv4 67.202.51.223
local-hostname ip-10-251-50-12.ec2.internal
local-ipv4 10.251.50.35
D
D