Question

Difficulty: MediumHigh-Performing and Elastic Compute Solutions

A mobile gaming studio is deploying a real-time multiplayer backend on Amazon EC2 instances. The game servers require the lowest possible node-to-node network latency to synchronize player state across the fleet. The game traffic runs on port 7777, but the server's health monitoring endpoint is exposed on a management port at 8080. After launching the instances and registering them with an Application Load Balancer (ALB) target group, the solutions architect notices that the instances are failing health checks and experiencing high inter-node network latency. Which configuration will resolve these issues?

  1. A
    Deploy the EC2 instances in a partition placement group, and configure the target group health check to query port 8080.
  2. B
    Deploy the EC2 instances in a cluster placement group, and configure the target group health check to query the default traffic port.
  3. Deploy the EC2 instances in a cluster placement group, and configure the target group health check to query port 8080.Answer
  4. D
    Deploy the EC2 instances in a spread placement group, and configure the target group health check to query the default traffic port.

Answer

Deploying the EC2 instances in a cluster placement group ensures the lowest inter-node network latency, while configuring the target group health check to query port 8080 ensures the load balancer accurately monitors the health of the servers on the correct management port.
To achieve the lowest possible node-to-node network latency, EC2 instances should be deployed in a cluster placement group, which packs instances close together within a single Availability Zone. Additionally, because the health endpoint is on a custom management port (8080) rather than the game traffic port (7777), the ALB target group's health check must be explicitly configured to query port 8080. This resolves the health check failures while maintaining high-performance networking.

Step-by-Step Solution

1
Identify latency optimization mechanism
Cluster placement groups must be used to pack EC2 instances close together within a single Availability Zone for low-latency node-to-node communication.
Other placement groups like partition or spread are designed for high availability and fault isolation, which can increase network latency.
2
Locate health check port mismatch
The target group's health check must be explicitly pointed to port 8080.
By default, target groups run health checks on the traffic port (7777 in this case). Since the health endpoint is only available on port 8080, health checks will fail unless custom port configuration is applied.

Key Concept

Optimizing EC2 network performance with placement groups and configuring target group health checks for custom ports.
Rate this question