AWS Certified Data Engineer Associate DEA-C01 Practice Question

An Amazon Redshift RA3 cluster contains a 6 TB fact table and three small dimension tables. A data engineer runs the same SQL statement every morning to join these tables and calculate yesterday's metrics, but the query currently finishes in about 20 minutes. Distribution styles must remain unchanged, and any solution should have minimal additional cost. Which SQL-level change will most likely reduce the query runtime to under two minutes?

  • Rewrite the query as a UNION ALL of separate SELECT statements filtered by each dimension value.

  • Add compound sort keys on every column referenced in the query predicates for all joined tables.

  • Run the query twice each morning so the second execution uses Amazon Redshift's result cache.

  • Create a materialized view that pre-joins the fact and dimension tables and refresh it incrementally each day.

AWS Certified Data Engineer Associate DEA-C01
Data Ingestion and Transformation
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot