nerdexam
Amazon

DEA-C01 · Question #153

Files from multiple data sources arrive in an Amazon S3 bucket on a regular basis. A data engineer wants to ingest new files into Amazon Redshift in near real time when the new files arrive in the…

The correct answer is D. Use S3 Event Notifications to invoke an AWS Lambda function that loads new files into Amazon. To ingest new files from an S3 bucket into Amazon Redshift in near real time, an event-driven mechanism is required.

Data Ingestion and Transformation

Question

Files from multiple data sources arrive in an Amazon S3 bucket on a regular basis. A data engineer wants to ingest new files into Amazon Redshift in near real time when the new files arrive in the S3 bucket. Which solution will meet these requirements?

Options

  • AUse the query editor v2 to schedule a COPY command to load new files into Amazon Redshift.
  • BUse the zero-ETL integration between Amazon Aurora and Amazon Redshift to load new files into
  • CUse AWS Glue job bookmarks to extract, transform, and load (ETL) load new files into Amazon
  • DUse S3 Event Notifications to invoke an AWS Lambda function that loads new files into Amazon

How the community answered

(38 responses)
  • A
    16% (6)
  • B
    3% (1)
  • C
    5% (2)
  • D
    76% (29)

Why each option

To ingest new files from an S3 bucket into Amazon Redshift in near real time, an event-driven mechanism is required.

AUse the query editor v2 to schedule a COPY command to load new files into Amazon Redshift.

Scheduling a COPY command via the query editor v2 would involve fixed intervals or manual execution, which does not meet the 'near real-time' requirement for new file arrivals.

BUse the zero-ETL integration between Amazon Aurora and Amazon Redshift to load new files into

The zero-ETL integration between Amazon Aurora and Amazon Redshift is designed for replicating data from an Aurora database to Redshift, not for ingesting files from an S3 bucket.

CUse AWS Glue job bookmarks to extract, transform, and load (ETL) load new files into Amazon

AWS Glue job bookmarks help in processing only new or changed data during ETL jobs, but an AWS Glue job typically runs on a schedule or requires a trigger, which might introduce more latency than a direct S3 event-Lambda invocation for simple data loading.

DUse S3 Event Notifications to invoke an AWS Lambda function that loads new files into AmazonCorrect

S3 Event Notifications can be configured to automatically trigger an AWS Lambda function whenever new files are uploaded to the S3 bucket. The Lambda function can then execute an Amazon Redshift COPY command or use the Redshift Data API to load the new data into the Redshift cluster, achieving near real-time ingestion.

Concept tested: Event-driven S3 to Redshift data ingestion

Source: https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventNotifications.html

Topics

#S3 Event Notifications#AWS Lambda#Redshift Ingestion#Near Real-time Data Processing

Community Discussion

No community discussion yet for this question.

Full DEA-C01 Practice