Flashcardsfor IT Certifications

D3: SQL Analysis in Redshift & Athena

AWS Associate Data Engineer – Associate exam practice questions · 10 flashcards

Question
Window function example?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 SQL Analysis in Redshift & Athena practice questions and answers
  1. Window function example?
    SUM(sales) OVER (PARTITION BY region ORDER BY month) for running totals.
  2. ROW_NUMBER vs RANK?
    ROW_NUMBER gives unique sequential numbers; RANK gives ties the same rank with gaps.
  3. CTE?
    Common table expression (WITH clause) to structure complex queries.
  4. Deduplication with SQL?
    Use ROW_NUMBER() OVER (PARTITION BY key ORDER BY updated DESC) and keep row 1.
  5. Approximate functions?
    APPROX_COUNT_DISTINCT / approx_distinct for fast estimates on big data.
  6. PIVOT in Redshift?
    PIVOT/UNPIVOT operators rotate rows to columns and back.
  7. Redshift Query Editor v2?
    Web SQL editor with notebooks, charts, scheduling and generative SQL.
  8. Athena EXPLAIN?
    Shows query plan to optimize joins and filters.
  9. Join optimization in Athena?
    Put the larger table on the left and smaller on the right; filter early.
  10. GROUP BY with ROLLUP/CUBE?
    Produce subtotals and grand totals across dimensions.