A manufacturing company’s machine sensors upload .csv files to an Amazon S3 bucket. Each .csv must be converted into an image as soon as possible for automatic graphical reports. Images become irrelevant after 1 month, but the .csv files must be kept to train machine learning models twice a year. The ML trainings and audits are scheduled weeks in advance. Which combination of steps will meet these requirements MOST cost-effectively? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Design an AWS Lambda function that converts the .csv files into images and stores the images in the S3 bucket. Invoke the Lambda function when a .csv file is uploaded., Create S3 Lifecycle rules for .csv files and image files in the S3 bucket. Transition the .csv files from S3 Standard to S3 Glacier 1 day after they are uploaded. Expire the image files after 30 days..
Why this is the answer
The Lambda function triggered by S3 object creation is the most cost-effective and immediate solution for converting CSVs to images. Lambda is serverless, scales automatically, and you only pay for compute time used, making it ideal for event-driven, short-duration tasks. EC2 Spot Instances are not suitable for immediate processing as they are not guaranteed to be available