AWS Certified SysOps Administrator SOA-C01 – Question319

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.