AIF-C01 Fundamentals of Generative AI Practice Question
A company operates a customer support chatbot that uses Amazon Bedrock with a knowledge base sourced from an S3 bucket containing frequently updated product documentation. The knowledge base uses OpenSearch Serverless as the vector store and is configured to sync daily. The chatbot uses the RetrieveAndGenerate API with a custom Lambda function that applies a system prompt instructing the model to base answers solely on the retrieved context. After a major update to the product documentation, the IT team verifies that the data source sync completed successfully and the new chunks are present in the OpenSearch index. However, the chatbot continues to respond with outdated information. Further investigation reveals that the Lambda function includes a response caching mechanism using Amazon ElastiCache for Redis with a Time-To-Live (TTL) of 24 hours. The cache key is based on the user query. The team notes that no cache invalidation is performed after documentation updates. What is the most likely cause of the outdated responses?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The ElastiCache cache is returning stale cached responses that contain the old information.
Since the data source sync succeeded and the index contains new chunks, the retrieval should be able to access the latest data. However, the Lambda function caches responses keyed by query. With a 24-hour TTL and no invalidation, the cache returns stale responses containing the old safety information. Clearing the cache or reducing TTL would resolve the issue. The other options are less likely: low max results might cause missing new chunks but would not consistently return old info; the embedding model is not retrained per sync; IAM permissions would affect sync, not retrieval.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The ElastiCache cache is returning stale cached responses that contain the old information.
Why this is correct
Correct. The cache is not invalidated on document updates, so identical queries return cached old responses.
- ✗
The 'maximum results' parameter in the RetrieveAndGenerate API is set to a value too low to retrieve the new chunks.
Why it's wrong here
Plausible but unlikely because the sync succeeded and the index contains new chunks; low max results could still retrieve new chunks if they are relevant.
- ✗
The embedding model used by the knowledge base has not been retrained on the new documentation.
Why it's wrong here
Incorrect. Embedding models are pre-trained and not retrained per sync; new chunks are embedded using the same model.
- ✗
The IAM role for the Lambda function lacks permissions to access the new S3 objects.
Why it's wrong here
Incorrect. If permissions were lacking, the data source sync would have failed.
Visual reference
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
This AIF-C01 question is part of Courseiva's 619-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.