nerdexam
Snowflake

ARA-C01 · Question #80

An Architect is troubleshooting a query with poor performance using the QUERY function. The Architect observes that the COMPILATION_TIME Is greater than the EXECUTION_TIME. What is the reason for…

The correct answer is B. The query has overly complex logic. In Snowflake's query profiling (via QUERY_HISTORY), COMPILATION_TIME represents the time spent parsing, optimizing, and generating the execution plan for the query in cloud services. When COMPILATION_TIME exceeds EXECUTION_TIME, it means the query optimizer is spending more…

Performance Optimization

Question

An Architect is troubleshooting a query with poor performance using the QUERY function. The Architect observes that the COMPILATION_TIME Is greater than the EXECUTION_TIME. What is the reason for this?

Options

  • AThe query is processing a very large dataset.
  • BThe query has overly complex logic.
  • CThe query Is queued for execution.
  • DThe query Is reading from remote storage

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    48% (14)
  • C
    14% (4)
  • D
    31% (9)

Explanation

In Snowflake's query profiling (via QUERY_HISTORY), COMPILATION_TIME represents the time spent parsing, optimizing, and generating the execution plan for the query in cloud services. When COMPILATION_TIME exceeds EXECUTION_TIME, it means the query optimizer is spending more effort analyzing complex logic (joins, subqueries, deeply nested CTEs, many predicates) than actually executing the query. Option A (large dataset) would primarily inflate execution time. Option C (queued) would show as queued time, not compilation time. Option D (remote storage) would impact execution time. Overly complex query logic is the primary driver of disproportionately high compilation time.

Topics

#Query Performance#Query Optimization#Compilation Time#Execution Time

Community Discussion

No community discussion yet for this question.

Full ARA-C01 Practice