AWS Certified Data Engineer Associate DEA-C01 Practice Question
A data engineer is designing a fact table to store 8 billion clickstream records in Amazon Redshift. The table will be queried hourly for specific 24-hour windows and joined to a large sessions dimension on the session_id column. Which schema design will provide the best query performance while minimizing data transfer?
Define session_id as the DISTKEY and use a COMPOUND SORTKEY on event_time.
Use DISTSTYLE EVEN with no sort key defined.
Define event_time as the DISTKEY and use a COMPOUND SORTKEY on session_id.
Use DISTSTYLE ALL and an INTERLEAVED SORTKEY on event_time and session_id.
Defining session_id as the DISTKEY places rows that share the same session identifier on the same node, so joins to the sessions dimension on that column are mostly local and avoid the network. A COMPOUND SORTKEY on event_time keeps rows for the same time range physically adjacent, allowing Redshift to skip blocks when queries restrict on recent days. The combination directly addresses the two dominant access patterns (join on session_id, range filter on event_time) while keeping distribution overhead low. Using event_time as the DISTKEY would not help the join, EVEN distribution would still require network shuffling, and DISTSTYLE ALL would replicate billions of rows and greatly increase storage and load times. Interleaved sort keys add overhead and offer no advantage when the primary filter is on a single column.
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 a DISTKEY in Amazon Redshift?
Open an interactive chat with Bash
What is the difference between COMPOUND SORTKEY and INTERLEAVED SORTKEY?
Open an interactive chat with Bash
Why is DISTSTYLE ALL not suitable for storing billions of rows in Amazon 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 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .