AWS Certified Data Engineer Associate DEA-C01 Practice Question
A company stores its sales data in Amazon Redshift. The data engineering team needs to automate a nightly ETL job that 1) creates temporary staging tables, 2) loops through a list of regions to load data, and 3) writes status rows to an audit table, all inside the cluster with full transaction control. Which Redshift feature should the team use to implement this logic?
Schedule a parameterized SQL statement with Amazon EventBridge to run every night
Implement the logic in a Python user-defined function (UDF) and call it from a SELECT statement
Invoke the Amazon Redshift Data API from an AWS Lambda function for each region
Create a PL/pgSQL stored procedure in Amazon Redshift and schedule it with a SQL runner
Stored procedures in Amazon Redshift are written in PL/pgSQL, run inside the cluster, and support control-of-flow statements such as IF, WHILE, and FOR loops as well as EXCEPTION handling and explicit transaction blocks. This allows complex, stateful ETL tasks-including creating objects, iterating over a list, and logging results-to be executed where the data lives. Python UDFs are limited to row-level calculations and cannot manage DDL, loops over result sets, or multi-statement transactions. The Redshift Data API and EventBridge can schedule or invoke queries, but the procedural logic would still need to be embedded in individual SQL statements or external code, increasing network traffic and losing in-cluster transaction control.
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 PL/pgSQL in Amazon Redshift?
Open an interactive chat with Bash
How do Redshift stored procedures differ from Python UDFs?
Open an interactive chat with Bash
Why is in-cluster transaction control important for ETL jobs in Redshift?
Open an interactive chat with Bash
What is PL/pgSQL in Redshift?
Open an interactive chat with Bash
Why are Python UDFs unsuitable for ETL workflows in Redshift?
Open an interactive chat with Bash
How does the Redshift Data API differ from stored procedures for automation?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Operations and Support
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 .