Valid DAA-C01 Dumps shared by EduDump.com for Helping Passing DAA-C01 Exam! EduDump.com now offer the newest DAA-C01 exam dumps, the EduDump.com DAA-C01 exam questions have been updated and answers have been corrected get the newest EduDump.com DAA-C01 dumps with Test Engine here:
You are tasked with analyzing website traffic data stored in a Snowflake table named 'page_views'. The table has columns 'user_id' (INT), 'page_url (VARCHAR), and 'view_time' (TIMESTAMP N T Z). You need to identify users who are likely bots based on an unusually high number of page views within a short period. Specifically, you want to flag users who have more than 100 page views within any 5-minute window Which of the following queries is the MOST efficient and accurate way to achieve this?
Correct Answer: C
Option C is the most accurate and efficient. It correctly calculates the number of views within a 5-minute window for each user using the 'DATE DIFF function and a window function. It then filters to only include users who exceed 100 views in any of those windows, and ensures each user is only counted once with the DISTINCT keyword. Option A is incorrect because it only looks at total page views across the entire dataset. Option B is syntactically incorrect and doesn't implement the time window. Option D is truncating by minute and then groups across that resulting in incorrect aggregation. The correct function is 'DATE DIFF, not 'DATE TRUNC and the logic for window is incorrect. Option E will result in errors as TUMBLE_START requires view_time to be timestamp_ltz or timestamp_tz data type.