B. Configure Elastic Fabric Adapter (EFA) in the instance.
With Elastic Fabric Adapter (EFA), users can get better performance if compared with enhanced networking (Elastic Network Adapter) or Elastic Network Interface. Check the differences between EFAs and ENAs in https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html.
Option A is incorrect: Because with Elastic Fabric Adapter (EFA), users can achieve a better network performance than enhanced networking.
Option B is CORRECT: Because EFA is the most suitable method for accelerating High-Performance Computing (HPC) and machine learning application.
Option C is incorrect: Because Elastic Network Interface (ENI) cannot improve the performance as required.
Option D is incorrect: The Elastic File System (EFS) cannot accelerate inter-instance communication.