Submitted by heartin on Sat, 12/23/2017 - 00:25
Following is the list of DynamoDB APIs:
-
CreateTable
- Creates a table and specifies the primary index.
-
UpdateTable
- Updates the provisioned throughput values for table.
-
DeleteTable
- Deletes a table.
-
DescribeTable
- Returns table size, status, and index information.
-
ListTables
- Returns a list of all tables associated with the current account and endpoint.
-
PutItem
- Creates a new item, or replaces an old item with a new item (including all the attributes).
- Can also use conditional operators to replace an item only if its attribute values match certain conditions, or to insert a new item only if that item doesn’t already exist.
-
BatchWriteItem
-
Inserts, replaces, and deletes multiple items across multiple tables in a single request,
- but not as a single transaction.
- Supports batches of up to 25 items to Put or Delete, with a maximum total request size of 16 MB.
-
Inserts, replaces, and deletes multiple items across multiple tables in a single request,
-
UpdateItem
- Edits an existing item's attributes.
- Can also use conditional operators.
-
DeleteItem
- Deletes a single item in a table by primary key.
- Can also use conditional operators.
-
GetItem
- Returns a set of Attributes for an item that matches the primary key.
- Provides an eventually consistent read by default. Can also use ConsistentRead.
-
BatchGetItem
- Returns the attributes for multiple items from multiple tables using their primary keys.
- A single response has a size limit of 16 MB and returns a maximum of 100 items.
- Supports both strong and eventual consistency.
-
Query
- Gets one or more items using the table primary key, or from a secondary index using the index key.
- Can narrow the scope of the query on a table by using comparison operators or expressions.
- Can also filter the query results using filters on non-key attributes.
- Supports both strong and eventual consistency.
- A single response has a size limit of 1 MB.
-
Scan
- Gets all items and attributes by performing a full scan across the table or a secondary index.
- Can limit the return set by specifying filters against one or more attributes.
-
Supports both strong and eventual consistency.
- Setting the ConsistentRead parameter to true for strong consistency.
- Once the aggregate size of items scanned for a request exceeds a 1 MB limit, the given request will terminate and fetched results will be returned along with a LastEvaluatedKey (to continue the scan in a subsequent operation).
Important Notes (Exam Tips)
- The UpdateTable API call does not use capacity.
- When using the GetItem, BatchGetItem, Query, or Scan APIs, you can define a ProjectionExpression to determine which attributes should be retrieved from the table. Those attributes can include scalars, sets, or elements of a JSON document.
Open Question
- List all APIs that does not use capacity.
- heartin's blog
- Log in or register to post comments
Recent comments