DVA-C02 · Question #761
A company is evaluating whether it can successfully migrate a small HTTP-based service to a serverless architecture to reduce costs. The service runs on an Amazon EC2 instance. The service is…
The correct answer is C. Create a new Lambda function. Copy the HTTP-based service to the Lambda function. Use the. AWS Lambda supports Java runtimes, scales automatically for unpredictable HTTP traffic, and allows execution times of up to 15 minutes, which satisfies the 1-minute processing requirement for complex data transformations. A Lambda function can securely access Amazon RDS and can…
Question
A company is evaluating whether it can successfully migrate a small HTTP-based service to a serverless architecture to reduce costs. The service runs on an Amazon EC2 instance. The service is written in Java and processes complex data transformations for an ecommerce application. The service runs at unpredictable times to handle incoming requests. The service requires up to 1 minute to process small and large datasets from Amazon RDS. A developer must determine whether the company can run the service as an AWS Lambda function. Which solution will meet these requirements?
Options
- ABuild a Docker container that contains the service code. Use Lambda to host the container on the
- BCreate an Amazon Cloud Front distribution. Use a Lambda@Edge function with the distribution.
- CCreate a new Lambda function. Copy the HTTP-based service to the Lambda function. Use the
- DCreate an Amazon CloudFront distribution. Migrate the existing service code to a CloudFront
How the community answered
(24 responses)- A8% (2)
- B4% (1)
- C71% (17)
- D17% (4)
Explanation
AWS Lambda supports Java runtimes, scales automatically for unpredictable HTTP traffic, and allows execution times of up to 15 minutes, which satisfies the 1-minute processing requirement for complex data transformations. A Lambda function can securely access Amazon RDS and can be directly exposed over HTTP using a Lambda function URL, making it suitable as a cost- effective serverless replacement for an EC2-based service.
Community Discussion
No community discussion yet for this question.