Courseiva

AIF-C01 Applications of Foundation Models Practice Question

A company is building a customer support chatbot using Amazon Bedrock. They need to store conversation history for context across sessions. Which AWS service is best suited for this purpose?

⚠ Common exam trap

It's easy for candidates to confuse durability with performance, picking Amazon S3 for its low cost or Amazon ElastiCache for its speed, without recognizing that DynamoDB uniquely combines low latency, persistence, and flexible schema for session state management.

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

✓

Amazon DynamoDB

Amazon DynamoDB is the best choice for storing conversation history because it is a fully managed NoSQL key-value and document database that provides single-digit millisecond latency at any scale. It supports flexible schema, which is ideal for storing variable-length chat sessions, and its Time to Live (TTL) feature can automatically expire old conversations to manage storage costs. DynamoDB also integrates natively with AWS Lambda and Amazon Bedrock for real-time retrieval and update of context across sessions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Amazon S3

    Why it's wrong here

    S3 is object storage for files, not optimized for rapid read/write of session data.

  • ✓

    Amazon DynamoDB

    Why this is correct

    Amazon DynamoDB stores conversation history as session-keyed items, giving the chatbot low-latency retrieval of prior turns across sessions. Its schema-flexible, key-value design satisfies the persistence requirement without a relational model, and it scales with request volume, unlike stateless compute or storage-only services.

  • ✗

    Amazon RDS

    Why it's wrong here

    RDS is relational, but overkill and slower for simple session storage.

  • ✗

    Amazon ElastiCache

    Why it's wrong here

    ElastiCache provides in-memory caching with eviction policies and no durable persistence guarantees, so conversation history can be lost between sessions. It is tempting because it delivers the low-latency access a chatbot needs, and would be correct for caching recent turns, not durable cross-session storage.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This AIF-C01 question is part of Courseiva's 862-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 →

How Courseiva writes practice questions · Editorial policy

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.