What does NL2SQL in OCI Enterprise AI do?
- Exam domain
- Agentic AI for enterprises on OCI
- Difficulty
- Hard
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
It writes validated SQL from a question but does not run it
Oracle's docs describe NL2SQL as writing validated SQL over data in Oracle Autonomous AI Database without running it. A separate tool runs the query with existing permissions.
Remember: NL2SQL writes SQL; it does not run it.
In detail
- NL2SQL writes and validates SQL.
- Execution happens elsewhere, under existing permissions.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. It copies tables into a vector storeWrong
It works on tables directly, not by copying them.
B. It writes validated SQL from a question but does not run itRight
NL2SQL writes SQL; it does not run it.
C. It runs any SQL statement the user types, with admin rightsWrong
It does not run queries, and never with admin rights.
D. It trains a model on the database tablesWrong
No training is involved.
Use case
An illustrative scenario, not a real incident.
Illustrative: an analyst asks for last quarter's top regions, reviews the generated SQL, then runs it with their own access.
See it in different ways
flowchart LR S0["Question"] --> S1["Generate SQL"] --> S2["Validate"] --> S3["Return SQL"] --> S4["Run with existing permissions"]
How to read this chart
- Read it in order: Question, then Generate SQL, then Validate, then Return SQL, then Run with existing permissions.
flowchart TD
Q{"Who executes it?"}
Q -->|"NL2SQL"| A0["No one it only writes it"]
Q -->|"A tool with existing permissions"| A1["Runs it"]How to read this chart
- At "Who executes it?": if "NL2SQL", go to "No one it only writes it"; if "A tool with existing permissions", go to "Runs it".