exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 211 discussion

A developer is creating an AWS Lambda function that will generate and export a file. The function requires 100 MB of temporary storage for temporary files while running. These files will not be needed after the function is complete.

How can the developer MOST efficiently handle the temporary files?

  • A. Store the files in Amazon Elastic Block Store (Amazon EBS) and delete the files at the end of the Lambda function.
  • B. Copy the files to Amazon Elastic File System (Amazon EFS) and delete the files at the end of the Lambda function.
  • C. Store the files in the /tmp directory and delete the files at the end of the Lambda function.
  • D. Copy the files to an Amazon S3 bucket with a lifecycle policy to delete the files.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tsangckl
10 months, 2 weeks ago
This appear at 17 Jun exam
upvoted 1 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 2 times
...
RPRAMSUBU
1 year, 2 months ago
C is the correct answer
upvoted 2 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: C
This is the most efficient and straightforward option. AWS Lambda provides a /tmp directory in its execution environment with a storage limit of 512 MB. This space can be used for temporary storage during the function execution. Since the requirement is 100 MB, it falls well within the limits of the /tmp directory.
upvoted 3 times
...
JohnPl
1 year, 3 months ago
Selected Answer: C
C is the correct answer
upvoted 1 times
...
sankhagg
1 year, 4 months ago
Starting March 2022, Lambda now supports increasing /tmp directory's maximum size limit up to 10,240MB. More information available. https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/
upvoted 4 times
...
Claire_KMT
1 year, 6 months ago
C. Store the files in the /tmp directory and delete the files at the end of the Lambda function. The /tmp directory is a dedicated temporary storage location provided by AWS Lambda for storing temporary files during the execution of the function. It's cost-effective and efficient because it doesn't involve additional AWS services or storage costs. AWS Lambda automatically manages the /tmp directory for you, including clearing its contents after the function execution is complete. You don't need to explicitly delete the files; Lambda takes care of it.
upvoted 3 times
...
LemonGremlin
1 year, 6 months ago
Selected Answer: C
Option C is the best choice for efficient handling of temporary files within an AWS Lambda function.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago