Dyanmo db master

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/113

encourage image

There's no tags or description

Looks like no tags are added yet.

114 Terms

1
New cards

DynamoDB

Managed NoSQL database optimized for predictable key-based access at scale.

2
New cards

Table

Collection of DynamoDB items sharing a defined primary-key schema.

3
New cards

Item

Record containing a primary key and flexible named attributes.

4
New cards

Attribute

Named field inside a DynamoDB item, such as email.

5
New cards

Access pattern

Specific read or write an application must perform efficiently.

6
New cards

Partition key

Key value hashed to determine item placement and query grouping.

7
New cards

Sort key

Optional key distinguishing and ordering items with one partition-key value.

8
New cards

Simple primary key

Primary key made of only a partition-key attribute.

9
New cards

Composite primary key

Primary key made of a partition key and sort key.

10
New cards

Key design rule

Start with required queries, scale, and consistency before selecting keys.

11
New cards

GetItem

Fetches exactly one item using its complete primary key.

12
New cards

Query

Retrieves items sharing one partition-key value, optionally constrained by sort key.

13
New cards

Scan

Reads across items in a table or index; inefficient for large lookups.

14
New cards

KeyConditionExpression

Query's partition-key equality and optional sort-key condition.

15
New cards

FilterExpression

Removes results after reading; does not eliminate consumed read capacity.

16
New cards

ProjectionExpression

Limits attributes returned, usually without reducing read capacity consumed.

17
New cards

begins_with

Sort-key condition selecting values with a specified prefix.

18
New cards

BETWEEN

Sort-key condition selecting values within an inclusive range.

19
New cards

LastEvaluatedKey

Pagination cursor indicating that additional results may exist.

20
New cards

ExclusiveStartKey

Cursor passed into the next Query or Scan request.

21
New cards

Query 1 MB limit

One Query page processes up to 1 MB before continuation.

22
New cards

Global secondary index

Alternative partition/sort-key access path over table data.

23
New cards

GSI read consistency

Only eventually consistent reads are available on a GSI.

24
New cards

Local secondary index

Alternative sort key using the table's same partition key.

25
New cards

Sparse GSI

Items lacking required index key attributes are absent from that index.

26
New cards

Email lookup

Use an email-keyed GSI rather than repeatedly scanning users.

27
New cards

GSI uniqueness

A GSI does not enforce unique values like a SQL unique index.

28
New cards

Eventually consistent read

May briefly return an older value after a completed write.

29
New cards

Strongly consistent read

Returns the latest committed item value on a supported table or LSI.

30
New cards

Read capacity unit

Supports one strong read per second for up to 4 KB.

31
New cards

Eventually consistent RCU

Supports two eventual reads per second for up to 4 KB each.

32
New cards

Write capacity unit

Supports one standard write per second for up to 1 KB.

33
New cards

On-demand capacity

Pay-per-request mode, still subject to table and partition limits.

34
New cards

Provisioned capacity

Read and write throughput configured in advance, with optional autoscaling.

35
New cards

Hot partition

One partition or key range receives more traffic than it can serve.

36
New cards

Hot key

One partition-key value receives disproportionate request volume.

37
New cards

Throttling

DynamoDB rejects operations due to capacity or throughput restrictions.

38
New cards

Exponential backoff

Retry transient failures with progressively longer waiting intervals.

39
New cards

Retry jitter

Randomized delay that prevents synchronized retry storms.

40
New cards

Backpressure

Limit producers or concurrent requests to protect a busy downstream service.

41
New cards

Lambda reserved concurrency

Upper bound on simultaneous executions of a Lambda function.

42
New cards

PutItem

Creates or replaces an entire item, optionally with a condition.

43
New cards

UpdateItem

Modifies chosen attributes with optional atomic conditions.

44
New cards

DeleteItem

Removes an item, optionally conditioned on expected state.

45
New cards

ConditionExpression

Checks a condition atomically before allowing a write.

46
New cards

attribute_not_exists

Write condition commonly used to prevent overwriting an existing item.

47
New cards

Optimistic locking

Write only when a stored version still matches the expected value.

48
New cards

ConditionalCheckFailed

Condition was false; inspect current data before deciding to retry.

49
New cards

Atomic counter

UpdateItem can increment a numeric attribute safely during concurrent requests.

50
New cards

Idempotency

Repeating the same logical request does not duplicate its side effect.

51
New cards

Idempotency key

Stable request identifier used to recognize and deduplicate retries.

52
New cards

Ambiguous timeout

Client does not know whether a timed-out write actually succeeded.

53
New cards

TransactWriteItems

Atomically commits or rejects coordinated writes across eligible items.

54
New cards

BatchWriteItem

Batches writes but does not guarantee all-or-nothing transaction behavior.

55
New cards

UnprocessedItems

Batch requests not handled; retry those items with backoff.

56
New cards

DynamoDB Streams

Change-event records for inserts, modifications, and deletes.

57
New cards

TTL

Expires items for asynchronous deletion, not exactly at the expiry time.

58
New cards

PITR

Point-in-time recovery of a table within its configured backup window.

59
New cards

PITR restore

Creates a new table requiring validation and controlled cutover.

60
New cards

Backup versus replica

Backups support recovery; replication can also propagate accidental corruption.

61
New cards

RPO

Maximum acceptable data-loss interval measured backward from the incident.

62
New cards

RTO

Maximum acceptable downtime before service must be restored.

63
New cards

High-cardinality key

A partition key with many distinct values helps spread requests more evenly.

64
New cards

Poor partition key

One shared value for heavy traffic can concentrate requests and cause throttling.

65
New cards

Composite sort-key pattern

Use structured prefixes like INVOICE#2026-10-28 to group related records.

66
New cards

One-to-many relationship

Store related items under one partition key with distinct sort keys.

67
New cards

Many-to-many relationship

Store relationship items supporting queries from both sides, often using indexes.

68
New cards

Single-table design

Store multiple entity types together when their access patterns support it.

69
New cards

Multiple-table design

Separate entities when boundaries, throughput, permissions, or lifecycle needs justify it.

70
New cards

Denormalization

Duplicate selected data to support efficient queries without expensive joins.

71
New cards

DynamoDB joins

DynamoDB does not perform relational joins; model reads in advance or join in code.

72
New cards

DynamoDB item limit

An individual DynamoDB item cannot exceed 400 KB.

73
New cards

Large document pattern

Store large blobs in S3 and keep metadata and object references in DynamoDB.

74
New cards

Sort-key time ordering

Use sortable date strings or timestamps to query records by time.

75
New cards

Invoice ID lookup

Use invoice_id as the primary key or create an index supporting exact retrieval.

76
New cards

Vendor invoices by date

Query vendor_id partition with date-ordered sort keys, or use a matching GSI.

77
New cards

Pending approval lookup

Use a status-oriented sparse GSI, while checking for hot-key concentration.

78
New cards

Approved invoice race

Condition the update on current status or expected version before approving.

79
New cards

Avoid duplicate payment

Use a stable idempotency key and durable conditional write before side effects.

80
New cards

Cross-table consistency

Use TransactWriteItems when multiple item changes must succeed or fail together.

81
New cards

TransactWriteItems token

ClientRequestToken protects identical transaction retries within its ten-minute window.

82
New cards

Conditional write failure

Re-read the current item, decide whether to retry, reject, or report conflict.

83
New cards

Write sharding

Spread a hot logical key across multiple physical keys to distribute write traffic.

84
New cards

Read sharding tradeoff

Sharding distributes writes but requires querying and combining multiple key groups.

85
New cards

Adaptive capacity

DynamoDB may redistribute throughput, but cannot eliminate all hot-key limits.

86
New cards

GSI backfill

Adding a GSI to an existing table requires populating it from existing items.

87
New cards

GSI lag

An index can briefly show stale results after a base-table write.

88
New cards

LSI creation

Local secondary indexes must be created with the table, not added afterward.

89
New cards

LSI strong reads

Local secondary indexes can support strongly consistent reads when requested.

90
New cards

Index projection tradeoff

Project frequently needed fields while balancing index size and write cost.

91
New cards

Scans in production

Avoid frequent broad scans on large tables; monitor read cost and latency.

92
New cards

Parallel Scan

Splits a large scan into segments; increases throughput pressure, not lookup efficiency.

93
New cards

Money values in Python

Use Decimal or integer minor units rather than binary floating-point rounding.

94
New cards

DynamoDB boto3 resource

Python SDK high-level interface for Table.get_item, query, and update_item.

95
New cards

DynamoDB Number type

Stores numeric values as decimal representations, not binary float attributes.

96
New cards

Conditional write audit

Log request ID and outcome without exposing sensitive item contents.

97
New cards

DynamoDB encryption at rest

DynamoDB encrypts stored table data transparently, with optional customer-managed KMS key.

98
New cards

DynamoDB table IAM

Restrict GetItem and UpdateItem to intended table or index resource ARNs.

99
New cards

DynamoDB CloudWatch metrics

Monitor consumed capacity, throttled requests, latency, and system errors.

100
New cards

DynamoDB CloudTrail audit

Inspect management events for who changed table configuration or security settings.