0 votes
in AWS by

You're developing an application that will be hosted on an EC2 Instance. This will be part of an Autoscaling Group. The application needs to get the private IP of the instance to send it across to a controller-based application. Which of the following can be done to achieve this?

1 Answer

0 votes
by

Answer - A.

The application can use the application metadata to get the private IP address.

The below snapshot from the AWS Documentation shows the information that you can get from the Instance metadata.

Option B is invalid because this cannot be used to get the IP address of the instance.

Option C is invalid because this is not an automated approach.

Option D is invalid because we don't know the type of instance the application is running on.

Related questions

0 votes
asked Apr 17 in AWS by DavidAnderson
0 votes
asked Apr 22 in AWS by DavidAnderson
...