DVA-C02 · Question #220
DVA-C02 Question #220: Real Exam Question with Answer & Explanation
The correct answer is C: Add a trigger to the Lambda function. Select the S3 bucket as the source.. Adding a trigger to your Lambda function is the solution that will meet these requirements. A trigger is an event that can invoke a Lambda function. In the case of this issue, the trigger must be an Amazon S3 event that fires when a new file is uploaded to the bucket.
Question
A developer is working on an application that processes operating data from IoT devices. Each IoT device uploads a data file once every hour to an Amazon S3 bucket. The developer wants to immediately process each data file when the data file is uploaded to Amazon S3. The developer will use an AWS Lambda function to process the data files from Amazon S3. The Lambda function is configured with the S3 bucket information where the files are uploaded. The developer wants to configure the Lambda function to immediately invoke after each data file is uploaded. Which solution will meet these requirements?
Options
- AAdd an asynchronous invocation to the Lambda function. Select the S3 bucket as the source.
- BAdd an Amazon EventBridge event to the Lambda function. Select the S3 bucket as the source.
- CAdd a trigger to the Lambda function. Select the S3 bucket as the source.
- DAdd a layer to the Lambda function. Select the S3 bucket as the source.
Explanation
Adding a trigger to your Lambda function is the solution that will meet these requirements. A trigger is an event that can invoke a Lambda function. In the case of this issue, the trigger must be an Amazon S3 event that fires when a new file is uploaded to the bucket.
Community Discussion
No community discussion yet for this question.