nerdexam
AmazonAmazon

DVA-C02 · Question #756

DVA-C02 Question #756: Real Exam Question with Answer & Explanation

The correct answer is A: Increase the ephemeral storage to 10,240 MB. The error [Error 28] No space left on device occurs because the total size of input (up to 5 GB) and output (up to 2 GB) files can exceed the 8,000 MB (≈7.8 GB) of ephemeral /tmp storage available to the Lambda function. To prevent this, increase the ephemeral storage to 10,240 M

Submitted by suresh_in· Mar 5, 2026Troubleshooting and Optimization

Question

A developer uses an AWS Lambda function to process video files. The input files are always between 4.5 GB and 5 GB in size. The output files are always between 1.5 GB and 2 GB in size. The Lambda function has 8.000 MB of ephemeral storage. Both input and output files are written to /tmp on the Lambda function. Sometimes the invocations result in an "[ERROR] OSError: [Error 28] No space left on device" error and a failed function execution. The developer must prevent the error from occurring. Which solution will meet this requirement?

Options

  • AIncrease the ephemeral storage to 10,240 MB
  • BDelete the input and output files from /tmp after processing is complete
  • CConfigure the Lambda function to use provisioned concurrency
  • DCall the Lambda function by using an asynchronous invocation

Explanation

The error [Error 28] No space left on device occurs because the total size of input (up to 5 GB) and output (up to 2 GB) files can exceed the 8,000 MB (≈7.8 GB) of ephemeral /tmp storage available to the Lambda function. To prevent this, increase the ephemeral storage to 10,240 MB (10 GB), which is the current maximum supported size, ensuring sufficient space for temporary file processing.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions