AWS Certified Data Engineer Associate DEA-C01 Practice Question
A data engineer wrote an AWS Lambda function that is triggered when a nightly 3-GB CSV file is uploaded to an Amazon S3 bucket. The function reads the file, keeps only three columns, and then loads the filtered data into Amazon Redshift. Most invocations exceed the 512-MB memory setting and hit the 15-minute timeout. The team wants to keep the serverless architecture and fix the failures with minimal refactoring. Which solution will meet these requirements?
Modify the Lambda code to use Amazon S3 Select so that only the needed columns are streamed into the function before loading into Amazon Redshift.
Replace the Lambda trigger with an Amazon Redshift COPY command that is scheduled nightly with Amazon EventBridge.
Split the CSV into 50-MB chunks with a separate script and rely on multipart upload completion events to invoke the same Lambda function for each chunk.
Increase the function's memory to 10,240 MB and extend the timeout to 30 minutes in the Lambda console.
Amazon S3 Select lets applications retrieve only the required rows and columns from objects that are stored in S3. Calling S3 Select from inside the Lambda function streams a much smaller response, so the function uses far less memory and completes well within the 15-minute execution limit. Increasing the timeout is impossible because Lambda's maximum is 15 minutes. Simply allocating more memory may reduce execution time, but the entire 3-GB object would still need to be downloaded, so timeouts could persist and costs would rise. Breaking the file into smaller parts would require additional preprocessing outside the current workflow and S3 multipart upload completion does not create multiple objects that automatically generate individual events. Replacing the trigger with an Amazon Redshift COPY command abandons the requirement to keep the existing Lambda-based design.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon S3 Select?
Open an interactive chat with Bash
What are the memory and timeout limits of AWS Lambda?
Open an interactive chat with Bash
How does the Amazon Redshift COPY command differ from using AWS Lambda for data ingestion?
Open an interactive chat with Bash
What is Amazon S3 Select and how does it work?
Open an interactive chat with Bash
Why doesn't increasing memory or timeout solve the Lambda function issue?
Open an interactive chat with Bash
What are the limitations of multipart upload events for Lambda triggers?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Ingestion and Transformation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .