Courseiva

AIF-C01 Applications of Foundation Models Practice Question

An e-commerce company is using a foundation model to generate product descriptions. They want to reduce costs by caching frequently requested descriptions. Which AWS service should they use to implement a cache?

⚠ Common exam trap

The AIF-C01 exam often tests the distinction between caching at the application layer (ElastiCache) versus caching at the content delivery layer (CloudFront), leading candidates to mistakenly choose CloudFront for any caching need.

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 ElastiCache

Amazon ElastiCache is the correct choice because it provides an in-memory caching layer (using Redis or Memcached) that can store frequently requested product descriptions, reducing the need to invoke the foundation model repeatedly. This directly lowers inference costs and latency by serving cached responses instead of generating new ones each time.

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 CloudFront

    Why it's wrong here

    CloudFront caches HTTP responses at edge locations, not arbitrary application-level model outputs keyed by prompt, so it cannot serve this caching pattern. It tempts because it reduces origin load, but the scenario needs a purpose-built cache such as ElastiCache rather than a CDN.

  • ✗

    Amazon DynamoDB

    Why it's wrong here

    DynamoDB is a persistent key-value database, not an in-memory cache, so reads still incur storage and capacity costs rather than sub-millisecond cached retrieval. It tempts as a fast NoSQL store, but ElastiCache provides the purpose-built caching layer this cost-reduction scenario requires.

  • ✗

    Amazon S3

    Why it's wrong here

    Amazon S3 provides object storage, not an in-memory cache with sub-millisecond retrieval; it cannot serve repeated description lookups at cache speed. It is tempting because S3 already stores the model artefacts and datasets, and would be correct for durable storage of generated descriptions rather than for caching them.

  • ✓

    Amazon ElastiCache

    Why this is correct

    Amazon ElastiCache provides an in-memory cache, delivering sub-millisecond latency for repeatedly requested product descriptions, which directly satisfies the stem's cost-reduction constraint by offloading duplicate foundation model inferences. Unlike persistent stores, its volatile, RAM-based architecture suits transient cached text, avoiding repeated compute charges.

About these practice questions

One of 862 original AIF-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.