
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A team notices slow query performance when retrieving embeddings from their Bedrock Knowledge Base. What is the most effective way to improve retrieval speed?
A
Reduce model temperature
B
Use a smaller embedding dimension size
C
Use OpenSearch Serverless with properly sized capacity units and index refresh intervals
D
Add more S3 buckets
Explanation:
Why Option C is correct:
OpenSearch Serverless optimization: When using Amazon Bedrock Knowledge Bases, the vector database (OpenSearch Serverless) is a critical component for storing and retrieving embeddings. Properly sizing capacity units and configuring index refresh intervals directly impacts query performance.
Capacity units: OpenSearch Serverless uses capacity units (CUs) to allocate resources. If the capacity is undersized for the workload, query performance will suffer. Properly sizing these units ensures adequate compute and memory resources for efficient retrieval.
Index refresh intervals: The refresh interval determines how frequently new data becomes searchable. A longer refresh interval can improve query performance by reducing the frequency of index updates, though it may increase data latency.
Why other options are incorrect:
Option A (Reduce model temperature): Temperature controls the randomness/creativity of text generation, not retrieval speed. It doesn't affect embedding retrieval performance.
Option B (Use a smaller embedding dimension size): While smaller embeddings might theoretically be faster to process, this isn't the most effective approach. Embedding dimensions are typically fixed by the model, and changing them would require retraining or using a different model, which isn't practical for improving existing system performance.
Option D (Add more S3 buckets): S3 buckets store source documents, not embeddings. Adding more buckets doesn't improve retrieval speed from the vector database where embeddings are indexed and searched.
Best Practice: For optimal Bedrock Knowledge Base performance, focus on: