AWS Certified Data Engineer Associate DEA-C01 Practice Question
An online retailer migrates its clickstream analytics to Amazon Redshift. A 3-TB click_events fact table joins with three dimension tables, each under 20 000 rows. BI queries usually filter by event_time (timestamp) and customer_id. The team must minimize inter-node shuffling during joins and keep storage costs low. Which table configuration meets these requirements?
Define click_events with DISTSTYLE KEY on customer_id, define each dimension table with DISTSTYLE ALL, and set event_time as the SORTKEY on click_events.
Define click_events with DISTSTYLE EVEN, dimension tables with DISTSTYLE KEY on customer_id, and set customer_id as the SORTKEY for all tables.
Define all tables with DISTSTYLE EVEN and no sort keys.
Define click_events with DISTSTYLE ALL, dimension tables with DISTSTYLE EVEN, and set event_time as the SORTKEY.
Using DISTSTYLE KEY on click_events distributes rows by customer_id so joins on that column are collocated. Replicating the small dimension tables with DISTSTYLE ALL adds little storage overhead and eliminates redistribution. A sort key on event_time optimizes range-restricted scans. The other options either cause heavy redistribution, replicate a 3-TB table to every node, or place the distribution key on the wrong tables.
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 DISTSTYLE KEY in Amazon Redshift?
Open an interactive chat with Bash
Why is DISTSTYLE ALL suitable for small dimension tables?
Open an interactive chat with Bash
How does a SORTKEY improve query performance in Redshift?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Store Management
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 .