A financial services company is deploying a distributed in-memory data grid (IMDG) on Amazon EC2 instances to cache real-time trading data. The grid nodes require sub-millisecond node-to-node network latency and high throughput for clustering and state replication. Additionally, the grid must expose an administration API port (port 8443) to a Network Load Balancer (NLB) for health monitoring and external control, while the main grid communication runs on port 5701. How should a solutions architect configure the EC2 instances and the NLB target group to meet these requirements?
- Launch the EC2 instances in a cluster placement group. Register the instances in the NLB target group on port 5701, and configure the target group health checks to explicitly use port 8443.Answer
- BLaunch the EC2 instances in a partition placement group. Register the instances in the NLB target group on port 5701, and allow the target group health checks to default to the traffic port.
- CLaunch the EC2 instances in a spread placement group. Register the instances in the NLB target group on port 5701, and configure the target group health checks to explicitly use port 8443.
- DLaunch the EC2 instances in a cluster placement group. Register the instances in the NLB target group on port 5701, and allow the target group health checks to default to the traffic port.
Answer
Launch the EC2 instances in a cluster placement group, register the instances in the NLB target group on port 5701, and configure the target group health checks to explicitly use port 8443.
A cluster placement group is designed for low-latency, high-throughput node-to-node communication within a single Availability Zone. Since the main grid traffic is on port 5701, the targets must be registered on that port. However, because the health status is monitored via an administration API on port 8443, the health check port must be explicitly overridden to port 8443, otherwise the load balancer will query the traffic port (5701) and fail to receive valid health responses.
Step-by-Step Solution
Key Concept
EC2 cluster placement groups for low-latency networking combined with custom port overrides for target group health checks.