Q36 — AWS SAA-C03 Ch.5
Question 36 of 65 | ← Chapter 5
Q336. A manufacturing company has machine sensors that upload .csv files to an Amazon S3 bucket. These .csv files must be converted into images and must be made available as soon as possible for the automatic generation of graphical reports.The images become irrelevant after 1 month, but the .csv files must be kept to train machine learning (ML) models twice a year. The ML trainings and audits are planned weeks in advance Which combination of steps will meet these requirements MOST cost-effectively? (Select TWO)
- A. Launch an Amazon EC2 Spot Instance that downloads the .csv files every hour, generates the image files and uploads the images to the S3 bucket.
- B. 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 ✓
- C. 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. ✓
- D. Create S3 Lifecycle rules for .csv files and image files in the S3 bucket. Transition the .csv files from S3 Standard to S3 One Zone-Infrequent Access (S3 One Zone-IA)1day after they are uploaded. Expire the image files after 30 days.
- E. Create S3 Lifecycle rules for .csv files and image files in the S3 bucket. Transition the .csv files from S3 Standard to S3 Standard-Infrequent Access (S3 Standard-IA) 1 day after they are uploaded. Keep the image files in Reduced Redundancy Storage(RRS).
Correct Answer: B. 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, C. 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.
Explanation
Option A involves launching an EC2 instance, which can be more expensive and requires ongoing maintenance. Moreover, this option is not very scalable and may run into issues if there are large spikes in incoming data.Option B is a good solution as it involves using AWS Lambda function that automatically triggers when a new .csv file is uploaded to the S3 bucket, converts it into an image, and stores it back in S3. This approach allows for quick processing of files, without needing to maintain any infrastructure. Option C is also a good solution because it utilizes S3 lifecycle rules to transition the .csv files to Glacier 1 day after they are uploaded and expire the image files after 30 days. This allows for cost-effective storage of the files, while still maintaining access to them as needed. Option D is similar to Option C, but it uses S3 One Zone-IA instead of Glacier for storing .csv files. However, S3 One Zone-IA has lower durability compared to other storage classes and provides availability only within a single availability zone. Therefore, this option may not be the best choice for long-term storage of important data.Option E uses S3 Standard-IA for storing .csv files and RRS for storing images. While S3 Standard-IA is cheaper than S3 Standard, it is not the best option for infrequently accessed data that needs to be stored for a longer period. Additionally, RRS has been deprecated by AWS and is no longer recommended for use.