A network engineer is creating a launch template for an Auto Scaling group that will run a Linux network appliance. The appliance needs a primary network interface plus a second interface that uses a public IP (an Elastic IP from the company's BYOIP pool) for application traffic to/from the internet. Which approach implements this design?
Choose an answer
Tap an option to check your answer.
Correct answer: During creation of the Auto Scaling group, select subnets for the primary network interface. Use the user data option to run a cloud-init script to allocate a second network interface and to associate an Elastic IP address from the BYOIP pool..
Why this is the answer
The correct approach uses user data to attach the second network interface and associate the BYOIP Elastic IP. Launch templates can define only the primary network interface directly. While you can specify multiple network interfaces in a launch template, only the primary interface (device index 0) is fully configurable for an Auto Scaling group. Additional interfaces (device index 1+) are created but cannot be pre-assigned specific EIPs or BYOIP addresses directly through the launch template itself. Cloud-init scripts executed via user data are the standard method for post-launch configuration, including attaching secondary ENIs and associating specific EIPs, especially from a BYOIP pool. The other options are incorrect because they either attempt to configure the second interface directly in the launch template with specific public IPs (which is not fully supported for secondary ENIs in ASG launch templates), rely on a Lambda function for a task better suited to user data, or incorrectly assume a public subnet automatically provides a BYOIP address.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed