Question 1
How can a data analyst determine if query results were pulled from the cache?
- AOption A:
Go to the Query History tab and click on the text of the query. The slideout shows if the results came from the cache.
- BOption B:
Go to the Alerts tab and check the Cache Status alert.
- COption C:
Go to the Queries tab and click on Cache Status. The status will be green if the results from the last run came from the cache.
- DOption D:
Go to the SQL Warehouse (formerly SQL Endpoints) tab and click on Cache. The Cache file will show the contents of the cache.
- EOption E:
Show answer and explanation
Correct answer: A
Databricks SQL uses a query cache to store the results of queries that have been executed previously. This improves the performance and efficiency of repeated queries. To determine if a query result was pulled from the cache, you can go to the Query History tab in the Databricks SQL UI and click on the text of the query. A slideout will appear on the right side of the screen, showing the query details, including the cache status. If the result came from the cache, the cache status will show “Cached”. If the result did not come from the cache, the cache status will show “Not cached”. You can also see the cache hit ratio, which is the percentage of queries that were served from the cache. References: The answer can be verified from Databricks SQL documentation which provides information on how to use the query cache and how to check the cache status. Reference link: Databricks SQL - Query Cache