SAP-C02 · Question #824
A company needs to optimize the infrastructure for an application that uploads data to Amazon S3. The uploads average 64 KB in size. When the data is uploaded, Amazon S3 sends an event to Amazon…
The correct answer is A. Replace the ECS task with an AWS Lambda function for processing. Create S3 lifecycle rules to. Replacing the ECS task with AWS Lambda is a cost-effective solution as Lambda pricing is based on the number of requests and execution time, and it eliminates the need for provisioning and managing ECS infrastructure. S3 lifecycle rules can efficiently manage data by…
Question
A company needs to optimize the infrastructure for an application that uploads data to Amazon S3. The uploads average 64 KB in size. When the data is uploaded, Amazon S3 sends an event to Amazon EventBridge. EventBridge then invokes an Amazon ECS application task. The ECS task processes the data and stores the results in an Amazon DynamoDB table. Processing takes an average of 15 minutes. The company must keep the S3 data for 5 years and must keep the DynamoDB data for 15 days. The application is gaining more users and is handling millions of S3 uploads every hour. Which set of changes will provide the MOST cost-effective solution for the application?
Options
- AReplace the ECS task with an AWS Lambda function for processing. Create S3 lifecycle rules to
- BReplace the S3 bucket with Amazon Managed Streaming for Apache Kafka (Amazon MSK) to
- CCreate an Amazon Data Firehose stream to receive the data. Configure buffering to deliver
- DPurchase a Compute Savings Plan based on usage recommendations. Create S3 Lifecycle rules
How the community answered
(34 responses)- A62% (21)
- B6% (2)
- C12% (4)
- D21% (7)
Explanation
Replacing the ECS task with AWS Lambda is a cost-effective solution as Lambda pricing is based on the number of requests and execution time, and it eliminates the need for provisioning and managing ECS infrastructure. S3 lifecycle rules can efficiently manage data by transitioning objects to S3 Intelligent-Tiering after 1 day, which optimizes storage costs. The rule to expire objects after 5 years ensures data retention compliance. Configuring DynamoDB Standard- Infrequent Access (SIA) is a cost-effective way to store data that does not need to be frequently accessed, and it is well-suited for the DynamoDB table, where data is stored for 15 days.
Community Discussion
No community discussion yet for this question.