In CREATE CORTEX SEARCH SERVICE, what does TARGET_LAG control?
- Exam domain
- Retrieval with Cortex Search
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why D is the answer
How fresh the service is kept relative to its source data
The service re-evaluates its source query to pick up changes, using the same refresh model as dynamic tables. TARGET_LAG sets how far behind the source it may fall.
Remember: TARGET_LAG sets freshness.
In detail
- TARGET_LAG: freshness.
- ATTRIBUTES: filter columns.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The maximum query latency the service will tolerate before it fails a requestWrong
It is not a latency timeout.
B. Which columns can be filteredWrong
Filter columns are set with ATTRIBUTES.
C. How many results a query returnsWrong
Result count is set at query time.
D. How fresh the service is kept relative to its source dataRight
TARGET_LAG sets freshness.
Use case
An illustrative scenario, not a real incident.
Illustrative: a support search sets a one-hour target lag so new articles appear within the hour.
See it in different ways
mindmap
root(("CREATE CORTEX SEARCH SERVICE"))
n1["ON"]
n2["Column to search"]
n3["ATTRIBUTES"]
n4["Filter columns"]
n5["WAREHOUSE"]
n6["Refresh compute"]
n7["TARGET_LAG"]
n8["Freshness"]
n9["AS"]
n10["Source query"]How to read this chart
- The centre is "CREATE CORTEX SEARCH SERVICE".
- "ON" covers "Column to search".
- "ATTRIBUTES" covers "Filter columns".
- "WAREHOUSE" covers "Refresh compute".
- "TARGET_LAG" covers "Freshness".
- "AS" covers "Source query".
stateDiagram-v2 state "Source changed" as s0 state "Refresh due" as s1 state "Service current" as s2 [*] --> s0 s0 --> s1: lag reached s1 --> s2: only new or changed rows embedded s2 --> [*]
How to read this chart
- It starts at "Source changed".
- From "Source changed", "lag reached" moves it to "Refresh due".
- From "Refresh due", "only new or changed rows embedded" moves it to "Service current".
- It ends at "Service current".