Question

Difficulty: MediumAWS Compute Services

A retail company is expanding its AWS footprint and needs to deploy two new systems:

1. A microservice that processes payment notifications as they arrive, executing code that typically completes within a few seconds.
2. A containerized order processing application that runs continuously on a managed container orchestration platform without the need to provision or manage underlying virtual servers.

Which two AWS compute services should the company select to run these workloads?

  1. AWS LambdaAnswer
  2. AWS FargateAnswer
  3. C
    Amazon EC2
  4. D
    Amazon Lightsail
  5. E
    AWS Elastic Beanstalk

Answer

AWS Lambda and AWS Fargate are the correct compute services to meet the requirements.
AWS Lambda satisfies the first workload because it is a serverless, event-driven compute service that runs code only when triggered by payment events. AWS Fargate satisfies the second workload because it provides a serverless compute engine for containers, executing them without the operational overhead of provisioning or managing virtual servers.

Step-by-Step Solution

1
Analyze the first requirement: a microservice that processes payment notifications and completes execution in seconds.
Identify AWS Lambda as the best fit, as it is a serverless service designed for running short-lived, event-driven code without provisioning servers.
AWS Lambda runs code in response to events and charges only for compute time consumed, making it ideal for event-driven payment notifications.
2
Analyze the second requirement: a containerized application running continuously without provisioning or managing virtual servers.
Identify AWS Fargate as the best fit, as it is a serverless compute engine for containers that removes the need to manage EC2 instances.
AWS Fargate manages the underlying server infrastructure automatically, allowing containers to run in a serverless environment.

Key Concept

Selecting appropriate AWS compute services based on operational overhead, execution duration, and containerization requirements.
Rate this question