Timedora
Free Online Flashcard Deck

4 Amazon DynamoDB in Practice Free Online FlashCards

Study 4 Amazon DynamoDB in Practice with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What should guide a DynamoDB table design?

Back

List the application’s reads and writes first, then choose keys and indexes that make those access patterns efficient direct lookups or queries.

02
Front

What do the partition key and sort key do?

Back

The partition key locates an item collection. Items sharing it can be queried together, and the sort key orders items within that collection.

03
Front

Why add an order ID after a timestamp in a sort key?

Back

Consistently formatted ISO 8601 date strings sort chronologically as strings. Adding an order ID makes sort keys distinct when timestamps match.

04
Front

How do a GSI and an LSI differ in their keys?

Back

A GSI can use a different partition key and sort key from the table. An LSI keeps the table’s partition key but uses an alternate sort key.

05
Front

When must an LSI be specified?

Back

An LSI must be specified when the table is created; a GSI can be added later.

06
Front

Why should DynamoDB indexes be added selectively?

Back

Indexes add storage and write work because indexed items maintain their index entries. Project only the attributes needed for queries, and add indexes for real access patterns.

07
Front

How can a GSI be made sparse?

Back

A GSI is sparse when only items with its index key attributes are included. Omitting those attributes can make the index query only a desired subset.

08
Front

How do GetItem and Query differ?

Back

GetItem retrieves an item by its full primary key. Query matches one partition-key value and can also constrain the sort key.

09
Front

Why doesn’t a filter expression make a broad query efficient?

Back

A filter expression removes items after DynamoDB reads them, so it does not make a broad query efficient. Put frequently used selection criteria in keys when practical.

10
Front

How do you continue a paginated Query or Scan?

Back

A Query or Scan response is limited to 1 MB per request. If LastEvaluatedKey is present, pass it as ExclusiveStartKey to continue.

11
Front

Can a page return no items and still require pagination?

Back

Yes. A filter can remove every returned item on a page while LastEvaluatedKey still indicates that more data remains.

12
Front

What makes Scan costly for routine lookups?

Back

Scan reads every item in a table or index before applying any filter. It suits small datasets or genuine full traversals, but is usually a poor substitute for a queryable design.