Explain the strategies you would use to optimize query performance in a data lake.
Use the provided campaign and event tables for the SQL portion. Return only active campaigns with qualifying January 2026 event data.
campaign_id, campaign_name, surface, total_impressions, total_clicks, and click_through_ratetotal_impressions descending, then campaign_id ascendingDATE '2026-01-01' inclusive through DATE '2026-02-01' exclusive.active.0 when calculating total_clicks and click_through_rate.click_through_rate to 4 decimal places.| Column | Type | Description |
|---|---|---|
| campaign_idPK | INT | Unique campaign identifier |
| campaign_name | VARCHAR(120) | Campaign display name |
| surface | VARCHAR(40) | Movable Ink delivery surface |
| status | VARCHAR(20) | Campaign lifecycle status |
| Column | Type | Description |
|---|---|---|
| event_idPK | BIGINT | Unique event fact identifier |
| campaign_id | INT | Referenced campaign identifier |
| event_date | DATE | Date used for event partitioning |
| event_type | VARCHAR(30) | Type of recorded engagement event |
| impressions | INT | Number of delivered impressions |
| clicks | INT | Number of recorded clicks |