What does Cortex Analyst rely on to understand business terms in structured data?
- Exam domain
- Text to SQL with Cortex Analyst
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
A semantic model, ideally defined as a semantic view
Cortex Analyst relies on a semantic model. Snowflake recommends semantic views for new implementations, while legacy YAML files on stages are still supported.
Remember: Semantic views ground Analyst.
In detail
- Semantic views recommended.
- YAML still supported.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A Cortex Search service over the table rows, which it searches before writing any SQLWrong
Search over rows is not how it writes SQL.
B. A semantic model, ideally defined as a semantic viewRight
Semantic views ground Analyst.
C. A vector index of all tablesWrong
It does not search a vector index of tables.
D. The column comments onlyWrong
Comments alone do not define metrics and joins.
Use case
An illustrative scenario, not a real incident.
Illustrative: a finance team defines "net revenue" once in a semantic view so every answer uses the same formula.
See it in different ways
mindmap
root(("Semantic view"))
n1["Defines"]
n2["Tables"]
n3["Metrics"]
n4["Joins"]
n5["Adds"]
n6["Verified queries"]How to read this chart
- The centre is "Semantic view".
- "Defines" covers "Tables", "Metrics", "Joins".
- "Adds" covers "Verified queries".
flowchart LR S0["Define a semantic view"] --> S1["Add sample questions"] --> S2["Ask in natural language"]
How to read this chart
- Read it in order: Define a semantic view, then Add sample questions, then Ask in natural language.