ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 173 - DVA-C02 discussion

Report
Export

A developer is creating an AWS Lambda function in VPC mode An Amazon S3 event will invoke the Lambda function when an object is uploaded into an S3 bucket The Lambda function will process the object and produce some analytic results that will be recorded into a file Each processed object will also generate a log entry that will be recorded into a file.

Other Lambda functions. AWS services, and on-premises resources must have access to the result files and log file. Each log entry must also be appended to the same shared log file. The developer needs a solution that can share files and append results into an existing file.

Which solution should the developer use to meet these requirements?

A.
Create an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system in Lambda. Store the result files and log file in the mount point. Append the log entries to the log file.
Answers
A.
Create an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system in Lambda. Store the result files and log file in the mount point. Append the log entries to the log file.
B.
Create an Amazon Elastic Block Store (Amazon EBS) Multi-Attach enabled volume Attach the EBS volume to all Lambda functions. Update the Lambda function code to download the log file, append the log entries, and upload the modified log file to Amazon EBS
Answers
B.
Create an Amazon Elastic Block Store (Amazon EBS) Multi-Attach enabled volume Attach the EBS volume to all Lambda functions. Update the Lambda function code to download the log file, append the log entries, and upload the modified log file to Amazon EBS
C.
Create a reference to the /tmp local directory. Store the result files and log file by using the directory reference. Append the log entry to the log file.
Answers
C.
Create a reference to the /tmp local directory. Store the result files and log file by using the directory reference. Append the log entry to the log file.
D.
Create a reference to the /opt storage directory Store the result files and log file by using the directory reference Append the log entry to the log file
Answers
D.
Create a reference to the /opt storage directory Store the result files and log file by using the directory reference Append the log entry to the log file
Suggested answer: A

Explanation:

Amazon EFS:A network file system (NFS) providing shared, scalable storage across multiple Lambda functions and other AWS resources.

Lambda Mounting:EFS file systems can be mounted within Lambda functions to access a shared storage space.

Log Appending:EFS supports appending data to existing files, making it ideal for the log file scenario.

Amazon EFS Documentation:https://docs.aws.amazon.com/efs/

Using Amazon EFS with AWS Lambda:https://docs.aws.amazon.com/lambda/latest/dg/services-efs.html

asked 16/09/2024
Marc-Antoine Meyssat
26 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first