nerdexam
Amazon

SAP-C02 · Question #623

A company is deploying a distributed in-memory database on a fleet of Amazon EC2 instances. The fleet consists of a primary node and eight worker nodes. The primary node is responsible for…

The correct answer is C. Launch memory optimized EC2 instances in a cluster placement group. For a distributed in-memory database requiring the lowest possible networking latency between EC2 instances, launch memory-optimized instances within a cluster placement group.

Submitted by khalil_dz· Mar 6, 2026Design for New Solutions

Question

A company is deploying a distributed in-memory database on a fleet of Amazon EC2 instances. The fleet consists of a primary node and eight worker nodes. The primary node is responsible for monitoring cluster health, accepting user requests, distributing user requests to worker nodes, and sending an aggregate response back to a client. Worker nodes communicate with each other to replicate data partitions. The company requires the lowest possible networking latency to achieve maximum performance. Which solution will meet these requirements?

Options

  • ALaunch memory optimized EC2 instances in a partition placement group.
  • BLaunch compute optimized EC2 instances in a partition placement group.
  • CLaunch memory optimized EC2 instances in a cluster placement group.
  • DLaunch compute optimized EC2 instances in a spread placement group.

How the community answered

(62 responses)
  • A
    5% (3)
  • B
    16% (10)
  • C
    71% (44)
  • D
    8% (5)

Why each option

For a distributed in-memory database requiring the lowest possible networking latency between EC2 instances, launch memory-optimized instances within a cluster placement group.

ALaunch memory optimized EC2 instances in a partition placement group.

A partition placement group spreads instances across different logical partitions to reduce correlated failures, which does not prioritize the lowest possible networking latency between all nodes as effectively as a cluster placement group.

BLaunch compute optimized EC2 instances in a partition placement group.

Compute-optimized EC2 instances are not the most suitable choice for an in-memory database, which primarily requires high memory capacity. A partition placement group also doesn't prioritize lowest latency.

CLaunch memory optimized EC2 instances in a cluster placement group.Correct

A cluster placement group packs instances closely together within a single Availability Zone, optimizing for low network latency and high network throughput between them. This configuration, combined with memory-optimized EC2 instances (e.g., R-series) suitable for in-memory databases, provides the best performance for inter-node communication critical for distributed in-memory databases and data replication.

DLaunch compute optimized EC2 instances in a spread placement group.

A spread placement group places instances on distinct underlying hardware to minimize correlated failures, rather than optimizing for low network latency between instances, and compute-optimized instances are unsuitable for an in-memory database.

Concept tested: EC2 Placement Groups for low-latency networking

Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html#placement-groups-cluster

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice