nerdexam
Amazon

DEA-C01 · Question #82

A data engineer needs to create an AWS Lambda function that converts the format of data from .csv to Apache Parquet. The Lambda function must run only if a user uploads a .csv file to an Amazon S3…

The correct answer is A. Create an S3 event notification that has an event type of s3:ObjectCreated:*. Use a filter rule to. S3 event notifications with event type s3:ObjectCreated: fire whenever a new object is created (via PUT, POST, COPY, or multipart upload completion). Adding a suffix filter rule for '.csv' ensures the notification - and therefore the Lambda invocation - only fires for .csv…

Data Ingestion and Transformation

Question

A data engineer needs to create an AWS Lambda function that converts the format of data from .csv to Apache Parquet. The Lambda function must run only if a user uploads a .csv file to an Amazon S3 bucket. Which solution will meet these requirements with the LEAST operational overhead?

Options

  • ACreate an S3 event notification that has an event type of s3:ObjectCreated:*. Use a filter rule to
  • BCreate an S3 event notification that has an event type of s3:ObjectTagging:* for objects that have
  • CCreate an S3 event notification that has an event type of s3:*. Use a filter rule to generate
  • DCreate an S3 event notification that has an event type of s3:ObjectCreated:*. Use a filter rule to

How the community answered

(28 responses)
  • A
    79% (22)
  • B
    7% (2)
  • C
    4% (1)
  • D
    11% (3)

Explanation

S3 event notifications with event type s3:ObjectCreated:* fire whenever a new object is created (via PUT, POST, COPY, or multipart upload completion). Adding a suffix filter rule for '.csv' ensures the notification - and therefore the Lambda invocation - only fires for .csv files, not all uploads. This is the most direct, low-overhead approach. Option B (s3:ObjectTagging:) triggers on tagging events, not object creation, so a user uploading a .csv would not trigger it unless they also tagged the object. Option C (s3:) is far too broad and would fire on deletions, ACL changes, and other irrelevant events. Option D is a duplicate of A in the way it's described, but A is the canonical correct form.

Topics

#S3 Event Notifications#AWS Lambda#Data Transformation#Operational Efficiency

Community Discussion

No community discussion yet for this question.

Full DEA-C01 Practice