A vector index in Amazon OpenSearch Service holds hundreds of millions of embeddings across legal, medical and finance content, and queries are slowing down. Which two changes help? (Select TWO.)
- Exam domain
- Foundation Model Integration, Data Management, and Compliance31% of the exam
- Difficulty
- Hard
- In this mock
- 28 questions on this domainPractise this domain
Why the exam asks this
Task 1.4: Design and implement vector store solutions.
Objective in the exam guide: Skill 1.4.3: Implement high-performance vector database architectures to optimize semantic search performance at scale (for example, by using OpenSearch sharding strategies, multi-index approaches for specialized domains).
Vector search that is fast with a million vectors can crawl at hundreds of millions. Professionals are expected to know the scaling levers of the vector store itself.
Why B and C are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
Split the content into separate indexes per domain
Choose a shard count that matches the data size and query load
Per-domain indexes narrow each search, and a sensible shard strategy spreads the load.
Remember: At scale, tune the vector store itself: shard sensibly and split by domain.
How it works
OpenSearch Service splits an index into shards spread across nodes. The number of shards affects how work is spread and how fast queries run.
Separating content into indexes per domain means each query searches a smaller, more relevant set.
Both changes improve speed without giving up semantic search.
Clues in the question
The words that point to the answer, and what each one tells you.
- Hundreds of millions of embeddings
- A scale problem in the store.
- Legal, medical and finance
- Distinct domains that can be separated.
In detail
- OpenSearch guidance sizes shard count to data volume and workload.
- Multi-index designs let each domain be tuned separately.
Side by side with look-alikes
| Change | Effect |
|---|---|
| Index per domain | Smaller, more relevant search space |
| Sensible shard count | Load spread across nodes |
| One shard | One node does everything |
| Keyword only | Loses semantic search |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Remove the embeddings and use keyword search onlyWrong
Dropping embeddings loses semantic search.
B. Split the content into separate indexes per domainRight
Per-domain indexes narrow each search, and a sensible shard strategy spreads the load.
C. Choose a shard count that matches the data size and query loadRight
Per-domain indexes narrow each search, and a sensible shard strategy spreads the load.
D. Store all embeddings in one shardWrongMost tempting
One shard concentrates all work on one node.
Why it tempts: One shard sounds simple and avoids coordination. But it puts all the work on one node, which is the opposite of scaling.
E. Raise the model temperatureWrong
Temperature has nothing to do with search speed.
In practice
- Follow the OpenSearch guidance on shard size when choosing shard count.
- Route queries to the domain index using metadata or a classifier.
Use case
An illustrative scenario, not a real incident.
A team moves medical, legal and finance content into three indexes, and routes each query to the right one.
See how it works
flowchart TB
Q["Query"] --> R{"Which domain?"}
R --> L["Legal index: shards 1 to 3"]
R --> M["Medical index: shards 1 to 3"]
R --> F["Finance index: shards 1 to 3"]How to read this chart
- "Query" leads to "Which domain?".
- At "Which domain?": otherwise, go to "Legal index: shards 1 to 3"; otherwise, go to "Medical index: shards 1 to 3"; otherwise, go to "Finance index: shards 1 to 3".
Related questions
Learn more
- Our lesson: Models, data and retrieval
- Practise Foundation Model Integration, Data Management, and Compliance questions in the mock exam
- Source: OpenSearch Service: choosing the number of shards
- Source: OpenSearch Service: k-NN vector search
- Bedrock Knowledge Bases
- Bedrock Prompt Management
- Generative AI Lens