ARA-R01 practice question 2 of 10
Two queries are run on the customer_address table: create or replace TABLE CUSTOMER_ADDRESS ( CA_ADDRESS_SK NUMBER(38,0), CA_ADDRESS_ID VARCHAR(16)…
Full set: 162 questionsDomain Implementing and Deploying a Solution
The command ADD SEARCH OPTIMIZATION ON SUBSTRING(CAADDRESSID) enables the search optimization service for queries that filter on substrings of the CAADDRESSID column. Query A uses the predicate substring(CAADDRESSID,1,8) = '...', which is an explicitly supported pattern for this type of optimization. The substring being searched for is 8 characters long. Query C uses the predicate CAADDRESSID LIKE '%BAAASKD%', which is also an explicitly supported pattern. The substring is 7 characters long. Snowflake documentation states that the service works best for substrings that are at least 5 characters long. Both queries A and C meet this criteria and will benefit from the configured search optimization.
B. This is an equality predicate. It requires ADD SEARCH OPTIMIZATION ON EQUALITY(...), not ON SUBSTRING(...), to be optimized.
D. The substring 'PHPP' is only 4 characters long. The search optimization service may not provide a significant performance improvement for substrings shorter than 5 characters.
E. NOT LIKE predicates are not supported by the search optimization service, as it is designed to prune data based on inclusion, not exclusion.
1. Snowflake Documentation: Search Optimization Service > Search Optimization for Substring and Regular Expression Searches. This section lists the supported predicates for substring optimization, including LIKE '%%' and SUBSTRING(
2. Snowflake Documentation: ALTER TABLE. This document details the syntax for adding search optimization: ALTER TABLE ... ADD SEARCH OPTIMIZATION ON (), where SUBSTRING is one of the valid search methods. This confirms that the configuration in the question is valid for enabling substring searches.
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 1A Developer is having a performance issue with a Snowflake query. The query receives up t…
- 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…
