Amazon

DEA-C01 practice question 10

AWS Certified Data Engineer - Associate (DEA-C01) · free question 10 of 20

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?
  • A. Create an S3 event notification that has an event type of s3:ObjectCreated:*. Use a filter rule to generate notifications only when the suffix includes .csv. Set the Amazon Resource Name (ARN) of the Lambda function as the destination for the event notification. Correct
  • B. Create an S3 event notification that has an event type of s3:ObjectTagging:* for objects that have a tag set to .csv. Set the Amazon Resource Name (ARN) of the Lambda function as the destination for the event notification.
  • C. Create an S3 event notification that has an event type of s3:*. Use a filter rule to generate notifications only when the suffix includes .csv. Set the Amazon Resource Name (ARN) of the Lambda function as the destination for the event notification.
  • D. Create an S3 event notification that has an event type of s3:ObjectCreated:*. Use a filter rule to generate notifications only when the suffix includes .csv. Set an Amazon Simple Notification Service (Amazon SNS) topic as the destination for the event notification. Subscribe the Lambda function to the SNS topic.

Explanation

Option A is correct because it directly triggers the AWS Lambda function upon creation of a .csv file in the specified S3 bucket using an s3:ObjectCreated:* event type with a filter rule for .csv suffixes. This approach minimizes operational overhead by avoiding unnecessary steps or services, such as Amazon SNS, and ensures that the Lambda function is invoked only when relevant files are uploaded.

Need the theory? Learn it free in the DEA-C01 course on Godlike Academy

Practice the whole free set

Answer all 20 free DEA-C01 questions with instant feedback, or unlock all 343 questions with Learn and Exam modes.