A Redshift cluster runs complex joins on a large fact table with multiple dim tables. You observe high query runtime variance and frequent disk spills. Which strategy most directly improves performance and reduces spills while staying within reasonable maintenance effort?
Answer
Use appropriate DISTKEY for high-cardinality join keys on fact vs dimensions, and choose compound sort keys aligned with common filtering predicates
Explanation
Correct distribution and sort keys align physical layout with join and filter patterns, reducing data movement and limiting spills. Disabling keys or changing data types does not address the root cause.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A dataset is stored in S3 as Parquet and queried by Athena using a Glue Data Catalog table. You need to ensure that analysts can query only the last 30 days by adding a mandatory filter, and also restrict access by department. What is the best mechanism combination?
View question →
In a data pipeline using AWS Glue and Redshift, you need to ensure exactly-once semantics for ingesting late-arriving records arriving with an event-time timestamp and possible duplicates. Which combination best addresses deduplication and ordering guarantees?
View question →
You are migrating a legacy on-prem data warehouse to AWS. The old system uses incremental loads based on a “high-water mark” timestamp column, but late updates can change records for earlier times. In AWS, which ingestion strategy best preserves correctness without requiring full reloads?
View question →
A streaming system uses Kinesis Data Streams feeding a Lambda-based ingestion that writes to an S3 “raw” prefix partitioned by hour. After changing the schema to add a new nullable column, analytics jobs fail because older partitions have no column in their catalog definition. What is the best approach to keep the data catalog and query behavior consistent?
View question →
A customer requires that personally identifiable information (PII) be masked in curated analytics but still available for a limited set of authorized users. Which AWS-native approach best supports column-level masking with role-based access and auditable governance?
View question →
A Glue ETL job reads from an S3 source with Parquet, applies transformations, and writes results to S3 as partitioned Parquet. You notice that new partitions appear, but queries using Athena sometimes return incomplete results until the next day. What is the most likely root cause and mitigation?
View question →