Exam 1Z0-184-25 Topic 2 Question 27 Discussion

Actual exam question for Oracle's 1Z0-184-25 exam
Question #: 27
Topic #: 2
You need to generate a vector from the string '[1.2, 3.4]' in FLOAT32 format with 2 dimensions. Which function will you use?

Suggested Answer: A Vote an answer

In Oracle Database 23ai, the TO_VECTOR function (A) converts a string representation of a vector (e.g., '[1.2, 3.4]') into a VECTOR data type with specified format (e.g., FLOAT32) and dimensions (here, 2). It's designed for creating vectors from text input, matching the requirement. VECTOR_DISTANCE (B) calculates distances between vectors, not generates them.FROM_VECTOR (C) isn't a documented function; it might be confused with serialization or extraction, but it's not standard. VECTOR_SERIALIZE (D) converts a vector to a string, the opposite of what's needed. Oracle's SQL reference confirms TO_VECTOR for this purpose, parsing the string into a 2D FLOAT32 vector.

by Leonard at May 07, 2025, 09:04 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어