AWS Certified Cloud Practitioner (CLF-C02) / Cloud Technology and Services

Key-value, document, graph and memory-based data

Lesson 22 of 42. Open to read. No account needed.

Begin With the Question the Application Asks

A database choice starts with access patterns: what will the application read, how will it find the record, and what must happen when the record changes? The word "data" is not enough to choose a service. A basket lookup, a fraud investigation and a repeated product-page request can involve the same customer but need different retrieval methods.

A key identifies an item directly. A document groups related attributes into a nested record. A graph represents entities and their connections. A cache keeps frequently needed information close to the application in a form that is quick to read. These are useful distinctions, not a rule that each application needs four databases.

Match the Model to the Work

NeedService to considerImportant boundary
Retrieve a basket using its customer identifierAmazon DynamoDBDesign keys and indexes around known access patterns
Store and query nested records using a supported MongoDB-compatible interfaceAmazon DocumentDBCompatibility needs checking against the application's features
Follow connected people, accounts or transactions through several relationshipsAmazon NeptuneA relationship traversal differs from a single-record lookup
Reduce repeated reads of information held elsewhereAmazon ElastiCacheDecide how cached values become fresh and how misses are handled

DynamoDB supports key-value and document data. It is not a relational database with a SQL JOIN operator, but "NoSQL" does not mean it cannot support transactions. A design that needs efficient lookups should identify its keys before it grows. Storing every item without considering how it will be retrieved does not become a good design merely because the service is managed.

DocumentDB provides a MongoDB-compatible document database. That description does not mean AWS runs an identical copy of every MongoDB feature. A migration needs an application-compatibility check. The document model suits nested records, but the presence of JSON alone does not settle the choice: other services can also store documents.

Neptune is a graph database. If an investigation asks how two accounts are connected through shared devices and other accounts, the relationships are part of the query, not just descriptive columns. Graph models make those connections explicit. They are not a reason to move an ordinary primary-key lookup out of a suitable existing store.

ElastiCache provides managed in-memory storage and caching, with Valkey, Redis OSS and Memcached engine options. Available capabilities depend on the engine and configuration. Do not generalize that every cache is durable or that every cache loses all data on restart. For a conventional cache beside a database, the application still needs a plan for misses, expiration and changes.

Walk Through a Shopping Application

Imagine an online shop with three distinct requirements.

First, a signed-in customer opens a saved basket. The request includes the customer identifier. A key-based design can find that customer's basket directly. The application must still handle concurrent updates and decide how long abandoned baskets remain useful.

Second, the product page repeatedly reads a description that changes infrequently. A cache can reduce repeated work against the underlying store. On a miss, the application reads the authoritative value and can populate the cache. When an editor changes the description, expiration or explicit invalidation prevents the old text from remaining indefinitely. A cache is not automatically the record of truth.

Third, the fraud team follows links among accounts and devices. That question is about paths through relationships. A graph is worth considering when those traversals are central to the workload.

There is no requirement to deploy all three immediately. Extra services create additional access controls, operational work and consistency decisions. Use the requirement to justify a service rather than treating a product list as a shopping list.

Keep Responsibility in View

Managed infrastructure removes some operating work, not the need to protect records. The customer chooses permissions, data retention and application behaviour. Encryption alone does not prevent an authorized but incorrect application request.

Performance claims also need context. A poorly chosen access pattern can remain expensive or inefficient on a managed service. At this level, the important skill is matching the model and identifying the missing design question, not memorizing benchmark numbers.

Check Your Understanding

A fraud analyst repeatedly asks which accounts are connected to a suspicious account through shared devices, including indirect connections. Which choice best matches that central requirement?

A. Neptune, traversing relationships between entities

B. ElastiCache, caching frequently requested results

C. DynamoDB, looking up items by their primary keys

D. DocumentDB, querying fields within nested documents

Answer and Reasoning

A is the best match because the analyst's main operation is traversing connections, including indirect ones. B can speed repeated reads of a result but does not define how to discover those relationship paths. C addresses direct item retrieval; following several links would require additional access design and application work. D addresses queries within documents rather than making connected entities the central model. The other services could participate in a larger solution, but Neptune most directly fits the stated query.

References

Service references checked on 25 September 2026. No AWS resources are required for this lesson.

Study this course with an account

Course access adds revision notes, the Exam Cheat Sheet, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

See course access

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy