Design Resilient Architectures

An application runs a memory-intensive calculation that cannot be divided among instances. Its EC2 instance has insufficient memory, but larger instance types are available. Which change will allow the calculation to complete?

Show the answer

Correct answerD. Move the instance to a larger memory configuration.

AWhy not this: A queue buffers work but does not increase the memory available to process each calculation.

BWhy not this: Increasing desired capacity adds instances without increasing memory on an individual instance.

CWhy not this: A load balancer distributes requests but cannot combine instance memory for one calculation.

DWhy this is right: A larger memory configuration provides more memory to the single calculation.

Vertical scaling increases the resources available to a single instance, allowing the calculation to fit in memory. Adding instances provides aggregate capacity but does not increase memory available to an indivisible calculation.