AWS Certified Data Engineer Associate DEA-C01 Practice Question

An Amazon Athena table named clickstream contains columns session_id string, page string, event_time timestamp, and load_time_ms int. A data engineer must return the five pages with the highest average load_time_ms recorded in the last 7 days, but only for pages that have at least 100 distinct sessions. Which SQL query satisfies the requirement?

  • SELECT page,
           AVG(load_time_ms) AS avg_load
    FROM clickstream
    GROUP BY page
    HAVING COUNT(DISTINCT session_id) >= 100
       AND event_time >= current_timestamp - INTERVAL '7' day
    ORDER BY avg_load DESC
    LIMIT 5;
    
  • SELECT page,
           AVG(load_time_ms) AS avg_load
    FROM clickstream
    WHERE event_time >= current_timestamp - INTERVAL '7' day
    GROUP BY page
    HAVING COUNT(DISTINCT session_id) >= 100
    ORDER BY COUNT(DISTINCT session_id) DESC
    LIMIT 5;
    
  • SELECT page,
           AVG(load_time_ms) AS avg_load
    FROM clickstream
    WHERE event_time >= current_timestamp - INTERVAL '7' day
      AND COUNT(DISTINCT session_id) >= 100
    GROUP BY page
    ORDER BY avg_load DESC
    LIMIT 5;
    
  • SELECT page,
           AVG(load_time_ms) AS avg_load
    FROM clickstream
    WHERE event_time >= current_timestamp - INTERVAL '7' day
    GROUP BY page
    HAVING COUNT(DISTINCT session_id) >= 100
    ORDER BY avg_load DESC
    LIMIT 5;
    
AWS Certified Data Engineer Associate DEA-C01
Data Operations and Support
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