An analyst asks an agent for total sales by region. The agent uses NL2SQL. What does NL2SQL itself do?
- Exam domain
- Agents with the OCI Responses API
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why D is the answer
It generates validated SQL but does not run it
Oracle states that NL2SQL generates SQL only and does not run the query. Execution is handled separately through the DBTools MCP Server, using existing permissions.
Remember: NL2SQL writes; it does not run.
In detail
- NL2SQL writes SQL.
- DBTools MCP Server runs it.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. It copies the source data into a vector store first, so the question can be answered from embeddingsWrong
NL2SQL works without moving or copying the data.
B. It writes a chart image directlyWrong
It produces SQL, not images.
C. It generates SQL and runs it, then returns the rowsWrong
Running the query is a separate step.
D. It generates validated SQL but does not run itRight
NL2SQL writes; it does not run.
Use case
An illustrative scenario, not a real incident.
Illustrative: a sales agent turns "revenue by region last quarter" into SQL and runs it under the analyst's permissions.
See it in different ways
flowchart LR S0["Natural-language question"] --> S1["NL2SQL writes SQL"] --> S2["DBTools MCP Server runs it"] --> S3["Results returned"]
How to read this chart
- Read it in order: Natural-language question, then NL2SQL writes SQL, then DBTools MCP Server runs it, then Results returned.
mindmap
root(("NL2SQL"))
n1["Source"]
n2["Oracle Autonomous AI Database"]
n3["Adds"]
n4["Semantic enrichment layer"]
n5["Runs queries"]
n6["No, DBTools MCP Server does"]How to read this chart
- The centre is "NL2SQL".
- "Source" covers "Oracle Autonomous AI Database".
- "Adds" covers "Semantic enrichment layer".
- "Runs queries" covers "No, DBTools MCP Server does".