AWS Certified Solutions Architect – Professional — Question 346

An elastic network interface (ENI) is a virtual network interface that you can attach to an instance in a VPC. An ENI can include one public IP address, which can be auto-assigned to the elastic network interface for eth0 when you launch an instance, but only when you_____.

Answer options

Correct answer: D

Explanation

When launching a new Amazon EC2 instance, AWS can auto-assign a public IP address to the primary network interface (eth0) only if you opt to create a new network interface during the launch process. If you instead attach an existing ENI to eth0, or try to configure a secondary interface like eth1, the auto-assignment of a public IP is not supported.