
無料提供される1Z0-184-25問題集と1Z0-184-25リアル試験問題
Oracle 1Z0-184-25実際の問題とブレーン問題集
質問 # 31
You are asked to fetch the top five vectors nearest to a query vector, but only for a specific category of documents. Which query structure should you use?
- A. Perform the similarity search without a WHERE clause
- B. Apply relational filters and a similarity search in the query
- C. Use VECTOR_INDEX_HINT and NO WHERE clause
- D. Use UNION ALL with vector operations
正解:B
解説:
To fetch the top five nearest vectors for a specific category, combine relational filtering (e.g., WHERE category = 'X') with similarity search (C) (e.g., VECTOR_DISTANCE with ORDER BY and FETCH FIRST 5 ROWS). UNION ALL (A) is for combining result sets, not filtering. Omitting WHERE (B) ignores the category constraint. VECTOR_INDEX_HINT (D) influences index usage, not filtering, and skipping WHERE misses the requirement. Oracle's vector search examples use WHERE clauses with similarity functions for such tasks.
質問 # 32
When generating vector embeddings for a new dataset outside of Oracle Database 23ai, which factor is crucial to ensure meaningful similarity search results?
- A. The storage format of the new dataset (e.g., CSV, JSON)
- B. The physical location where the vector embeddings are stored
- C. The same vector embedding model must be used for vectorizing the data and creating a query vector
- D. The choice of programming language used to process the dataset (e.g., Python, Java)
正解:C
解説:
Meaningful similarity search relies on the consistency of the vector space in which embeddings reside. Vector embeddings are generated by models (e.g., BERT, SentenceTransformer) that map data into a high-dimensional space, where proximity reflects semantic similarity. If different models are used for the dataset and query vector, the embeddings will be in incompatible spaces, rendering distance metrics (e.g., cosine, Euclidean) unreliable. The programming language (A) affects implementation but not the semantic consistency of embeddings-Python or Java can use the same model equally well. The physical storage location (B) impacts accessibility and latency but not the mathematical validity of similarity comparisons. The storage format (C) influences parsing andingestion but does not determine the embedding space. Oracle 23ai's vector search framework explicitly requires the same embedding model for data and queries to ensure accurate results, a principle that applies universally, even outside the database.
質問 # 33
Which is a characteristic of an approximate similarity search in Oracle Database 23ai?
- A. It trades off accuracy for faster performance
- B. It always guarantees 100% accuracy
- C. It compares every vector in the dataset
- D. It is slower than exact similarity search
正解:A
解説:
Approximate similarity search (ANN) in Oracle 23ai (B) uses indexes (e.g., HNSW, IVF) to trade accuracy for speed, returning near-matches faster by not comparing all vectors. Exact search compares every vector (A), not ANN. It doesn't guarantee 100% accuracy (C); that's exact search. It's faster, not slower (D), than exact search due to indexing. Oracle's documentation defines ANN's speed-accuracy trade-off as its hallmark.
質問 # 34
What is the primary function of AI Smart Scan in Exadata System Software 24ai?
- A. To provide real-time monitoring and diagnostics for AI applications
- B. To accelerate AI workloads by leveraging Exadata RDMA Memory (XRMEM), Exadata Smart Cache, and on-storage processing
- C. To automatically optimize database queries for improved performance
正解:B
解説:
AI Smart Scan in Exadata System Software 24ai (B) accelerates AI workloads, including vector search, by offloading processing to storage servers using Exadata's RDMA Memory (XRMEM), Smart Cache, and on-storage capabilities. This enhances performance for large-scale vector operations. Real-time monitoring (A) isn't its focus; that's for management tools. Queryoptimization (C) is a general Exadata feature (Smart Scan), but AI Smart Scan specifically targets AI tasks. Oracle's 24ai documentation emphasizes its role in speeding up AI computations.
質問 # 35
Which vector index available in Oracle Database 23ai is known for its speed and accuracy, making it a preferred choice for vector search?
- A. Hierarchical Navigable Small World (HNSW) index
- B. Inverted File System (IFS) index
- C. Binary Tree (BT) index
- D. Inverted File (IVF) index
正解:A
解説:
Oracle 23ai supports two main vector indexes: IVF and HNSW. HNSW (D) is renowned for its speed and accuracy, using a hierarchical graph to connect vectors, enabling fast ANN searches with high recall-ideal for latency-sensitive applications like real-time RAG. IVF (C) partitions vectors for scalability but often requires tuning (e.g., NEIGHBOR_PARTITIONS) to match HNSW's accuracy, trading off recall for memory efficiency. BT (A) isn't a 23ai vector index; it's a generic term unrelated here. IFS (B) seems a typo for IVF; no such index exists. HNSW's graph structure outperforms IVF in small-to-medium datasets or where precision matters, as Oracle's documentation and benchmarks highlight, making it a go-to for balanced performance.
質問 # 36
You are storing 1,000 embeddings in a VECTOR column, each with 256 dimensions using FLOAT32. What is the approximate size of the data on disk?
- A. 1 GB
- B. 1 MB
- C. 256 KB
- D. 4 MB
正解:D
解説:
To calculate the size: Each FLOAT32 value is 4 bytes. With 256 dimensions per embedding, one embedding is 256 × 4 = 1,024 bytes (1 KB). For 1,000 embeddings, the total size is 1,000 × 1,024 = 1,024,000 bytes ≈ 1 MB. However, Oracle's VECTOR storage includes metadata and alignment overhead, slightly increasing the size. Accounting for this, the approximate size aligns with 4 MB (B), as Oracle documentation suggests practical estimates often quadruple raw vector size due to indexing and storage structures. 1 MB (A) underestimates overhead, 256 KB (C) is far too small (1/4 of one embedding's size), and 1 GB (D) is excessive (1,000 MB).
質問 # 37
What is the purpose of the Vector Pool in Oracle Database 23ai?
- A. To store HNSW vector indexes and IVF index metadata
- B. To store non-vector data types
- C. To enable longer SQL execution
- D. To manage database partitioning
正解:A
解説:
The Vector Pool in Oracle 23ai is a dedicated SGA memory region (controlled by VECTOR_MEMORY_SIZE) for vector operations, specifically storing HNSW indexes (graph structures) and IVF index metadata (e.g., centroids) (B). This optimizes memory usage for vector search, keeping critical index data accessible for fast queries. Partitioning (A) is unrelated; that's a tablespace feature. Longer SQL execution (C) might benefit indirectly from memory efficiency, but it's not the purpose. Non-vector data (D) resides elsewhere (e.g., PGA, buffer cache). Oracle allocates the Vector Pool to enhance AI workloads, ensuring indexes don't compete with other memory, a design choice reflecting vector search's growing importance.
質問 # 38
How is the security interaction between Autonomous Database and OCI Generative AI managed in the context of Select AI?
- A. By encrypting all communication between the Autonomous Database and OCI Generative AI using TLS/SSL protocols
- B. By establishing a secure VPN tunnel between the Autonomous Database and OCI Generative AI service
- C. By requiring users to manually enter their OCI API keys each time they execute a natural language query
- D. By utilizing Resource Principals, which grant the Autonomous Database instance access to OCI Generative AI without exposing sensitive credentials
正解:D
解説:
In Oracle Database 23ai's Select AI, security between the Autonomous Database and OCI Generative AI is managed using Resource Principals (B). This mechanism allows the database instance to authenticate itself to OCI services without hardcoding credentials, enhancing security by avoiding exposure of sensitive keys. TLS/SSL encryption (A) is used for data-in-transit security, but it's a complementary layer, not the primary management method. A VPN tunnel (C) is unnecessary within OCI's secure infrastructure and not specified for Select AI. Manual API key entry (D) is impractical and insecure for automated database interactions. Oracle's documentation on Select AI highlights Resource Principals as the secure, scalable authentication method.
質問 # 39
What is the primary purpose of a similarity search in Oracle Database 23ai?
- A. To group vectors by their exact scores
- B. To find exact matches in BLOB data
- C. Optimize relational database operations to compute distances between all data points in a database
- D. To retrieve the most semantically similar entries using distance metrics between different vectors
正解:D
解説:
Similarity search in Oracle 23ai (C) uses vector embeddings in VECTOR columns to retrieve entries semantically similar to a query vector, based on distance metrics (e.g., cosine, Euclidean) via functions like VECTOR_DISTANCE. This is key for AI applications like RAG, finding "close" rather than exact matches. Optimizing relational operations (A) is unrelated; similarity search is vector-specific. Exact matches in BLOBs (B) don't leverage vector semantics. Grouping by scores (D) is a post-processing step, not the primary purpose. Oracle's documentation defines similarity search as retrieving semantically proximate vectors.
質問 # 40
When generating vector embeddings outside the database, what is the most suitable option for storing the embeddings for later use?
- A. In the database as BLOB (Binary Large Object) data
- B. In a dedicated vector database
- C. In a CSV file
- D. In a binary FVEC file with the relational data in a CSV file
正解:B
解説:
When vector embeddings are generated outside the database, the storage choice must balance efficiency, scalability, and usability for similarity search. A CSV file (A) is simple and human-readable but inefficient for large-scale vector operations due to text parsing overhead and lack of indexing support. A binary FVEC file (B) offers a compact format for vectors, reducing storage size and improving read performance, but separating relational data into a CSV complicates integration and querying, making it suboptimal for unified workflows. Storing embeddings as BLOBs in a relational database (C) integrates well with structured data and supports SQL access, but it lacks the specialized indexing (e.g., HNSW, IVF) and query optimizations that dedicated vector databases provide. A dedicated vector database (D), such as Milvus or Pinecone (or Oracle 23ai's vector capabilities if internal), is purpose-built for high-dimensional vectors, offering efficient storage, advanced indexing, and fast approximate nearest neighbor (ANN) searches. For external generation scenarios, where embeddings are not immediately integrated into Oracle 23ai, a dedicated vector database is the most suitable due to its performance and scalability advantages. Oracle's AI Vector Search documentation indirectly supports this by emphasizing optimized vector storage for search efficiency, though it focuses on in-database solutions.
質問 # 41
You are working with vector search in Oracle Database 23ai and need to ensure the integrity of your vector data during storage and retrieval. Which factor is crucial for maintaining the accuracy and reliability of your vector search results?
- A. Using the same embedding model for both vector creation and similarity search
- B. The physical storage location of the vector data
- C. Regularly updating vector embeddings to reflect changes in the source data
- D. The specific distance algorithm employed for vector comparisons
正解:A
解説:
In Oracle Database 23ai, vector search accuracy hinges on the consistency of the embedding model. The VECTOR data type stores embeddings as fixed-dimensional arrays, and similarity searches (e.g., using VECTOR_DISTANCE) assume that all vectors-stored and query-are generated by the same model. This ensures they occupy the same semantic space, making distance calculations meaningful. Regular updates (B) maintain data freshness, but if the model changes, integrity is compromised unless all embeddings are regenerated consistently. The distance algorithm (C) (e.g., cosine, Euclidean) defines how similarity is measured but relies on consistent embeddings; an incorrect model mismatch undermines any algorithm. Physical storage location (D) affects performance, not integrity. Oracle's documentation stresses model consistency as a prerequisite for reliable vector search within its native capabilities.
質問 # 42
Which operation is NOT permitted on tables containing VECTOR columns?
- A. UPDATE
- B. SELECT
- C. JOIN ON VECTOR columns
- D. DELETE
正解:C
解説:
In Oracle 23ai, tables with VECTOR columns support standard DML operations: SELECT (A) retrieves data, UPDATE (B) modifies rows, and DELETE (C) removes rows. However, JOIN ON VECTOR columns (D) is not permitted because VECTOR isn't a relational type for equality comparison; it's for similarity search (e.g., via VECTOR_DISTANCE). Joins must use non-VECTOR columns. Oracle's SQL reference restricts VECTOR to specific operations, excluding direct joins.
質問 # 43
What is the primary function of an embedding model in the context of vector search?
- A. To execute similarity search operations within a database
- B. To transform text or data into numerical vector representations
- C. To define the schema for a vector database
- D. To store vectors in a structured format for efficient retrieval
正解:B
解説:
An embedding model in the context of vector search, such as those used in Oracle Database 23ai, is fundamentally a machine learning construct (e.g., BERT, SentenceTransformer, or an ONNX model) designed to transform raw data-typically text, but also images or other modalities-into numerical vector representations (C). These vectors, stored in the VECTOR data type, encapsulate semantic meaning in a high-dimensional space where proximity reflects similarity. For instance, the word "cat" might be mapped to a 512-dimensional vector like [0.12, -0.34, ...], where its position relative to "dog" indicates relatedness. This transformation is the linchpin of vector search, enabling mathematical operations like cosine distance to find similar items.
Option A (defining schema) misattributes a database design role to the model; schema is set by DDL (e.g., CREATE TABLE with VECTOR). Option B (executing searches) confuses the model with database functions like VECTOR_DISTANCE, which use the embeddings, not create them. Option D (storing vectors) pertains to the database's storage engine, not the model's function-storage is handled by Oracle's VECTOR type and indexes (e.g., HNSW). The embedding model's role is purely generative, not operational or structural. In practice, Oracle 23ai integrates this via VECTOR_EMBEDDING, which calls the model to produce vectors, underscoring its transformative purpose. Misunderstanding this could lead to conflating data preparation with query execution, a common pitfall for beginners.
質問 # 44
What is the default distance metric used by the VECTOR_DISTANCE function if none is specified?
- A. Manhattan
- B. Hamming
- C. Cosine
- D. Euclidean
正解:C
解説:
The VECTOR_DISTANCE function in Oracle 23ai computes vector distances, and if no metric is specified (e.g., VECTOR_DISTANCE(v1, v2)), it defaults to Cosine (C). Cosine distance (1 - cosine similarity) is widely used for text embeddings due to its focus on angular separation, ignoring magnitude-fitting for normalized vectors from models like BERT. Euclidean (A) measures straight-line distance, not default. Hamming (B) is for binary vectors, rare in 23ai's FLOAT32 context. Manhattan (D) sums absolute differences, less common for embeddings. Oracle's choice of Cosine reflects its AI focus, as documentation confirms, aligning with industry norms for semantic similarity-vital for users assuming defaults in queries.
質問 # 45
What is the purpose of the VECTOR_DISTANCE function in Oracle Database 23ai similarity search?
- A. To create vector indexes for efficient searches
- B. To group vectors by their exact scores
- C. To calculate the distance between vectors using a specified metric
- D. To fetch rows that match exact vector embeddings
正解:C
解説:
The VECTOR_DISTANCE function in Oracle 23ai (D) computes the distance between two vectors using a specified metric (e.g., COSINE, EUCLIDEAN), enabling similarity search by quantifying proximity. It doesn't fetch exact matches (A); it measures similarity. Index creation (B) is handled by CREATE INDEX, not this function. Grouping (C) requires additional SQL (e.g., GROUP BY), not VECTOR_DISTANCE's role. Oracle's SQL reference defines it as the core tool for distance calculation in vector queries.
質問 # 46
A database administrator wants to change the VECTOR_MEMORY_SIZE parameter for a pluggable database (PDB) in Oracle Database 23ai. Which SQL command is correct?
- A. ALTER DATABASE SET VECTOR_MEMORY_SIZE=1G SCOPE=VECTOR
- B. ALTER SYSTEM RESET VECTOR_MEMORY_SIZE
- C. ALTER SYSTEM SET VECTOR_MEMORY_SIZE=1G SCOPE=BOTH
- D. ALTER SYSTEM SET VECTOR_MEMORY_SIZE=1G SCOPE=SGA
正解:C
解説:
VECTOR_MEMORY_SIZE in Oracle 23ai controls memory allocation for vector operations (e.g., indexing, search) in the SGA. For a PDB, ALTER SYSTEM adjusts parameters, andSCOPE=BOTH (A) applies the change immediately and persists it across restarts (modifying the SPFILE). Syntax: ALTER SYSTEM SET VECTOR_MEMORY_SIZE=1G SCOPE=BOTH sets it to 1 GB. Option B (ALTER DATABASE) is invalid for this parameter, and SCOPE=VECTOR isn't a valid scope. Option C (SCOPE=SGA) isn't a scope value; valid scopes are MEMORY, SPFILE, or BOTH. Option D (RESET) reverts to default, not sets a value. In a PDB, this must be executed in the PDB context, not CDB, and BOTH ensures durability-key for production environments where vector workloads demand consistent memory.
質問 # 47
Which Python library is used to vectorize text chunks and the user's question in the following example?
import oracledb
connection = oracledb.connect(user=un, password=pw, dsn=ds)
table_name = "Page"
with connection.cursor() as cursor:
create_table_sql = f"""
CREATE TABLE IF NOT EXISTS {table_name} (
id NUMBER PRIMARY KEY,
payload CLOB CHECK (payload IS JSON),
vector VECTOR
)"""
try:
cursor.execute(create_table_sql)
except oracledb.DatabaseError as e:
raise
connection.autocommit = True
from sentence_transformers import SentenceTransformer
encoder = SentenceTransformer('all-MiniLM-L12-v2')
- A. json
- B. oci
- C. oracledb
- D. sentence_transformers
正解:D
解説:
In the provided Python code, the sentence_transformers library (A) is imported and used to instantiate a SentenceTransformer object with the 'all-MiniLM-L12-v2' model. This library is designed to vectorize text (e.g., chunks and questions) into embeddings, a common step in RAG applications. The oracledb library (C) handles database connectivity, not vectorization. oci (B) is for OCI service interaction, not text embedding. json (D) processes JSON data, not vectors. The code explicitly uses sentence_transformers for vectorization, consistent with Oracle's examples for external embedding integration.
質問 # 48
An application needs to fetch the top-3 matching sentences from a dataset of books while ensuring a balance between speed and accuracy. Which query structure should you use?
- A. Approximate similarity search with the VECTOR_DISTANCE function
- B. Multivector similarity search with approximate fetching and target accuracy
- C. A combination of relational filters and similarity search
- D. Exact similarity search with Euclidean distance
正解:A
解説:
Fetching the top-3 matching sentences requires a similarity search, and balancing speed and accuracy points to approximate nearest neighbor (ANN) techniques. Option A-approximate similarity search with VECTOR_DISTANCE-uses an index (e.g., HNSW, IVF) to quickly find near-matches, ordered by distance (e.g., SELECT sentence, VECTOR_DISTANCE(vector, :query_vector, COSINE) AS score FROM books ORDER BY score FETCH APPROXIMATE 3 ROWS ONLY). The APPROXIMATE clause leverages indexing for speed, with tunable accuracy (e.g., TARGET_ACCURACY), ideal for large datasets where exactness is traded for performance.
Option B (exact search with Euclidean) scans all vectors without indexing, ensuring 100% accuracy but sacrificing speed-impractical for big datasets. Option C ("multivector" search) isn't a standard Oracle 23ai construct; it might imply multiple vectors per row, but lacks clarity and isn't optimal here. Option D (relational filters plus similarity) adds WHERE clauses (e.g., WHERE genre = 'fiction'), useful for scoping but not specified as needed, and doesn't inherently balance speed-accuracy without ANN. Oracle's ANN support in 23ai, via HNSW or IVF withVECTOR_DISTANCE, makes A the practical choice, aligning with real-world RAG use cases where response time matters as much as relevance.
質問 # 49
What is the function of the COSINE parameter in the SQL query used to retrieve similar vectors?
topk = 3
sql = f"""select payload, vector_distance(vector, :vector, COSINE) as score from {table_name} order by score fetch approximate {topk} rows only"""
- A. It indicates that the cosine distance metric should be used to measure similarity between vectors
- B. It converts the vectors to a format compatible with the SQL database
- C. It specifies the type of vector encoding used in the database
- D. It filters out vectors with a cosine similarity below a certain threshold
正解:A
解説:
In Oracle Database 23ai, the VECTOR_DISTANCE function calculates the distance between two vectors using a specified metric. The COSINE parameter in the query (vector_distance(vector, :vector, COSINE)) instructs the database to use the cosine distance metric (C) to measure similarity. Cosine distance, defined as 1 - cosine similarity, is ideal for high-dimensional vectors (e.g., text embeddings) as it focuses on angular separation rather than magnitude. It doesn't filter vectors (A); filtering requires additional conditions (e.g., WHERE clause). It doesn't convert vector formats (B); vectors are already in the VECTOR type. It also doesn't specify encoding (D), which is defined during vector creation (e.g., FLOAT32). Oracle's documentation confirms COSINE as one of the supported metrics for similarity search.
質問 # 50
Which function should you use to determine the storage format of a vector?
- A. VECTOR_CHUNKS
- B. VECTOR_DIMENSION_FORMAT
- C. VECTOR_EMBEDDING
- D. VECTOR_NORM
正解:B
質問 # 51
What is a key characteristic of HNSW vector indexes?
- A. They use hash-based clustering
- B. They require exact match for searches
- C. They are hierarchical with multilayered connections
- D. They are disk-based structures
正解:C
解説:
HNSW (Hierarchical Navigable Small World) indexes in Oracle 23ai (A) are characterized by a hierarchical structure with multilayered connections, enabling efficient approximate nearest neighbor (ANN) searches. This graph-based approach connects vectors across levels, balancing speed and accuracy. They don't require exact matches (B); they're designed for approximate searches. They're memory-optimized, not solely disk-based (C), though persisted to disk. Hash-based clustering (D) relates to other methods (e.g., LSH), not HNSW. Oracle's documentation highlights HNSW's hierarchical nature as key to its performance.
質問 # 52
What is the first step in setting up the practice environment for Select AI?
- A. Create a policy to enable access to OCI Generative AI
- B. Create a new user account with elevated privileges
- C. Drop any compartment that does not use OCI Generative AI
- D. Optionally create an OCI compartment
正解:D
解説:
Select AI in Oracle Database 23ai enables natural language queries by integrating with OCI Generative AI services. The first step in setting up the practice environment is to optionally create an OCI compartment (A), which organizes and isolates resources in Oracle Cloud Infrastructure (OCI). This is foundational because subsequent steps-like defining policies or configuring the Autonomous Database-depend on a compartment structure, though an existing compartment can be reused, making it optional. Creating a policy (B) is a subsequent step to grant access to OCIGenerative AI, requiring a compartment first. Dropping compartments (C) is irrelevant and disruptive. Creating a user account (D) is not specified as the initial step in Select AI setup. Oracle's Select AI documentation lists compartment setup as the starting point in OCI configuration.
質問 # 53
In Oracle Database 23ai, which SQL function calculates the distance between two vectors using the Euclidean metric?
- A. L2_DISTANCE
- B. HAMMING_DISTANCE
- C. COSINE_DISTANCE
- D. L1_DISTANCE
正解:A
解説:
In Oracle Database 23ai, vector distance calculations are primarily handled by the VECTOR_DISTANCE function, which supports multiple metrics (e.g., COSINE, EUCLIDEAN) specified as parameters (e.g., VECTOR_DISTANCE(v1, v2, EUCLIDEAN)). However, the question implies distinct functions, a common convention in some databases or libraries, and Oracle's documentation aligns L2_DISTANCE (B) with the Euclidean metric. L2 (Euclidean) distance is the straight-line distance between two points in vector space, computed as √∑(xi - yi)², where xi and yi are vector components. For example, for vectors [1, 2] and [4, 6], L2 distance is √((1-4)² + (2-6)²) = √(9 + 16) = 5.
Option A, L1_DISTANCE, represents Manhattan distance (∑|xi - yi|), summing absolute differences-not Euclidean. Option C, HAMMING_DISTANCE, counts differing bits, suited for binary vectors (e.g., INT8), not continuous Euclidean spaces typically used with FLOAT32 embeddings. Option D, COSINE_DISTANCE (1 - cosine similarity), measures angular separation, distinct from Euclidean's magnitude-inclusive approach. While VECTOR_DISTANCE is the general function in 23ai, L2_DISTANCE may be an alias or a contextual shorthand in some Oracle AI examples, reflecting Euclidean's prominence in geometric similarity tasks. Misinterpreting this could lead to choosing COSINE for spatial tasks where magnitude matters, skewing results. Oracle's vector search framework supports Euclidean via VECTOR_DISTANCE, but B aligns with the question's phrasing.
質問 # 54
......
Oracle 1Z0-184-25 認定試験の出題範囲:
| トピック | 出題範囲 |
|---|---|
| トピック 1 |
|
| トピック 2 |
|
| トピック 3 |
|
| トピック 4 |
|
| トピック 5 |
|
1Z0-184-25合格させる問題集でOracle24時間で試験合格できます:https://www.passtest.jp/Oracle/1Z0-184-25-shiken.html
最新問題を使おう1Z0-184-25試験問題と解答PDFで一年間無料更新:https://drive.google.com/open?id=1VOTCte6V-Ozcav9Ld9YcTDwGLAPjN-Ie