Cost-Optimized Architecture Design

A Lambda function has Arm-compatible dependencies, and representative tests produce the fixed execution durations below; each invocation must finish within 250 ms. Assuming Arm compute costs 80% of x86 compute per GB-second and request charges are identical, which configuration minimizes cost while meeting the requirement?

Show the answer

Correct answerC. Arm: 1,024 MB, 180 ms

AWhy not this: Its relative compute cost is 2 × 0.110 × 0.8 = 0.176; faster execution does not offset the extra memory.

BWhy not this: Its relative compute cost is 0.5 × 0.350 = 0.175, and its duration exceeds the deadline.

CWhy this is right: Its relative compute cost is 1 × 0.180 × 0.8 = 0.144, the lowest, and its duration meets the deadline.

DWhy not this: Its relative compute cost is 1 × 0.200 = 0.200, exceeding the cost of the qualifying Arm configurations.

Relative compute costs are 0.144 for 1 GB Arm, 0.175 for 0.5 GB x86, 0.176 for 2 GB Arm, and 0.200 for 1 GB x86. The 1 GB Arm configuration is cheapest and meets the deadline; the faster 2 GB Arm configuration costs more because its memory increase outweighs its duration reduction.