AWS Certified Solutions Architect – Professional — Question 762
A company is processing financial records in the AWS Cloud. Throughout the day, records are uploaded to an Amazon S3 bucket for processing. Every night at midnight, an application processes the records. The application runs on a set of Amazon EC2 instances and is invoked by a cron job on each instance. The application processes all the records in a total of approximately 60 minutes and stores the result in a second S3 bucket.
A solutions architect needs to modernize the application by implementing a solution that processes the records with the least possible operational overhead.
Which solution will meet these requirements?
Answer options
- A. Use an AWS Lambda function to process a single record. Create an AWS Step Functions state machine to invoke the Lambda function for each record. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to schedule the state machine to run at midnight.
- B. Containerize the processing logic. Create an Amazon Elastic Kubernetes Service (Amazon EKS) cluster that runs in AWS Fargate mode. Configure an Amazon EventBridge (Amazon CloudWatch Events) rule to schedule invocation of the Fargate tasks at midnight.
- C. Use a single AWS Lambda function to process all the records. Use S3 Event Notifications to invoke the Lambda function at midnight.
- D. Containerize the processing logic. Create an Amazon Elastic Container Service (Amazon ECS) cluster that runs in AWS Fargate mode. Configure Amazon Simple Notification Service (Amazon SNS) to schedule invocation of the Fargate tasks at midnight.
Correct answer: B
Explanation
Option B is correct because containerizing the workload and running it on AWS Fargate removes the operational overhead of managing underlying EC2 servers, while Amazon EventBridge provides the necessary scheduling capabilities to trigger the tasks at midnight. AWS Lambda (Options A and C) is not ideal because it has a 15-minute execution limit, which is insufficient for a job that takes 60 minutes to process. Option D is incorrect because Amazon SNS does not have scheduling capabilities to trigger tasks on a cron schedule.