DynamoDB APIs Overview

Following is the list of DynamoDB APIs:

  1. CreateTable
    1. Creates a table and specifies the primary index.
  2. UpdateTable
    1. Updates the provisioned throughput values for table.
  3. DeleteTable
    1. Deletes a table.
  4. DescribeTable
    1. Returns table size, status, and index information.
  5. ListTables
    1. Returns a list of all tables associated with the current account and endpoint.
  6. PutItem
    1. Creates a new item, or replaces an old item with a new item (including all the attributes).
    2. 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.
  7. BatchWriteItem
    1. Inserts, replaces, and deletes multiple items across multiple tables in a single request,
      1. but not as a single transaction.
    2. Supports batches of up to 25 items to Put or Delete, with a maximum total request size of 16 MB.
  8. UpdateItem
    1. Edits an existing item's attributes.
    2. Can also use conditional operators.
  9. DeleteItem
    1. Deletes a single item in a table by primary key.
    2. Can also use conditional operators.
  10. GetItem
    1. Returns a set of Attributes for an item that matches the primary key.
    2. Provides an eventually consistent read by default. Can also use ConsistentRead.
  11. BatchGetItem
    1. Returns the attributes for multiple items from multiple tables using their primary keys.
    2. A single response has a size limit of 16 MB and returns a maximum of 100 items.
    3. Supports both strong and eventual consistency.
  12. Query
    1. Gets one or more items using the table primary key, or from a secondary index using the index key.
    2. Can narrow the scope of the query on a table by using comparison operators or expressions.
    3. Can also filter the query results using filters on non-key attributes.
    4. Supports both strong and eventual consistency.
    5. A single response has a size limit of 1 MB.
  13. Scan
    1. Gets all items and attributes by performing a full scan across the table or a secondary index.
    2. Can limit the return set by specifying filters against one or more attributes.
    3. Supports both strong and eventual consistency.
      1. Setting the ConsistentRead parameter to true for strong consistency. 
    4. 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)

  1. The UpdateTable API call does not use capacity. 
  2. 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

  1. List all APIs that does not use capacity.

Learn Serverless from Serverless Programming Cookbook

Contact

Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.

About

CloudMaterials is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Microsoft Azure and Amazon Web Services (AWS).

I like to write and I try to document what I learn to share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream