AWS Systems Architect Professional

AWS EC2 Network Interfaces: ENI, ENA, and EFA – SAP-C02 Study Guide

Learn how to choose AWS EC2 ENI, ENA, and EFA interfaces for general networking, high bandwidth, HPC, machine learning, and low-latency workloads.

AWS Systems Architect ProfessionalAWS Systems Architect ProfessionalUpdated Sep 1, 2026
Study options
WatchComing later
ListenComing later
ReadAvailable
ReviewComing later

Study guide

Technical reference and lesson notes

Purpose of This Lesson

Amazon EC2 instances use network interfaces to communicate with resources inside and outside a VPC. AWS provides several interface capabilities for different networking requirements:

  • Elastic network interface (ENI): General-purpose VPC networking.
  • Elastic Network Adapter (ENA): Enhanced networking with higher bandwidth and lower latency.
  • Elastic Fabric Adapter (EFA): Specialized, low-latency networking for tightly coupled high-performance computing and machine learning workloads.

The key architectural decision is not simply selecting an interface. You must also verify instance support, placement requirements, traffic scope, MTU compatibility, and whether the workload needs general VPC connectivity or specialized inter-instance communication.

Key Concepts

Elastic Network Interfaces (ENIs)

An ENI is a virtual network interface attached to an EC2 instance in a VPC. It is associated with a subnet and Availability Zone and can have:

  • A primary private IPv4 address.
  • Optional secondary private IPv4 addresses.
  • One or more IPv6 addresses, where supported and configured.
  • A public IPv4 address association when applicable.
  • One or more security groups.
  • A MAC address and interface-specific attributes.

ENIs are used for normal VPC communication, including communication with other instances, load balancers, databases, NAT instances, and on-premises networks through VPC connectivity services.

An instance can be multihomed by attaching multiple ENIs. Common reasons include:

  • Separating public-facing and private traffic.
  • Applying different security groups to different traffic paths.
  • Connecting an appliance or proxy to multiple network segments.
  • Supporting firewall, routing, or NAT-instance designs.

An ENI can be detached and attached to another compatible instance, which can be useful for preserving network identity during recovery. The ability to attach or detach interfaces depends on instance and interface constraints.

An ENI belongs to a specific subnet and therefore a specific Availability Zone. An attached ENI cannot be moved across Availability Zones. To use an interface in another Availability Zone, create a separate ENI in a subnet in that Availability Zone.

Elastic Network Adapter (ENA)

ENA provides enhanced networking for supported EC2 instance types. It is designed for workloads requiring substantially more bandwidth, faster packet processing, and lower latency than basic virtual networking.

Typical use cases include:

  • High-throughput web and application servers.
  • Databases and distributed data stores.
  • Big data processing.
  • Network-intensive analytics.
  • Applications transferring large volumes of data between instances.

ENA uses hardware-assisted virtualization, including Single Root I/O Virtualization (SR-IOV), to reduce virtualization overhead and CPU involvement. The maximum bandwidth depends on the instance family, size, and networking configuration; do not assume every ENA-capable instance provides the same throughput.

ENA provides the instance’s normal VPC networking. Always check the selected instance type’s networking performance and supported features in the EC2 documentation.

Elastic Fabric Adapter (EFA)

EFA is a specialized network interface for tightly coupled workloads that require very low latency and high throughput between EC2 instances. It is intended for supported instance types and supported operating systems and frameworks.

Common use cases include:

  • High-performance computing (HPC).
  • Message Passing Interface (MPI) applications.
  • Distributed machine learning training.
  • Scientific and engineering simulations.
  • Other tightly coupled compute clusters.

EFA supports an OS-bypass capability that allows supported applications to communicate with less dependence on the traditional operating-system networking stack. This can significantly reduce communication latency for compatible HPC and ML frameworks.

An EFA is not a general-purpose internet interface. It is used for specialized traffic between instances, typically within the same VPC and subnet and commonly within a cluster placement group. The instance still needs a standard ENI or ENA for normal VPC, management, and external connectivity.

Multiple Interfaces and Availability Zones

An EC2 instance can have multiple network interfaces, but each interface must be in the same Availability Zone as the instance. The interfaces may be in different subnets within that Availability Zone.

This enables designs in which one instance has connectivity to multiple subnet-level network segments. It does not allow an instance to span Availability Zones through ENIs.

Placement Groups

Cluster placement groups can place supported instances close together within an Availability Zone. This can help reduce inter-instance network latency and improve network throughput for distributed workloads.

Placement groups are particularly relevant to HPC, MPI, and EFA-based architectures. They do not replace the need to select compatible instance types, configure security groups correctly, or confirm application support for EFA.

MTU and Jumbo Frames

Standard Ethernet-sized packets commonly use an MTU of 1,500 bytes. Jumbo frames can support an MTU of up to 9,001 bytes in applicable EC2 networking configurations.

Jumbo frames can reduce packet-processing overhead and improve efficiency for large data transfers, but they require end-to-end support. Every relevant network path and participating workload must be configured consistently. If a path does not support the larger MTU, fragmentation or connectivity problems may occur.

Do not confuse larger MTU with lower latency in every situation. Jumbo frames primarily improve efficiency for suitable high-throughput traffic.

Architecture Decision Guide

RequirementPreferred capabilityImportant considerations
Standard VPC networkingENIAvailable as the general-purpose interface model; configure private IPs, security groups, and routing normally.
Multiple private IPs or security-group separationENIUse multiple addresses or multiple interfaces according to the traffic-separation requirement.
High bandwidth and lower latency for normal application trafficENASelect a supported instance type and verify its network bandwidth.
Large data transfers, databases, or big dataENAConfirm the instance’s network performance and end-to-end path capacity.
MPI, HPC, or distributed ML trainingEFARequires supported instances and software; typically paired with an ENI or ENA for normal traffic.
Extremely low-latency inter-instance communicationEFASpecialized traffic only; it is not a replacement for normal VPC connectivity.
Interfaces in two subnet segmentsMultiple ENIsBoth subnets must be in the instance’s Availability Zone.
Improved locality for cluster communicationCluster placement groupCheck placement-group and instance compatibility, capacity, and Availability Zone constraints.

Exam-Relevant Takeaways

  • ENI is the general-purpose virtual network interface for EC2 VPC connectivity.
  • ENA is enhanced networking for supported instance types and high-bandwidth, lower-latency workloads.
  • EFA is specialized for HPC, MPI, and machine learning workloads that need very low-latency communication between instances.
  • An EFA does not replace the standard interface used for management, internet access, or ordinary VPC traffic.
  • An instance may have multiple ENIs, but an ENI cannot be attached across Availability Zones.
  • Multiple ENIs can be placed in different subnets only when those subnets belong to the same Availability Zone as the instance.
  • EFA and ENA require compatible instance types; always validate support rather than assuming the feature is universal.
  • Cluster placement groups can improve network locality and are commonly associated with HPC and EFA designs.
  • Jumbo frames can use an MTU up to 9,001 bytes in supported paths, but all relevant network devices and endpoints must support the chosen MTU.
  • Network performance is constrained by the instance type, not merely by the fact that an interface is called ENA or EFA.

Common Exam Traps

  • Choosing EFA for internet access: EFA is for specialized inter-instance communication, not general external connectivity.
  • Assuming every EC2 instance supports EFA: EFA is limited to supported instance families, operating systems, and use cases.
  • Treating ENA and EFA as interchangeable: ENA accelerates ordinary networking; EFA adds specialized capabilities for compatible HPC and ML applications.
  • Attaching an ENI from another Availability Zone: ENIs are tied to their subnet and Availability Zone.
  • Assuming multiple ENIs automatically provide high availability: Multiple interfaces on one instance do not protect against instance or Availability Zone failure.
  • Forgetting the normal interface in an EFA design: EFA-based instances generally require a conventional ENI or ENA for control-plane, management, and standard VPC traffic.
  • Selecting the interface without checking the instance type: Supported bandwidth, interface count, EFA availability, and networking features vary by instance type.
  • Enabling jumbo frames on only one endpoint: MTU mismatches can cause failed connections or inefficient packet handling.

Real-World Engineer Notes

  • Use separate ENIs only when they provide a clear security, routing, appliance, or operational benefit. Multiple interfaces can make route selection and troubleshooting more complex.
  • Security groups are associated with network interfaces. Model policy per interface carefully, especially on multihomed appliances.
  • Keep management traffic on the normal VPC interface when using EFA. This separates administrative access from the specialized data path.
  • Validate EFA support across the complete stack: EC2 instance type, operating system, drivers, AWS libraries, MPI implementation, and machine learning framework.
  • Measure application-level performance. A high theoretical network bandwidth does not guarantee equivalent throughput if the application, instance CPU, storage, or distributed algorithm is the bottleneck.
  • Test MTU changes across the complete route, including any overlays, VPNs, appliances, and on-premises links. Jumbo frames are most useful when the communication path is controlled and consistent.
  • A placement group can improve locality but does not provide cross-AZ resilience. For resilient architectures, distribute independent application groups across Availability Zones and use a separate strategy for high-performance cluster placement where appropriate.

Quick Reference Summary

  • ENI: General-purpose VPC networking, private IP addresses, security groups, and multihoming.
  • ENA: Enhanced networking for high throughput and lower latency on supported EC2 types.
  • EFA: Specialized low-latency inter-instance networking for HPC, MPI, and distributed ML.
  • AZ rule: An ENI and its instance must be in the same Availability Zone.
  • EFA rule: Use a normal ENI or ENA for ordinary VPC and external traffic.
  • Performance rule: Verify instance-specific bandwidth, interface limits, and feature support.
  • MTU rule: Jumbo frames require end-to-end support and consistent configuration.
  • Placement rule: Cluster placement groups can improve locality for tightly coupled workloads.

Flashcards

  1. Q: What is the primary purpose of an ENI?

A: General-purpose network connectivity for an EC2 instance in a VPC.

  1. Q: What capability does ENA provide?

A: Enhanced networking with higher bandwidth, faster packet processing, and lower latency on supported instances.

  1. Q: What workloads are most associated with EFA?

A: HPC, MPI, distributed machine learning, and other tightly coupled compute workloads.

  1. Q: Can an ENI from one Availability Zone attach to an instance in another Availability Zone?

A: No. The ENI and instance must be in the same Availability Zone.

  1. Q: Can multiple ENIs on one instance be in different subnets?

A: Yes, provided all subnets are in the same Availability Zone as the instance.

  1. Q: Is EFA a replacement for an instance’s normal VPC interface?

A: No. A normal ENI or ENA is used for management and ordinary VPC or external traffic.

  1. Q: What does SR-IOV help reduce?

A: Virtualization and software-processing overhead, improving networking performance and reducing CPU involvement.

  1. Q: What is the maximum MTU commonly associated with supported EC2 jumbo-frame configurations?

A: Up to 9,001 bytes.

  1. Q: Why use a cluster placement group with an HPC workload?

A: To improve instance locality and potentially reduce latency between cluster members.

  1. Q: Does using an ENA guarantee a particular bandwidth?

A: No. Bandwidth depends on the specific EC2 instance type and configuration.

Practice Questions

Question 1

A company runs a distributed MPI simulation on supported compute-optimized EC2 instances. The application exchanges messages continuously between instances and requires the lowest possible latency. The instances also need SSH administration and access to AWS services. Which design is most appropriate?

A. Use only standard ENIs and a public IPv4 address on every instance.
B. Use EFA for application traffic and a normal ENI or ENA for management and standard VPC traffic.
C. Use an internet gateway as the low-latency cluster communication path.
D. Use separate Availability Zones for every MPI process.

Correct answer: B

EFA is designed for supported HPC and MPI workloads. A conventional ENI or ENA remains necessary for management and ordinary VPC connectivity. Internet paths and cross-AZ placement are not substitutes for the specialized EFA data path.

Question 2

A high-throughput analytics application runs on an EC2 instance and transfers large volumes of data between instances. It does not use MPI or a machine learning framework requiring OS bypass. Which option best fits the requirement?

A. EFA on any available EC2 instance type.
B. ENA on an instance type that supports the required enhanced networking performance.
C. Multiple public IP addresses on one ENI.
D. An internet gateway attached directly to the instance.

Correct answer: B

ENA is intended for high-bandwidth, lower-latency general application traffic. EFA is specialized for compatible HPC and ML communication, while public IP addresses and internet gateways do not provide the required private application-networking capability.

Question 3

An EC2-based network appliance must connect to two subnet segments for traffic inspection. The segments are in the same Availability Zone. What should the architect verify before implementing the design?

A. That the ENIs are created in different Availability Zones for redundancy.
B. That the instance supports multiple ENIs and that both interfaces are in subnets in the instance’s Availability Zone.
C. That EFA is attached because every multihomed instance requires it.
D. That both interfaces use the same security group.

Correct answer: B

Multiple ENIs can support multihoming across different subnets in the same Availability Zone. The instance type’s interface limits and the security-group design must also be validated. EFA is unrelated to ordinary multihoming, and using different security groups may be appropriate.

Question 4

An HPC team enables an MTU of 9,001 bytes on its EC2 instances, but connections through an intermediate appliance fail intermittently. What is the most likely issue?

A. ENA cannot support any MTU greater than 1,500 bytes.
B. EFA automatically encrypts jumbo frames and causes the failure.
C. The complete network path does not consistently support or pass the configured jumbo-frame MTU.
D. Placement groups require an MTU of exactly 1,500 bytes.

Correct answer: C

Jumbo frames require end-to-end support. An intermediate appliance, overlay, VPN, or other network segment that cannot handle the larger MTU can cause fragmentation, dropped packets, or failed connections.

Question 5

A team proposes attaching an ENI created in a subnet in Availability Zone A to an EC2 instance in Availability Zone B to provide cross-AZ connectivity. How should the architect respond?

A. Approve it because ENIs are independent of subnets after creation.
B. Approve it only if the interface uses an EFA.
C. Reject it because an ENI is tied to its subnet and Availability Zone; use normal cross-AZ networking instead.
D. Reject all cross-AZ communication because VPCs cannot route between Availability Zones.

Correct answer: C

An ENI cannot be attached across Availability Zones. Cross-AZ communication is designed using the VPC network and appropriate routing, security groups, and AWS services—not by moving an ENI between Availability Zones.