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 43 discussion

A developer is designing an AWS Lambda function that creates temporary files that are less than 10 MB during invocation. The temporary files will be accessed and modified multiple times during invocation. The developer has no need to save or retrieve these files in the future.
Where should the temporary files be stored?

  • A. the /tmp directory
  • B. Amazon Elastic File System (Amazon EFS)
  • C. Amazon Elastic Block Store (Amazon EBS)
  • D. Amazon S3
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Untamables
Highly Voted 1 year, 7 months ago
Selected Answer: A
A A Lambda function has access to local storage in the /tmp directory. Each execution environment provides between 512 MB and 10,240 MB, in 1-MB increments, of disk space in the /tmp directory. https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html
upvoted 18 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: A
A) Correct - AWS Lambda provides a /tmp directory with storage between 51B to 10,240 MB. https://docs.aws.amazon.com/lambda/latest/dg/configuration-ephemeral-storage.html. The files in this directory are ephemeral and will be deleted after the function execution ends. B) Eliminated - Temporary files are not required to persist beyond the invocation, and using EFS would increase complexity and cost. C) Eliminated - Lambda does not directly support EBS volumes D) Eliminated- While S3 can store temporary data, it is not optimized for high-speed read/write operations during a Lambda invocation. Additionally, the use case specifies that the files do not need to be saved or retrieved later, making S3 an unnecessary overhead.
upvoted 2 times
...
65703c1
5 months ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
Mtho96
1 year, 3 months ago
The correct answer is A The /tmp directory is the recommended location for storing temporary files within an AWS Lambda function. The /tmp directory provides a writable space with a local storage capacity of 512 MB. It is specifically designed for temporary storage within the Lambda execution environment.
upvoted 4 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