← Quay lại

Câu 195 · Professional Cloud Database Engineer

Câu 195

Professional Cloud Database Engineer

You run a toy sales ecommerce application on Spanner. The application contains details about the various product listings such as name, category, description, and review(s). Your leadership wants to enable customers to ask free-form questions about the product catalog. You want to implement this functionality in the easiest, quickest, and least expensive way possible.

What should you do?
  1. A. Create a Spanner full-text search index. Find the product information or review against the user’s question in a SQL query. Return the response back to the application.
  2. B. Create, train and deploy a custom ML model(s). Fetch toy details from Spanner and invoke ML predictions from the application layer to return the response.
  3. C. Register an existing Generative AI Vertex model in Spanner. Use the ML.PREDICT function to supply the model with a user query along with the product information in a SQL query. Return the response back to the application.
  4. D. Generate vector embeddings for product information in Spanner. Find the vector with the smallest distance between the users’ query and existing product information or review by using the EUCLIDEAN DISTANCE() function in Spanner. Return the closest product information or review.

Làm câu này trên web →