ARA-R01 practice question 1 of 10
A Developer is having a performance issue with a Snowflake query. The query receives up to 10 different values for one parameter and then performs an…
Full set: 162 questionsDomain Architecting a Solution
The most effective solution that meets all constraints is to leverage Snowflake's result cache. Since the data is loaded overnight and remains static during business hours, the queries are deterministic. By creating a task to execute the 10 known query variations before users start their day, the results for these specific queries are stored in the global result cache. When a user subsequently runs one of these exact queries, Snowflake returns the cached result almost instantly, bypassing warehouse execution entirely. This dramatically improves performance for the users and consumes no virtual warehouse credits for those cached reads, thereby adhering to the strict budget constraint.
B: Running the task during business hours would compete for warehouse resources with users. The warehouse (local disk) cache helps speed up data scanning but does not eliminate query execution and compute costs like the result cache does. C: The search optimization service is designed for highly selective point-lookup queries, not for queries that perform aggregations over a majority of a table. It also incurs its own storage and compute costs, violating the budget constraint. D: This option directly contradicts the primary constraint that there is no budget to increase compute costs. A dedicated Large warehouse would be more expensive per unit of time than the current Small or Medium warehouses.
1. Result Cache Usage: Snowflake Documentation, "Using the Result Cache". This section explains: "When a query is executed, Snowflake checks for a previously executed query that is syntactically the same. If a matching query exists and the results are still cached, Snowflake uses the cached result set and does not execute the query." It also lists the conditions for using the cache, which are met in this scenario (e.g., underlying data has not changed).
2. Tasks for Automation: Snowflake Documentation, "Introduction to Tasks". This document confirms that tasks can be used to "execute a single SQL statement... on a schedule," which is the mechanism proposed in the correct answer for pre-populating the result cache.
3. Search Optimization Service Use Cases and Costs: Snowflake Documentation, "Search Optimization Service". This page clarifies that the service is for "improving the performance of selective point lookup queries" and explicitly states, "Snowflake charges a fee for the storage and compute resources used to... maintain the search access paths," making it unsuitable for this scenario's query type and cost constraints.
Keep practicing
Take the free ARA-R01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ARA-R01 practice questions
- Question 2Two queries are run on the customer_address table: create or replace TABLE CUSTOMER_ADDRE…
- Question 4An Architect needs to allow a user to create a database from an inbound share. To meet th…
- Question 5Which security, governance, and data protection features require, at a MINIMUM, the Busin…
- Question 6What does a Snowflake Architect need to consider when implementing a Snowflake Connector …
- Question 7A user named USER_01 needs access to create a materialized view on a schema EDW. STG_SCHEM
- Question 9A large manufacturing company runs a dozen individual Snowflake accounts across its busin…
