Courseiva
Performance Optimization →mediumMultiple Choice

DEA-C02 Performance Optimization Practice Question

A data engineer notices that a recurring daily query that joins a large fact table with a date dimension is taking longer than expected. The query filters on a date range and joins on a date key. The fact table is clustered by date_key, and the date dimension is small. The query profile shows a Cartesian join warning. Which action should the engineer take to resolve the Cartesian join and improve performance?

⚠ Common exam trap

The trap here is assuming that performance issues from a Cartesian join can be solved by adding filters or more resources, when the real fix is correcting the join condition.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Ensure the join condition uses the correct columns and is not accidentally omitted.

A Cartesian join warning in the query profile signals that the join is producing a Cartesian product, usually due to a missing or incorrect join condition. The most direct fix is to ensure the join predicate correctly matches the fact table's date_key to the date dimension's key. This eliminates the Cartesian product, reducing the result set and improving performance. Other options like filtering or scaling up do not address the root cause and may lead to incorrect results or inefficiency.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Ensure the join condition uses the correct columns and is not accidentally omitted.

    Why this is correct

    A Cartesian join warning indicates that the join is producing a Cartesian product, typically because the join condition is missing, always true, or uses incorrect columns. The engineer should verify that the join predicate correctly matches the date_key in the fact table to the primary key in the date dimension. Fixing the join condition eliminates the Cartesian product, reducing the result set to the intended matches and dramatically improving performance. This is the direct solution to the warning.

  • ✗

    Add a WHERE clause to filter the date dimension to the same range as the fact table.

    Why it's wrong here

    Filtering the date dimension to the same range might reduce the number of rows in the dimension, but it does not address the Cartesian join. A Cartesian join occurs when the join condition is missing or always true. Filtering does not fix the join condition. While it might reduce the size of the intermediate result, the Cartesian product would still be generated for the remaining rows, leading to incorrect results and poor performance. The root cause is the join predicate, not the data volume.

  • ✗

    Add a clustering key on the date dimension's date key.

    Why it's wrong here

    Clustering the date dimension might improve join performance if the dimension were large, but it is already small. More importantly, clustering does not resolve a Cartesian join. The warning indicates a missing or incorrect join condition, which clustering cannot fix. The query would still produce a Cartesian product, leading to incorrect results and excessive resource consumption. The engineer should focus on correcting the join predicate instead.

  • ✗

    Increase the warehouse size to handle the larger result set.

    Why it's wrong here

    Increasing warehouse size provides more compute resources, but it does not fix the underlying issue of a Cartesian join. A Cartesian product can produce an enormous number of rows, potentially overwhelming any warehouse size and leading to incorrect results. Scaling up might temporarily handle the load, but it is not a correct solution because the query logic is flawed. The engineer must first correct the join condition to avoid the Cartesian product.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every DEA-C02 question from scratch — 229 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Snowflake exam blueprint

This DEA-C02 practice question is part of Courseiva's free Snowflake certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DEA-C02 exam.