DVA-C02 · Question #556
A cloud-based video surveillance company is developing an application that analyzes video files. After the application analyzes the files, the company can discard the files. The company stores the fil
The correct answer is C. Increase the ephemeral storage size to 2 GB. Copy the files from the S3 bucket to the /tmp. AWS Lambda functions have ephemeral storage available at the /tmp directory, and you can increase its size up to 10 GB. By copying the video files from S3 to the /tmp directory, the function can perform multiple I/O operations on the file locally, which is highly optimized for pe
Question
A cloud-based video surveillance company is developing an application that analyzes video files. After the application analyzes the files, the company can discard the files. The company stores the files in an Amazon S3 bucket. The files are 1 GB in size on average. No file is larger than 2 GB. An AWS Lambda function will run one time for each video file that is processed. The processing is very I/O intensive, and the application must read each file multiple times. Which solution will meet these requirements in the MOST performance-optimized way?
Options
- AAttach an Amazon Elastic Block Store (Amazon EBS) volume that is larger than 1 GB to the
- BAttach an Elastic Network Adapter (ENA) to the Lambda function. Use the ENA to read the video
- CIncrease the ephemeral storage size to 2 GB. Copy the files from the S3 bucket to the /tmp
- DConfigure the Lambda function code to read the video files directly from the S3 bucket.
How the community answered
(34 responses)- A3% (1)
- B9% (3)
- C85% (29)
- D3% (1)
Explanation
AWS Lambda functions have ephemeral storage available at the /tmp directory, and you can increase its size up to 10 GB. By copying the video files from S3 to the /tmp directory, the function can perform multiple I/O operations on the file locally, which is highly optimized for performance compared to reading directly from S3 multiple times. Increasing the storage to 2 GB would allow the Lambda function to efficiently handle the 1-2 GB files in memory.
Community Discussion
No community discussion yet for this question.