You need to transform streaming data arriving in JSON with nested fields into a star schema in Redshift. Which approach best maintains referential integrity for dimension tables and prevents duplicate dimension keys?
Answer
Use a deterministic surrogate key strategy (e.g., hash of natural key) and maintain dimension tables via upsert/merge logic before loading facts
Explanation
Deterministic keys plus merge logic avoids multiple dimension rows for the same entity. Loading facts after dimension updates preserves referential integrity in the star schema.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
In AWS Glue, which configuration best supports handling schema changes over time for Parquet targets while keeping catalog metadata accurate?
View question →
A dataset is stored as partitioned Parquet in S3, with partitions like date=YYYY-MM-DD and region=... . Which change most improves query performance when analysts frequently filter by date range and region?
View question →
A company uses AWS Lake Formation governance with fine-grained permissions. Which best describes the impact of permissions on downstream query engines like Athena and Redshift Spectrum?
View question →
You have two pipelines writing to the same curated S3 prefix: one for initial loads and another for late-arriving data. To avoid query-time inconsistencies, which design is most robust?
View question →
In an AWS data lake design, which approach best supports schema evolution while keeping Athena queries performant over semi-structured JSON events?
View question →
You observe that a join between a large fact table and a smaller dimension table in Athena intermittently times out. Both tables are partitioned, but the query filters only on the fact table’s partition column. Which action most likely improves the query plan and reduces execution time?
View question →