Podcast
Questions and Answers
What is the maximum size of an item in DynamoDB?
What is the maximum size of an item in DynamoDB?
What type of database is DynamoDB?
What type of database is DynamoDB?
What is the benefit of using DynamoDB?
What is the benefit of using DynamoDB?
How many geographically distributed replicas of each table are stored in DynamoDB?
How many geographically distributed replicas of each table are stored in DynamoDB?
Signup and view all the answers
What is the purpose of IAM condition in DynamoDB?
What is the purpose of IAM condition in DynamoDB?
Signup and view all the answers
What is the storage type used in DynamoDB?
What is the storage type used in DynamoDB?
Signup and view all the answers
What happens to the main table if writes are throttled on the GSI?
What happens to the main table if writes are throttled on the GSI?
Signup and view all the answers
What is the primary benefit of using DynamoDB Accelerator (DAX)?
What is the primary benefit of using DynamoDB Accelerator (DAX)?
Signup and view all the answers
What is the purpose of Read Capacity Units (RCUs) and Write Capacity Units (WCUs) in DynamoDB?
What is the purpose of Read Capacity Units (RCUs) and Write Capacity Units (WCUs) in DynamoDB?
Signup and view all the answers
What is the key difference between DynamoDB On-Demand Capacity and Provisioned Capacity?
What is the key difference between DynamoDB On-Demand Capacity and Provisioned Capacity?
Signup and view all the answers
What is the purpose of DynamoDB's Time To Live (TTL) feature?
What is the purpose of DynamoDB's Time To Live (TTL) feature?
Signup and view all the answers
What happens when the configured RCU or WCU are exceeded in DynamoDB?
What happens when the configured RCU or WCU are exceeded in DynamoDB?
Signup and view all the answers
What is the purpose of the 'ProjectionExpression' parameter in the Scan API?
What is the purpose of the 'ProjectionExpression' parameter in the Scan API?
Signup and view all the answers
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB?
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB?
Signup and view all the answers
What is the purpose of DynamoDB transactions?
What is the purpose of DynamoDB transactions?
Signup and view all the answers
Which of the following is NOT a valid use case for DynamoDB Transactions?
Which of the following is NOT a valid use case for DynamoDB Transactions?
Signup and view all the answers
What is the primary function of the 'FilterExpression' parameter in the Scan API?
What is the primary function of the 'FilterExpression' parameter in the Scan API?
Signup and view all the answers
What is a 'Partition' in DynamoDB, and how does it affect performance?
What is a 'Partition' in DynamoDB, and how does it affect performance?
Signup and view all the answers
What is required to obtain a strongly consistent read in a query operation?
What is required to obtain a strongly consistent read in a query operation?
Signup and view all the answers
What is the primary difference between a Scan and a Query operation in DynamoDB?
What is the primary difference between a Scan and a Query operation in DynamoDB?
Signup and view all the answers
What is a characteristic of a Local Secondary Index (LSI)?
What is a characteristic of a Local Secondary Index (LSI)?
Signup and view all the answers
Which parameter must be set to reverse the order of query results?
Which parameter must be set to reverse the order of query results?
Signup and view all the answers
What is the advantage of using a Global Secondary Index (GSI)?
What is the advantage of using a Global Secondary Index (GSI)?
Signup and view all the answers
What is one optimization technique to improve the performance of query or scan operations?
What is one optimization technique to improve the performance of query or scan operations?
Signup and view all the answers
What is the primary purpose of enabling TTL in DynamoDB?
What is the primary purpose of enabling TTL in DynamoDB?
Signup and view all the answers
Which feature allows applications to access a log of item-level modifications in DynamoDB?
Which feature allows applications to access a log of item-level modifications in DynamoDB?
Signup and view all the answers
What happens to deleted items in DynamoDB after TTL expiration?
What happens to deleted items in DynamoDB after TTL expiration?
Signup and view all the answers
When using exponential backoff, what do the retry intervals do?
When using exponential backoff, what do the retry intervals do?
Signup and view all the answers
Which API operations can be used to enable or modify a DynamoDB Stream?
Which API operations can be used to enable or modify a DynamoDB Stream?
Signup and view all the answers
What is a recommended practice when working with large objects in DynamoDB?
What is a recommended practice when working with large objects in DynamoDB?
Signup and view all the answers
What must be true for strongly consistent reads and writes in DynamoDB global tables?
What must be true for strongly consistent reads and writes in DynamoDB global tables?
Signup and view all the answers
What feature of DynamoDB global tables allows for low-latency data access for globally dispersed users?
What feature of DynamoDB global tables allows for low-latency data access for globally dispersed users?
Signup and view all the answers
What happens if the provisioned capacity for a DynamoDB table becomes zero?
What happens if the provisioned capacity for a DynamoDB table becomes zero?
Signup and view all the answers
Which of the following is NOT a benefit of using DynamoDB over RDS?
Which of the following is NOT a benefit of using DynamoDB over RDS?
Signup and view all the answers
What should be identical for proper replication in DynamoDB global tables?
What should be identical for proper replication in DynamoDB global tables?
Signup and view all the answers
DynamoDB global tables are ideal for which type of applications?
DynamoDB global tables are ideal for which type of applications?
Signup and view all the answers
What type of reads does DynamoDB support in applications that only read data from one region?
What type of reads does DynamoDB support in applications that only read data from one region?
Signup and view all the answers
In a scenario where DynamoDB cannot be used, what is the suggested alternative?
In a scenario where DynamoDB cannot be used, what is the suggested alternative?
Signup and view all the answers
Which of the following statements about DynamoDB Global Tables is correct?
Which of the following statements about DynamoDB Global Tables is correct?
Signup and view all the answers
What should you consider if using RDS to ensure data protection against failures?
What should you consider if using RDS to ensure data protection against failures?
Signup and view all the answers
What is the primary reason for specifying the same or more RCU/WCU in a GSI as in the main table?
What is the primary reason for specifying the same or more RCU/WCU in a GSI as in the main table?
Signup and view all the answers
What is the benefit of using DynamoDB Provisioned Capacity with Auto Scaling?
What is the benefit of using DynamoDB Provisioned Capacity with Auto Scaling?
Signup and view all the answers
What is the purpose of DynamoDB Accelerator (DAX)?
What is the purpose of DynamoDB Accelerator (DAX)?
Signup and view all the answers
What happens when the configured RCU or WCU are exceeded in DynamoDB?
What happens when the configured RCU or WCU are exceeded in DynamoDB?
Signup and view all the answers
What is the purpose of DynamoDB Time To Live (TTL)?
What is the purpose of DynamoDB Time To Live (TTL)?
Signup and view all the answers
What is the primary difference between DynamoDB On-Demand Capacity and Provisioned Capacity?
What is the primary difference between DynamoDB On-Demand Capacity and Provisioned Capacity?
Signup and view all the answers
What is one key benefit of using a Local Secondary Index (LSI)?
What is one key benefit of using a Local Secondary Index (LSI)?
Signup and view all the answers
How does a Global Secondary Index (GSI) differ from a Local Secondary Index (LSI)?
How does a Global Secondary Index (GSI) differ from a Local Secondary Index (LSI)?
Signup and view all the answers
What does a scan operation do in comparison to a query operation?
What does a scan operation do in comparison to a query operation?
Signup and view all the answers
What parameter must be set for a query to return a strongly consistent read?
What parameter must be set for a query to return a strongly consistent read?
Signup and view all the answers
Which option describes the proper use of the ProjectionExpression parameter in a query?
Which option describes the proper use of the ProjectionExpression parameter in a query?
Signup and view all the answers
What is a recommended approach to improve the efficiency of scan operations in DynamoDB?
What is a recommended approach to improve the efficiency of scan operations in DynamoDB?
Signup and view all the answers
What is the main function of partitions in DynamoDB?
What is the main function of partitions in DynamoDB?
Signup and view all the answers
Which scenario could lead to throttled requests on a single partition key value?
Which scenario could lead to throttled requests on a single partition key value?
Signup and view all the answers
What parameter must be set to perform a strongly consistent read in DynamoDB operations?
What parameter must be set to perform a strongly consistent read in DynamoDB operations?
Signup and view all the answers
What is a key aspect of the transaction write API in DynamoDB?
What is a key aspect of the transaction write API in DynamoDB?
Signup and view all the answers
Which operation is known to consume a significant amount of Read Capacity Units in DynamoDB?
Which operation is known to consume a significant amount of Read Capacity Units in DynamoDB?
Signup and view all the answers
What is the benefit of using eventually consistent reads by default in DynamoDB?
What is the benefit of using eventually consistent reads by default in DynamoDB?
Signup and view all the answers
What is the primary way that DynamoDB ensures high availability and data durability?
What is the primary way that DynamoDB ensures high availability and data durability?
Signup and view all the answers
Which of the following accurately describes the nature of data storage in DynamoDB?
Which of the following accurately describes the nature of data storage in DynamoDB?
Signup and view all the answers
Which statement is true regarding DynamoDB's ability to manage access control?
Which statement is true regarding DynamoDB's ability to manage access control?
Signup and view all the answers
What is a key limitation concerning the size of items stored in DynamoDB?
What is a key limitation concerning the size of items stored in DynamoDB?
Signup and view all the answers
Which feature allows for the automatic scaling of DynamoDB without downtime?
Which feature allows for the automatic scaling of DynamoDB without downtime?
Signup and view all the answers
In which case is DynamoDB considered a non-ideal choice?
In which case is DynamoDB considered a non-ideal choice?
Signup and view all the answers
What is the primary purpose of using Exponential Backoff in AWS SDKs?
What is the primary purpose of using Exponential Backoff in AWS SDKs?
Signup and view all the answers
Which statement about DynamoDB Streams is accurate?
Which statement about DynamoDB Streams is accurate?
Signup and view all the answers
What action is taken by DynamoDB when an item is expired based on TTL settings?
What action is taken by DynamoDB when an item is expired based on TTL settings?
Signup and view all the answers
What is a recommended best practice when managing large objects in DynamoDB?
What is a recommended best practice when managing large objects in DynamoDB?
Signup and view all the answers
What does optimistic locking prevent in DynamoDB?
What does optimistic locking prevent in DynamoDB?
Signup and view all the answers
What occurs when a request is throttled in DynamoDB?
What occurs when a request is throttled in DynamoDB?
Signup and view all the answers
What condition must be met for strongly consistent reads in DynamoDB global tables?
What condition must be met for strongly consistent reads in DynamoDB global tables?
Signup and view all the answers
Which of the following statements is true about replica tables in DynamoDB global tables?
Which of the following statements is true about replica tables in DynamoDB global tables?
Signup and view all the answers
What happens to DynamoDB auto scaling when the consumed capacity of a table becomes zero?
What happens to DynamoDB auto scaling when the consumed capacity of a table becomes zero?
Signup and view all the answers
When using DynamoDB, which scenario requires careful consideration regarding high availability?
When using DynamoDB, which scenario requires careful consideration regarding high availability?
Signup and view all the answers
What is a primary benefit of using global tables for massively scaled applications?
What is a primary benefit of using global tables for massively scaled applications?
Signup and view all the answers
Which statement about Amazon DynamoDB's regional replication is accurate?
Which statement about Amazon DynamoDB's regional replication is accurate?
Signup and view all the answers
How does DynamoDB auto scaling respond to sudden increases in traffic?
How does DynamoDB auto scaling respond to sudden increases in traffic?
Signup and view all the answers
If an application uses eventually consistent reads with DynamoDB, what implications does it have for data location?
If an application uses eventually consistent reads with DynamoDB, what implications does it have for data location?
Signup and view all the answers
What is one reason to prefer DynamoDB over RDS for high availability solutions?
What is one reason to prefer DynamoDB over RDS for high availability solutions?
Signup and view all the answers
Which of the following features is NOT available in DynamoDB global tables?
Which of the following features is NOT available in DynamoDB global tables?
Signup and view all the answers
What is the primary benefit of using a Global Secondary Index (GSI) in DynamoDB?
What is the primary benefit of using a Global Secondary Index (GSI) in DynamoDB?
Signup and view all the answers
What happens when a Scan operation is performed on a large table in DynamoDB?
What happens when a Scan operation is performed on a large table in DynamoDB?
Signup and view all the answers
What is the purpose of setting the ConsistentRead parameter to true in a Scan operation?
What is the purpose of setting the ConsistentRead parameter to true in a Scan operation?
Signup and view all the answers
What is the key difference between a Local Secondary Index (LSI) and a Global Secondary Index (GSI) in DynamoDB?
What is the key difference between a Local Secondary Index (LSI) and a Global Secondary Index (GSI) in DynamoDB?
Signup and view all the answers
What is one optimization technique to improve the performance of query or scan operations in DynamoDB?
What is one optimization technique to improve the performance of query or scan operations in DynamoDB?
Signup and view all the answers
What is the primary difference between a Scan and a Query operation in DynamoDB?
What is the primary difference between a Scan and a Query operation in DynamoDB?
Signup and view all the answers
What happens when your DynamoDB access pattern exceeds the provisioned throughput for a single partition key value?
What happens when your DynamoDB access pattern exceeds the provisioned throughput for a single partition key value?
Signup and view all the answers
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB?
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB?
Signup and view all the answers
Which of the following is NOT a characteristic of DynamoDB Transactions?
Which of the following is NOT a characteristic of DynamoDB Transactions?
Signup and view all the answers
What is the primary purpose of the 'ProjectionExpression' parameter in the Scan API?
What is the primary purpose of the 'ProjectionExpression' parameter in the Scan API?
Signup and view all the answers
Which of the following statements about DynamoDB Global Tables is correct?
Which of the following statements about DynamoDB Global Tables is correct?
Signup and view all the answers
Which of the following operations can be used to enable or modify a DynamoDB Stream?
Which of the following operations can be used to enable or modify a DynamoDB Stream?
Signup and view all the answers
Which statement is TRUE regarding DynamoDB's Provisioned Capacity mode and Auto Scaling?
Which statement is TRUE regarding DynamoDB's Provisioned Capacity mode and Auto Scaling?
Signup and view all the answers
What is the primary purpose of DynamoDB Accelerator (DAX)?
What is the primary purpose of DynamoDB Accelerator (DAX)?
Signup and view all the answers
What is a key difference between DynamoDB's On-Demand Capacity and Provisioned Capacity modes?
What is a key difference between DynamoDB's On-Demand Capacity and Provisioned Capacity modes?
Signup and view all the answers
If the provisioned capacity for a DynamoDB table is exceeded, what error might you encounter?
If the provisioned capacity for a DynamoDB table is exceeded, what error might you encounter?
Signup and view all the answers
Which statement accurately describes the relationship between write capacity units (WCUs) and replicated write capacity units (rWCUs) in DynamoDB?
Which statement accurately describes the relationship between write capacity units (WCUs) and replicated write capacity units (rWCUs) in DynamoDB?
Signup and view all the answers
What is a common reason to encounter throttling in DynamoDB?
What is a common reason to encounter throttling in DynamoDB?
Signup and view all the answers
Which of the following is NOT a benefit of using Exponential Backoff for DynamoDB requests?
Which of the following is NOT a benefit of using Exponential Backoff for DynamoDB requests?
Signup and view all the answers
What is the primary function of a DynamoDB stream?
What is the primary function of a DynamoDB stream?
Signup and view all the answers
What happens to expired items in DynamoDB when TTL is enabled?
What happens to expired items in DynamoDB when TTL is enabled?
Signup and view all the answers
Which of the following is a recommended practice for handling large objects in DynamoDB?
Which of the following is a recommended practice for handling large objects in DynamoDB?
Signup and view all the answers
What is the primary benefit of using Optimistic Locking in DynamoDB?
What is the primary benefit of using Optimistic Locking in DynamoDB?
Signup and view all the answers
When using DynamoDB, how can you improve the performance of read operations for infrequently changed data?
When using DynamoDB, how can you improve the performance of read operations for infrequently changed data?
Signup and view all the answers
Which of the following describes the structure of items in DynamoDB?
Which of the following describes the structure of items in DynamoDB?
Signup and view all the answers
What is a characteristic of the data storage in DynamoDB?
What is a characteristic of the data storage in DynamoDB?
Signup and view all the answers
Which access control method is utilized by DynamoDB?
Which access control method is utilized by DynamoDB?
Signup and view all the answers
What happens to items larger than 400KB in DynamoDB?
What happens to items larger than 400KB in DynamoDB?
Signup and view all the answers
Which of the following describes the scaling capabilities of DynamoDB?
Which of the following describes the scaling capabilities of DynamoDB?
Signup and view all the answers
What benefit does the multi-AZ architecture of DynamoDB provide?
What benefit does the multi-AZ architecture of DynamoDB provide?
Signup and view all the answers
What is the primary purpose of DynamoDB global tables?
What is the primary purpose of DynamoDB global tables?
Signup and view all the answers
Which of the following statements about DynamoDB global tables is correct?
Which of the following statements about DynamoDB global tables is correct?
Signup and view all the answers
What is the primary benefit of using DynamoDB auto scaling for global tables?
What is the primary benefit of using DynamoDB auto scaling for global tables?
Signup and view all the answers
When considering high availability approaches for databases, why is DynamoDB preferred over RDS?
When considering high availability approaches for databases, why is DynamoDB preferred over RDS?
Signup and view all the answers
Which of the following is NOT a benefit of using DynamoDB over RDS?
Which of the following is NOT a benefit of using DynamoDB over RDS?
Signup and view all the answers
What must be true for strongly consistent reads and writes in DynamoDB global tables?
What must be true for strongly consistent reads and writes in DynamoDB global tables?
Signup and view all the answers
What is the primary reason for specifying the same or more RCU/WCU in a GSI as in the main table?
What is the primary reason for specifying the same or more RCU/WCU in a GSI as in the main table?
Signup and view all the answers
Which of the following statements about DynamoDB Auto Scaling is correct?
Which of the following statements about DynamoDB Auto Scaling is correct?
Signup and view all the answers
In a scenario where DynamoDB cannot be used, what is the suggested alternative for a highly available database?
In a scenario where DynamoDB cannot be used, what is the suggested alternative for a highly available database?
Signup and view all the answers
What should you consider if using RDS to ensure data protection against failures?
What should you consider if using RDS to ensure data protection against failures?
Signup and view all the answers
What is the key characteristic of a schema-less database like DynamoDB?
What is the key characteristic of a schema-less database like DynamoDB?
Signup and view all the answers
What is the benefit of using Multi-AZ redundancy in DynamoDB?
What is the benefit of using Multi-AZ redundancy in DynamoDB?
Signup and view all the answers
What is the primary use case for DynamoDB?
What is the primary use case for DynamoDB?
Signup and view all the answers
What is the purpose of IAM in DynamoDB?
What is the purpose of IAM in DynamoDB?
Signup and view all the answers
What is the benefit of using push-button scaling in DynamoDB?
What is the benefit of using push-button scaling in DynamoDB?
Signup and view all the answers
What is the data structure supported by DynamoDB?
What is the data structure supported by DynamoDB?
Signup and view all the answers
What is the main difference between a Scan and a Query operation in DynamoDB?
What is the main difference between a Scan and a Query operation in DynamoDB?
Signup and view all the answers
What is the purpose of an Index in DynamoDB?
What is the purpose of an Index in DynamoDB?
Signup and view all the answers
What is the advantage of using a Global Secondary Index (GSI) over a Local Secondary Index (LSI)?
What is the advantage of using a Global Secondary Index (GSI) over a Local Secondary Index (LSI)?
Signup and view all the answers
What is the effect of setting the ConsistentRead parameter to true in a Scan operation?
What is the effect of setting the ConsistentRead parameter to true in a Scan operation?
Signup and view all the answers
What is the purpose of setting a smaller page size in a Query or Scan operation?
What is the purpose of setting a smaller page size in a Query or Scan operation?
Signup and view all the answers
What is the characteristic of a Local Secondary Index (LSI)?
What is the characteristic of a Local Secondary Index (LSI)?
Signup and view all the answers
What happens when the provisioned throughput for a single partition key value exceeds 3000 RCU or 1000 WCU?
What happens when the provisioned throughput for a single partition key value exceeds 3000 RCU or 1000 WCU?
Signup and view all the answers
Which of the following statements about DynamoDB transactions is TRUE?
Which of the following statements about DynamoDB transactions is TRUE?
Signup and view all the answers
How can you improve the performance of a Scan operation on a large table?
How can you improve the performance of a Scan operation on a large table?
Signup and view all the answers
Which of the following is NOT a best practice for optimizing partition keys in DynamoDB?
Which of the following is NOT a best practice for optimizing partition keys in DynamoDB?
Signup and view all the answers
What is the primary purpose of the 'Segment' and 'TotalSegments' parameters in the Scan API?
What is the primary purpose of the 'Segment' and 'TotalSegments' parameters in the Scan API?
Signup and view all the answers
Which of the following statements about DynamoDB eventually consistent reads is TRUE?
Which of the following statements about DynamoDB eventually consistent reads is TRUE?
Signup and view all the answers
What is the primary purpose of the StreamViewType parameter in the DynamoDB Stream configuration?
What is the primary purpose of the StreamViewType parameter in the DynamoDB Stream configuration?
Signup and view all the answers
Which of the following scenarios is NOT a recommended best practice for optimizing DynamoDB performance?
Which of the following scenarios is NOT a recommended best practice for optimizing DynamoDB performance?
Signup and view all the answers
When a DynamoDB request is throttled due to exceeding provisioned capacity, what HTTP status code is returned?
When a DynamoDB request is throttled due to exceeding provisioned capacity, what HTTP status code is returned?
Signup and view all the answers
How does DynamoDB ensure data consistency during concurrent writes to the same item?
How does DynamoDB ensure data consistency during concurrent writes to the same item?
Signup and view all the answers
What is the primary function of DynamoDB streams?
What is the primary function of DynamoDB streams?
Signup and view all the answers
What is the primary purpose of Exponential Backoff when retrying failed requests in the AWS SDK?
What is the primary purpose of Exponential Backoff when retrying failed requests in the AWS SDK?
Signup and view all the answers
Which of the following statements about DynamoDB On-Demand Capacity is TRUE?
Which of the following statements about DynamoDB On-Demand Capacity is TRUE?
Signup and view all the answers
In DynamoDB, what happens when the configured RCU or WCU are exceeded?
In DynamoDB, what happens when the configured RCU or WCU are exceeded?
Signup and view all the answers
Which of the following is a key advantage of using DynamoDB Accelerator (DAX)?
Which of the following is a key advantage of using DynamoDB Accelerator (DAX)?
Signup and view all the answers
What is the primary purpose of DynamoDB Time To Live (TTL)?
What is the primary purpose of DynamoDB Time To Live (TTL)?
Signup and view all the answers
Which of the following statements about DynamoDB Global Secondary Indexes (GSIs) is TRUE?
Which of the following statements about DynamoDB Global Secondary Indexes (GSIs) is TRUE?
Signup and view all the answers
What is a major consideration when using provisioned capacity for a DynamoDB table with a Global Secondary Index (GSI)?
What is a major consideration when using provisioned capacity for a DynamoDB table with a Global Secondary Index (GSI)?
Signup and view all the answers
Which of the following is a benefit of using DynamoDB over RDS?
Which of the following is a benefit of using DynamoDB over RDS?
Signup and view all the answers
When using DynamoDB Global Tables, what happens to provisioned capacity when the workload decreases?
When using DynamoDB Global Tables, what happens to provisioned capacity when the workload decreases?
Signup and view all the answers
What is a recommended alternative to DynamoDB if it cannot be used for a database deployment?
What is a recommended alternative to DynamoDB if it cannot be used for a database deployment?
Signup and view all the answers
What is the primary purpose of specifying identical write capacity settings for each replica table and secondary index within a DynamoDB Global Table?
What is the primary purpose of specifying identical write capacity settings for each replica table and secondary index within a DynamoDB Global Table?
Signup and view all the answers
Which statement accurately describes the behavior of DynamoDB Global Tables with regards to strongly consistent reads?
Which statement accurately describes the behavior of DynamoDB Global Tables with regards to strongly consistent reads?
Signup and view all the answers
Which of the following is NOT a valid use case for DynamoDB Global Tables?
Which of the following is NOT a valid use case for DynamoDB Global Tables?
Signup and view all the answers
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB Global Tables?
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB Global Tables?
Signup and view all the answers
Which of the following is a recommended approach for achieving high availability (HA) when deploying a database on EC2 instances?
Which of the following is a recommended approach for achieving high availability (HA) when deploying a database on EC2 instances?
Signup and view all the answers
What is the primary benefit of using DynamoDB Auto Scaling for provisioned capacity?
What is the primary benefit of using DynamoDB Auto Scaling for provisioned capacity?
Signup and view all the answers
In a DynamoDB Global Table, what happens if the provisioned capacity for a table becomes zero?
In a DynamoDB Global Table, what happens if the provisioned capacity for a table becomes zero?
Signup and view all the answers
What is the primary purpose of using Exponential Backoff in DynamoDB?
What is the primary purpose of using Exponential Backoff in DynamoDB?
Signup and view all the answers
What happens to deleted items in DynamoDB after TTL expiration?
What happens to deleted items in DynamoDB after TTL expiration?
Signup and view all the answers
What is the benefit of using a dedicated endpoint for DynamoDB Streams?
What is the benefit of using a dedicated endpoint for DynamoDB Streams?
Signup and view all the answers
What is a recommended practice when working with large objects in DynamoDB?
What is a recommended practice when working with large objects in DynamoDB?
Signup and view all the answers
What is the primary purpose of Optimistic Locking in DynamoDB?
What is the primary purpose of Optimistic Locking in DynamoDB?
Signup and view all the answers
What is the primary benefit of using DynamoDB Accelerator (DAX)?
What is the primary benefit of using DynamoDB Accelerator (DAX)?
Signup and view all the answers
What is the primary benefit of using DynamoDB global tables for massively scaled applications?
What is the primary benefit of using DynamoDB global tables for massively scaled applications?
Signup and view all the answers
What is a requirement for strongly consistent reads in a DynamoDB global table?
What is a requirement for strongly consistent reads in a DynamoDB global table?
Signup and view all the answers
What happens if the provisioned capacity for a DynamoDB table becomes zero?
What happens if the provisioned capacity for a DynamoDB table becomes zero?
Signup and view all the answers
What is the primary reason for specifying the same write capacity settings for each replica table in a DynamoDB global table?
What is the primary reason for specifying the same write capacity settings for each replica table in a DynamoDB global table?
Signup and view all the answers
What is the benefit of using DynamoDB auto scaling for a table or a global secondary index?
What is the benefit of using DynamoDB auto scaling for a table or a global secondary index?
Signup and view all the answers
In a scenario where DynamoDB cannot be used, what is the suggested alternative?
In a scenario where DynamoDB cannot be used, what is the suggested alternative?
Signup and view all the answers
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB?
What is the primary difference between eventually consistent reads and strongly consistent reads in DynamoDB?
Signup and view all the answers
What should be identical for proper replication in DynamoDB global tables?
What should be identical for proper replication in DynamoDB global tables?
Signup and view all the answers
What is the purpose of frequent RDS snapshots?
What is the purpose of frequent RDS snapshots?
Signup and view all the answers
What is the primary benefit of using DynamoDB over RDS?
What is the primary benefit of using DynamoDB over RDS?
Signup and view all the answers
You are working on a DynamoDB table with a Global Secondary Index (GSI) that experiences frequent write throttling. What is the most likely cause of this throttling, and what is the recommended solution?
You are working on a DynamoDB table with a Global Secondary Index (GSI) that experiences frequent write throttling. What is the most likely cause of this throttling, and what is the recommended solution?
Signup and view all the answers
Your application uses DynamoDB's On-Demand Capacity mode and experiences a sudden surge in write requests. Which statement best describes the impact of this surge on your application and costs?
Your application uses DynamoDB's On-Demand Capacity mode and experiences a sudden surge in write requests. Which statement best describes the impact of this surge on your application and costs?
Signup and view all the answers
Which scenario would benefit the most from using DynamoDB Accelerator (DAX) for a DynamoDB table?
Which scenario would benefit the most from using DynamoDB Accelerator (DAX) for a DynamoDB table?
Signup and view all the answers
You are designing a DynamoDB table that will store frequently updated customer profiles, with a requirement for low latency reads for displaying customer information on a web application. Which DynamoDB feature would be most effective in improving the read performance for this use case?
You are designing a DynamoDB table that will store frequently updated customer profiles, with a requirement for low latency reads for displaying customer information on a web application. Which DynamoDB feature would be most effective in improving the read performance for this use case?
Signup and view all the answers
You have a DynamoDB table with a Global Secondary Index (GSI) that is experiencing write throttling. You have increased the provisioned write capacity units (WCUs) for the GSI to address this issue. What potential consequence should you be aware of regarding the main table?
You have a DynamoDB table with a Global Secondary Index (GSI) that is experiencing write throttling. You have increased the provisioned write capacity units (WCUs) for the GSI to address this issue. What potential consequence should you be aware of regarding the main table?
Signup and view all the answers
You are using DynamoDB's Provisioned Capacity mode for your application. Your application experiences a sudden and unexpected spike in write requests, exceeding the provisioned write capacity units (WCUs). Which of the following statements accurately describes the immediate impact on your application?
You are using DynamoDB's Provisioned Capacity mode for your application. Your application experiences a sudden and unexpected spike in write requests, exceeding the provisioned write capacity units (WCUs). Which of the following statements accurately describes the immediate impact on your application?
Signup and view all the answers
What happens when you set the ConsistentRead parameter to true during a query operation?
What happens when you set the ConsistentRead parameter to true during a query operation?
Signup and view all the answers
Which option describes a key difference between a Local Secondary Index (LSI) and a Global Secondary Index (GSI)?
Which option describes a key difference between a Local Secondary Index (LSI) and a Global Secondary Index (GSI)?
Signup and view all the answers
What is the primary reason to avoid using scan operations on large tables?
What is the primary reason to avoid using scan operations on large tables?
Signup and view all the answers
When using the ProjectionExpression parameter in a query, what effect does it have?
When using the ProjectionExpression parameter in a query, what effect does it have?
Signup and view all the answers
In what situation should you consider using parallel scans in DynamoDB?
In what situation should you consider using parallel scans in DynamoDB?
Signup and view all the answers
Which of the following statements regarding the usage of indexes in DynamoDB is correct?
Which of the following statements regarding the usage of indexes in DynamoDB is correct?
Signup and view all the answers
What happens if your read requests exceed 3000 RCU for a single partition key value in DynamoDB?
What happens if your read requests exceed 3000 RCU for a single partition key value in DynamoDB?
Signup and view all the answers
Which of the following statements about partition management in DynamoDB is correct?
Which of the following statements about partition management in DynamoDB is correct?
Signup and view all the answers
What is the primary function of the transaction write API in DynamoDB?
What is the primary function of the transaction write API in DynamoDB?
Signup and view all the answers
In DynamoDB, what is the effect of using the ProjectionExpression parameter during a Scan operation?
In DynamoDB, what is the effect of using the ProjectionExpression parameter during a Scan operation?
Signup and view all the answers
How does DynamoDB handle strongly consistent reads compared to eventually consistent reads?
How does DynamoDB handle strongly consistent reads compared to eventually consistent reads?
Signup and view all the answers
What is required for an item in a DynamoDB table that uses a composite primary key?
What is required for an item in a DynamoDB table that uses a composite primary key?
Signup and view all the answers
In what scenario would Amazon DynamoDB be considered a suitable option for a specific database solution?
In what scenario would Amazon DynamoDB be considered a suitable option for a specific database solution?
Signup and view all the answers
What is the primary reason why Amazon DynamoDB might not be an ideal choice for a database that requires granular access control based on user roles and permissions?
What is the primary reason why Amazon DynamoDB might not be an ideal choice for a database that requires granular access control based on user roles and permissions?
Signup and view all the answers
Which of the following scenarios BEST exemplifies an anti-pattern for using Amazon DynamoDB as a primary database solution?
Which of the following scenarios BEST exemplifies an anti-pattern for using Amazon DynamoDB as a primary database solution?
Signup and view all the answers
What is a critical consideration when deciding whether to use Amazon DynamoDB for an application that requires storing large objects exceeding the 400KB item size limit?
What is a critical consideration when deciding whether to use Amazon DynamoDB for an application that requires storing large objects exceeding the 400KB item size limit?
Signup and view all the answers
In a scenario where an application requires a database solution that prioritizes high availability and data durability, with a strong emphasis on ensuring that all writes are reflected consistently across multiple geographical regions, which of the following would be the most suitable approach?
In a scenario where an application requires a database solution that prioritizes high availability and data durability, with a strong emphasis on ensuring that all writes are reflected consistently across multiple geographical regions, which of the following would be the most suitable approach?
Signup and view all the answers
Which statement accurately describes a key difference between Amazon DynamoDB's Local Secondary Indexes (LSIs) and Global Secondary Indexes (GSIs)?
Which statement accurately describes a key difference between Amazon DynamoDB's Local Secondary Indexes (LSIs) and Global Secondary Indexes (GSIs)?
Signup and view all the answers
What is the primary resource in DynamoDB?
What is the primary resource in DynamoDB?
Signup and view all the answers
What is the main advantage of using DynamoDB's push button scaling?
What is the main advantage of using DynamoDB's push button scaling?
Signup and view all the answers
What is the purpose of Multi-AZ redundancy in DynamoDB?
What is the purpose of Multi-AZ redundancy in DynamoDB?
Signup and view all the answers
What type of data structures does DynamoDB support?
What type of data structures does DynamoDB support?
Signup and view all the answers
What is the purpose of IAM in DynamoDB?
What is the purpose of IAM in DynamoDB?
Signup and view all the answers
What is the characteristic of a key-value database in DynamoDB?
What is the characteristic of a key-value database in DynamoDB?
Signup and view all the answers
What is the main difference between a Scan and a Query operation in DynamoDB?
What is the main difference between a Scan and a Query operation in DynamoDB?
Signup and view all the answers
What is the purpose of a Local Secondary Index (LSI) in DynamoDB?
What is the purpose of a Local Secondary Index (LSI) in DynamoDB?
Signup and view all the answers
Which of the following is NOT a characteristic of a Global Secondary Index (GSI)?
Which of the following is NOT a characteristic of a Global Secondary Index (GSI)?
Signup and view all the answers
Which of the following is NOT a valid parameter to optimize query or scan operations in DynamoDB?
Which of the following is NOT a valid parameter to optimize query or scan operations in DynamoDB?
Signup and view all the answers
What parameter must be set for a query to return strongly consistent reads?
What parameter must be set for a query to return strongly consistent reads?
Signup and view all the answers
Which of the following statements accurately describes the key difference between eventually consistent reads and strongly consistent reads in DynamoDB?
Which of the following statements accurately describes the key difference between eventually consistent reads and strongly consistent reads in DynamoDB?
Signup and view all the answers
What is the main reason to specify at least the same, or more, RCU/WCU in a GSI as in the main table?
What is the main reason to specify at least the same, or more, RCU/WCU in a GSI as in the main table?
Signup and view all the answers
Which of the following is a benefit of using DynamoDB Provisioned Capacity with Auto Scaling?
Which of the following is a benefit of using DynamoDB Provisioned Capacity with Auto Scaling?
Signup and view all the answers
What is the primary purpose of DynamoDB Accelerator (DAX)?
What is the primary purpose of DynamoDB Accelerator (DAX)?
Signup and view all the answers
What is the main difference between DynamoDB On-Demand Capacity and Provisioned Capacity?
What is the main difference between DynamoDB On-Demand Capacity and Provisioned Capacity?
Signup and view all the answers
What is one key benefit of using a Local Secondary Index (LSI)?
What is one key benefit of using a Local Secondary Index (LSI)?
Signup and view all the answers
How does a Global Secondary Index (GSI) differ from a Local Secondary Index (LSI)?
How does a Global Secondary Index (GSI) differ from a Local Secondary Index (LSI)?
Signup and view all the answers
What is the primary purpose of primary keys in DynamoDB?
What is the primary purpose of primary keys in DynamoDB?
Signup and view all the answers
What happens to throughput if access patterns exceed the limits for a single partition key value?
What happens to throughput if access patterns exceed the limits for a single partition key value?
Signup and view all the answers
Which type of read is configured by default in DynamoDB?
Which type of read is configured by default in DynamoDB?
Signup and view all the answers
What is one major advantage of using the TransactWriteItems operation in DynamoDB?
What is one major advantage of using the TransactWriteItems operation in DynamoDB?
Signup and view all the answers
What is required to execute a parallel Scan operation in DynamoDB?
What is required to execute a parallel Scan operation in DynamoDB?
Signup and view all the answers
Which factor does DynamoDB use to distribute read and write capacity efficiently?
Which factor does DynamoDB use to distribute read and write capacity efficiently?
Signup and view all the answers
What benefit does TTL provide in DynamoDB?
What benefit does TTL provide in DynamoDB?
Signup and view all the answers
What primary data does DynamoDB Streams capture?
What primary data does DynamoDB Streams capture?
Signup and view all the answers
What happens if an application exceeds the provisioned throughput in DynamoDB?
What happens if an application exceeds the provisioned throughput in DynamoDB?
Signup and view all the answers
What is the purpose of Exponential Backoff in AWS SDKs?
What is the purpose of Exponential Backoff in AWS SDKs?
Signup and view all the answers
Which of the following is a best practice when manipulating large objects in DynamoDB?
Which of the following is a best practice when manipulating large objects in DynamoDB?
Signup and view all the answers
What does optimistic locking protect against in DynamoDB?
What does optimistic locking protect against in DynamoDB?
Signup and view all the answers
Which of the following is a characteristic of DynamoDB global tables?
Which of the following is a characteristic of DynamoDB global tables?
Signup and view all the answers
What is the primary purpose of DynamoDB Auto Scaling?
What is the primary purpose of DynamoDB Auto Scaling?
Signup and view all the answers
Which database option is recommended for high availability if DynamoDB is not feasible?
Which database option is recommended for high availability if DynamoDB is not feasible?
Signup and view all the answers
When is it necessary to modify your application for DynamoDB global tables?
When is it necessary to modify your application for DynamoDB global tables?
Signup and view all the answers
What is a significant advantage of using DynamoDB over RDS for high availability?
What is a significant advantage of using DynamoDB over RDS for high availability?
Signup and view all the answers
Which of the following actions is NOT supported in DynamoDB global tables?
Which of the following actions is NOT supported in DynamoDB global tables?
Signup and view all the answers
Which of the following statements about DynamoDB Auto Scaling is correct?
Which of the following statements about DynamoDB Auto Scaling is correct?
Signup and view all the answers
What is the primary reason for specifying identical write capacity settings for replica tables and secondary indexes in a global table?
What is the primary reason for specifying identical write capacity settings for replica tables and secondary indexes in a global table?
Signup and view all the answers
Which of the following scenarios would NOT require a modification to your application when using DynamoDB global tables?
Which of the following scenarios would NOT require a modification to your application when using DynamoDB global tables?
Signup and view all the answers
Which of the following is the MOST reliable approach for database high availability when DynamoDB is not an option?
Which of the following is the MOST reliable approach for database high availability when DynamoDB is not an option?
Signup and view all the answers
What is the primary advantage of using a Local Secondary Index (LSI) in DynamoDB?
What is the primary advantage of using a Local Secondary Index (LSI) in DynamoDB?
Signup and view all the answers
Which statement regarding query operations in DynamoDB is incorrect?
Which statement regarding query operations in DynamoDB is incorrect?
Signup and view all the answers
What happens to the main table if writes are throttled on a Global Secondary Index (GSI)?
What happens to the main table if writes are throttled on a Global Secondary Index (GSI)?
Signup and view all the answers
What is a significant drawback of using the Scan operation in DynamoDB as opposed to the Query operation?
What is a significant drawback of using the Scan operation in DynamoDB as opposed to the Query operation?
Signup and view all the answers
Why is it recommended to have the same or more RCU/WCU specified in your GSI as in your main table?
Why is it recommended to have the same or more RCU/WCU specified in your GSI as in your main table?
Signup and view all the answers
Why might you want to avoid parallel scans when using a DynamoDB table that is experiencing heavy read/write activity?
Why might you want to avoid parallel scans when using a DynamoDB table that is experiencing heavy read/write activity?
Signup and view all the answers
In which scenario is DynamoDB On-Demand Capacity a more suitable choice than Provisioned Capacity?
In which scenario is DynamoDB On-Demand Capacity a more suitable choice than Provisioned Capacity?
Signup and view all the answers
What is the primary purpose of enabling Time To Live (TTL) in DynamoDB?
What is the primary purpose of enabling Time To Live (TTL) in DynamoDB?
Signup and view all the answers
Which statement is true regarding Global Secondary Indexes (GSIs) in DynamoDB?
Which statement is true regarding Global Secondary Indexes (GSIs) in DynamoDB?
Signup and view all the answers
What happens if you do not set the 'ScanIndexForward' parameter for a query operation in DynamoDB?
What happens if you do not set the 'ScanIndexForward' parameter for a query operation in DynamoDB?
Signup and view all the answers
Which of the following is NOT a benefit of using DynamoDB Accelerator (DAX)?
Which of the following is NOT a benefit of using DynamoDB Accelerator (DAX)?
Signup and view all the answers
Which of the following is NOT a recommended best practice for optimizing DynamoDB performance?
Which of the following is NOT a recommended best practice for optimizing DynamoDB performance?
Signup and view all the answers
What is the primary function of DynamoDB Time To Live (TTL) feature?
What is the primary function of DynamoDB Time To Live (TTL) feature?
Signup and view all the answers
In the context of DynamoDB, what is the primary difference between a Local Secondary Index (LSI) and a Global Secondary Index (GSI)?
In the context of DynamoDB, what is the primary difference between a Local Secondary Index (LSI) and a Global Secondary Index (GSI)?
Signup and view all the answers
What is the primary purpose of DynamoDB Streams?
What is the primary purpose of DynamoDB Streams?
Signup and view all the answers
Which of the following scenarios would benefit the MOST from using DynamoDB On-Demand Capacity?
Which of the following scenarios would benefit the MOST from using DynamoDB On-Demand Capacity?
Signup and view all the answers
Which of the following is NOT a valid use case for DynamoDB Transactions?
Which of the following is NOT a valid use case for DynamoDB Transactions?
Signup and view all the answers
What happens to a DynamoDB table when the provisioned capacity for the table is exhausted?
What happens to a DynamoDB table when the provisioned capacity for the table is exhausted?
Signup and view all the answers
Which statement describes the data organization structure in Amazon DynamoDB?
Which statement describes the data organization structure in Amazon DynamoDB?
Signup and view all the answers
What feature allows DynamoDB to ensure high availability and durability of data?
What feature allows DynamoDB to ensure high availability and durability of data?
Signup and view all the answers
What limitation exists when working with items in DynamoDB?
What limitation exists when working with items in DynamoDB?
Signup and view all the answers
Which access control mechanism does DynamoDB solely rely on for authorization?
Which access control mechanism does DynamoDB solely rely on for authorization?
Signup and view all the answers
How can data be efficiently stored in DynamoDB when it exceeds the maximum item size limit?
How can data be efficiently stored in DynamoDB when it exceeds the maximum item size limit?
Signup and view all the answers
Which of the following statements accurately reflects DynamoDB's data storage and access model?
Which of the following statements accurately reflects DynamoDB's data storage and access model?
Signup and view all the answers
What is a crucial factor for DynamoDB when allocating additional partitions to a table?
What is a crucial factor for DynamoDB when allocating additional partitions to a table?
Signup and view all the answers
Which of the following statements correctly describes the Scan operation in DynamoDB?
Which of the following statements correctly describes the Scan operation in DynamoDB?
Signup and view all the answers
In which scenarios is it essential to use a strongly consistent read in DynamoDB?
In which scenarios is it essential to use a strongly consistent read in DynamoDB?
Signup and view all the answers
What is the effect of using a Composite key in DynamoDB?
What is the effect of using a Composite key in DynamoDB?
Signup and view all the answers
What occurs during the transaction process in DynamoDB?
What occurs during the transaction process in DynamoDB?
Signup and view all the answers
What can negatively impact DynamoDB's throughput for a single partition key value?
What can negatively impact DynamoDB's throughput for a single partition key value?
Signup and view all the answers
What is the effect of using strongly consistent reads across different AWS regions in DynamoDB global tables?
What is the effect of using strongly consistent reads across different AWS regions in DynamoDB global tables?
Signup and view all the answers
Which of the following statements accurately describes the replication capabilities of DynamoDB global tables?
Which of the following statements accurately describes the replication capabilities of DynamoDB global tables?
Signup and view all the answers
When provisioning capacity for DynamoDB global tables, what should be ensured for proper operation?
When provisioning capacity for DynamoDB global tables, what should be ensured for proper operation?
Signup and view all the answers
In what scenario does DynamoDB auto scaling NOT decrease the provisioned capacity?
In what scenario does DynamoDB auto scaling NOT decrease the provisioned capacity?
Signup and view all the answers
Which of the following alternatives is suggested if DynamoDB is not a viable option?
Which of the following alternatives is suggested if DynamoDB is not a viable option?
Signup and view all the answers
What is one key limitation of the DynamoDB auto scaling process?
What is one key limitation of the DynamoDB auto scaling process?
Signup and view all the answers
Which characteristic makes DynamoDB a preferable choice over RDS in database architectures?
Which characteristic makes DynamoDB a preferable choice over RDS in database architectures?
Signup and view all the answers
When a global table is created in DynamoDB, what significant task does DynamoDB automatically perform?
When a global table is created in DynamoDB, what significant task does DynamoDB automatically perform?
Signup and view all the answers
What happens to provisioned capacity when sudden traffic increases occur in a DynamoDB table?
What happens to provisioned capacity when sudden traffic increases occur in a DynamoDB table?
Signup and view all the answers
For which data access requirements are DynamoDB global tables particularly beneficial?
For which data access requirements are DynamoDB global tables particularly beneficial?
Signup and view all the answers
Study Notes
Amazon DynamoDB Overview
- Fully managed NoSQL database service offering fast, predictable performance with seamless scalability.
- Stores three geographically distributed replicas of each table to ensure high availability and data durability.
- Synchronously replicates data across 3 facilities (Availability Zones) in a region.
Database Characteristics
- Schema-less and non-relational, functioning as a key-value and document database.
- Serverless architecture; no instances to provision or manage.
- Supports push button scaling to adjust database capacity without downtime.
Data Storage
- Data stored on SSDs, providing very low latency.
- Aggregate size of a single item is limited to 400KB, including keys and attributes.
- Can store pointers to S3 objects exceeding 400KB.
Data Structure
- Tables consist of items; items are composed of attributes (fields/columns).
- Primary keys determine how data is stored and retrieved:
- Partition key: A unique attribute (e.g., user ID).
- Composite key: Combination of partition key and sort key.
Partitions
- Data is stored in partitions, automatically managed by DynamoDB.
- Throttling may occur if access patterns exceed 3,000 read capacity units (RCUs) or 1,000 write capacity units (WCUs) for a single partition key value.
Consistency Models
- Two reading consistency types:
- Eventually consistent reads: Default mode, offers lower latency.
- Strongly consistent reads: Ensures the latest data, configurable via API parameters.
Transactions
- Supports ACID transactions for coordinated changes across multiple items and tables.
- Uses a transaction write API for grouped operations.
API Operations
-
Scan: Reads items and attributes by examining the entire table; can be resource-intensive.
- Can optimize using
ProjectionExpression
and filter expressions.
- Can optimize using
- Query: Searches for items based on primary key attributes with better performance than a scan.
Indexing
- Two types of indexes enhance query efficiency:
- Local Secondary Index (LSI): Alternative sort key local to the partition key, limited to five per table.
- Global Secondary Index (GSI): Different partition and sort keys for queries, can be created later.
Capacity Management
- Provisioned Capacity: Users specify RCU and WCU based on expected traffic, can utilize auto scaling.
- On-demand Capacity: Automatically adjusts based on actual workload, ideal for unpredictable traffic.
Performance Optimization
- Throttling occurs if provision limits are exceeded; AWS SDKs automatically retry failed requests.
- Use DynamoDB Accelerator (DAX) for in-memory caching, enhancing read performance significantly.
Data TTL and Streams
- Time To Live (TTL): Automatically deletes expired items without extra costs or resource usage.
- DynamoDB Streams: Captures item-level modifications for 24 hours, allowing near real-time event processing (e.g., via AWS Lambda).
Security and Best Practices
- Uses IAM for authentication and access control; supports identity-based policies.
- Recommendations include keeping item sizes small, and separating frequently and infrequently accessed data.
Scalability and Global Tables
- Global Tables: Multi-region, multi-master configuration for global applications, ensuring low-latency data access.
- Supports automatic replication without partial item support; strongly consistent reads require operations within the same region.### Application Auto Scaling
- Auto Scaling does not automatically reduce provisioned capacity when consumed capacity reaches zero.
- Enabling DynamoDB auto scaling occurs by default when creating a table or global secondary index via the AWS Management Console.
High Availability Approaches for Databases
- Prefer DynamoDB over RDS due to its built-in fault tolerance.
- If DynamoDB is not an option, Amazon Aurora offers redundancy and automatic recovery, making it a strong alternative.
- In scenarios where neither DynamoDB nor Aurora is suitable, selecting Multi-AZ RDS provides enhanced availability.
- Regular RDS snapshots serve as a protection measure against data corruption or failure, with minimal performance impact in Multi-AZ deployments.
- Regional replication is available but lacks strong consistency guarantees.
- For databases hosted on EC2, high availability designs must be implemented manually.
Amazon DynamoDB Overview
- Fully managed NoSQL database service offering fast, predictable performance with seamless scalability.
- Stores three geographically distributed replicas of each table to ensure high availability and data durability.
- Synchronously replicates data across 3 facilities (Availability Zones) in a region.
Database Characteristics
- Schema-less and non-relational, functioning as a key-value and document database.
- Serverless architecture; no instances to provision or manage.
- Supports push button scaling to adjust database capacity without downtime.
Data Storage
- Data stored on SSDs, providing very low latency.
- Aggregate size of a single item is limited to 400KB, including keys and attributes.
- Can store pointers to S3 objects exceeding 400KB.
Data Structure
- Tables consist of items; items are composed of attributes (fields/columns).
- Primary keys determine how data is stored and retrieved:
- Partition key: A unique attribute (e.g., user ID).
- Composite key: Combination of partition key and sort key.
Partitions
- Data is stored in partitions, automatically managed by DynamoDB.
- Throttling may occur if access patterns exceed 3,000 read capacity units (RCUs) or 1,000 write capacity units (WCUs) for a single partition key value.
Consistency Models
- Two reading consistency types:
- Eventually consistent reads: Default mode, offers lower latency.
- Strongly consistent reads: Ensures the latest data, configurable via API parameters.
Transactions
- Supports ACID transactions for coordinated changes across multiple items and tables.
- Uses a transaction write API for grouped operations.
API Operations
-
Scan: Reads items and attributes by examining the entire table; can be resource-intensive.
- Can optimize using
ProjectionExpression
and filter expressions.
- Can optimize using
- Query: Searches for items based on primary key attributes with better performance than a scan.
Indexing
- Two types of indexes enhance query efficiency:
- Local Secondary Index (LSI): Alternative sort key local to the partition key, limited to five per table.
- Global Secondary Index (GSI): Different partition and sort keys for queries, can be created later.
Capacity Management
- Provisioned Capacity: Users specify RCU and WCU based on expected traffic, can utilize auto scaling.
- On-demand Capacity: Automatically adjusts based on actual workload, ideal for unpredictable traffic.
Performance Optimization
- Throttling occurs if provision limits are exceeded; AWS SDKs automatically retry failed requests.
- Use DynamoDB Accelerator (DAX) for in-memory caching, enhancing read performance significantly.
Data TTL and Streams
- Time To Live (TTL): Automatically deletes expired items without extra costs or resource usage.
- DynamoDB Streams: Captures item-level modifications for 24 hours, allowing near real-time event processing (e.g., via AWS Lambda).
Security and Best Practices
- Uses IAM for authentication and access control; supports identity-based policies.
- Recommendations include keeping item sizes small, and separating frequently and infrequently accessed data.
Scalability and Global Tables
- Global Tables: Multi-region, multi-master configuration for global applications, ensuring low-latency data access.
- Supports automatic replication without partial item support; strongly consistent reads require operations within the same region.### Application Auto Scaling
- Auto Scaling does not automatically reduce provisioned capacity when consumed capacity reaches zero.
- Enabling DynamoDB auto scaling occurs by default when creating a table or global secondary index via the AWS Management Console.
High Availability Approaches for Databases
- Prefer DynamoDB over RDS due to its built-in fault tolerance.
- If DynamoDB is not an option, Amazon Aurora offers redundancy and automatic recovery, making it a strong alternative.
- In scenarios where neither DynamoDB nor Aurora is suitable, selecting Multi-AZ RDS provides enhanced availability.
- Regular RDS snapshots serve as a protection measure against data corruption or failure, with minimal performance impact in Multi-AZ deployments.
- Regional replication is available but lacks strong consistency guarantees.
- For databases hosted on EC2, high availability designs must be implemented manually.
Amazon DynamoDB Overview
- Fully managed NoSQL database service offering fast, predictable performance with seamless scalability.
- Stores three geographically distributed replicas of each table to ensure high availability and data durability.
- Synchronously replicates data across 3 facilities (Availability Zones) in a region.
Database Characteristics
- Schema-less and non-relational, functioning as a key-value and document database.
- Serverless architecture; no instances to provision or manage.
- Supports push button scaling to adjust database capacity without downtime.
Data Storage
- Data stored on SSDs, providing very low latency.
- Aggregate size of a single item is limited to 400KB, including keys and attributes.
- Can store pointers to S3 objects exceeding 400KB.
Data Structure
- Tables consist of items; items are composed of attributes (fields/columns).
- Primary keys determine how data is stored and retrieved:
- Partition key: A unique attribute (e.g., user ID).
- Composite key: Combination of partition key and sort key.
Partitions
- Data is stored in partitions, automatically managed by DynamoDB.
- Throttling may occur if access patterns exceed 3,000 read capacity units (RCUs) or 1,000 write capacity units (WCUs) for a single partition key value.
Consistency Models
- Two reading consistency types:
- Eventually consistent reads: Default mode, offers lower latency.
- Strongly consistent reads: Ensures the latest data, configurable via API parameters.
Transactions
- Supports ACID transactions for coordinated changes across multiple items and tables.
- Uses a transaction write API for grouped operations.
API Operations
-
Scan: Reads items and attributes by examining the entire table; can be resource-intensive.
- Can optimize using
ProjectionExpression
and filter expressions.
- Can optimize using
- Query: Searches for items based on primary key attributes with better performance than a scan.
Indexing
- Two types of indexes enhance query efficiency:
- Local Secondary Index (LSI): Alternative sort key local to the partition key, limited to five per table.
- Global Secondary Index (GSI): Different partition and sort keys for queries, can be created later.
Capacity Management
- Provisioned Capacity: Users specify RCU and WCU based on expected traffic, can utilize auto scaling.
- On-demand Capacity: Automatically adjusts based on actual workload, ideal for unpredictable traffic.
Performance Optimization
- Throttling occurs if provision limits are exceeded; AWS SDKs automatically retry failed requests.
- Use DynamoDB Accelerator (DAX) for in-memory caching, enhancing read performance significantly.
Data TTL and Streams
- Time To Live (TTL): Automatically deletes expired items without extra costs or resource usage.
- DynamoDB Streams: Captures item-level modifications for 24 hours, allowing near real-time event processing (e.g., via AWS Lambda).
Security and Best Practices
- Uses IAM for authentication and access control; supports identity-based policies.
- Recommendations include keeping item sizes small, and separating frequently and infrequently accessed data.
Scalability and Global Tables
- Global Tables: Multi-region, multi-master configuration for global applications, ensuring low-latency data access.
- Supports automatic replication without partial item support; strongly consistent reads require operations within the same region.### Application Auto Scaling
- Auto Scaling does not automatically reduce provisioned capacity when consumed capacity reaches zero.
- Enabling DynamoDB auto scaling occurs by default when creating a table or global secondary index via the AWS Management Console.
High Availability Approaches for Databases
- Prefer DynamoDB over RDS due to its built-in fault tolerance.
- If DynamoDB is not an option, Amazon Aurora offers redundancy and automatic recovery, making it a strong alternative.
- In scenarios where neither DynamoDB nor Aurora is suitable, selecting Multi-AZ RDS provides enhanced availability.
- Regular RDS snapshots serve as a protection measure against data corruption or failure, with minimal performance impact in Multi-AZ deployments.
- Regional replication is available but lacks strong consistency guarantees.
- For databases hosted on EC2, high availability designs must be implemented manually.
Amazon DynamoDB Overview
- Fully managed NoSQL database service offering fast, predictable performance with seamless scalability.
- Stores three geographically distributed replicas of each table to ensure high availability and data durability.
- Synchronously replicates data across 3 facilities (Availability Zones) in a region.
Database Characteristics
- Schema-less and non-relational, functioning as a key-value and document database.
- Serverless architecture; no instances to provision or manage.
- Supports push button scaling to adjust database capacity without downtime.
Data Storage
- Data stored on SSDs, providing very low latency.
- Aggregate size of a single item is limited to 400KB, including keys and attributes.
- Can store pointers to S3 objects exceeding 400KB.
Data Structure
- Tables consist of items; items are composed of attributes (fields/columns).
- Primary keys determine how data is stored and retrieved:
- Partition key: A unique attribute (e.g., user ID).
- Composite key: Combination of partition key and sort key.
Partitions
- Data is stored in partitions, automatically managed by DynamoDB.
- Throttling may occur if access patterns exceed 3,000 read capacity units (RCUs) or 1,000 write capacity units (WCUs) for a single partition key value.
Consistency Models
- Two reading consistency types:
- Eventually consistent reads: Default mode, offers lower latency.
- Strongly consistent reads: Ensures the latest data, configurable via API parameters.
Transactions
- Supports ACID transactions for coordinated changes across multiple items and tables.
- Uses a transaction write API for grouped operations.
API Operations
-
Scan: Reads items and attributes by examining the entire table; can be resource-intensive.
- Can optimize using
ProjectionExpression
and filter expressions.
- Can optimize using
- Query: Searches for items based on primary key attributes with better performance than a scan.
Indexing
- Two types of indexes enhance query efficiency:
- Local Secondary Index (LSI): Alternative sort key local to the partition key, limited to five per table.
- Global Secondary Index (GSI): Different partition and sort keys for queries, can be created later.
Capacity Management
- Provisioned Capacity: Users specify RCU and WCU based on expected traffic, can utilize auto scaling.
- On-demand Capacity: Automatically adjusts based on actual workload, ideal for unpredictable traffic.
Performance Optimization
- Throttling occurs if provision limits are exceeded; AWS SDKs automatically retry failed requests.
- Use DynamoDB Accelerator (DAX) for in-memory caching, enhancing read performance significantly.
Data TTL and Streams
- Time To Live (TTL): Automatically deletes expired items without extra costs or resource usage.
- DynamoDB Streams: Captures item-level modifications for 24 hours, allowing near real-time event processing (e.g., via AWS Lambda).
Security and Best Practices
- Uses IAM for authentication and access control; supports identity-based policies.
- Recommendations include keeping item sizes small, and separating frequently and infrequently accessed data.
Scalability and Global Tables
- Global Tables: Multi-region, multi-master configuration for global applications, ensuring low-latency data access.
- Supports automatic replication without partial item support; strongly consistent reads require operations within the same region.### Application Auto Scaling
- Auto Scaling does not automatically reduce provisioned capacity when consumed capacity reaches zero.
- Enabling DynamoDB auto scaling occurs by default when creating a table or global secondary index via the AWS Management Console.
High Availability Approaches for Databases
- Prefer DynamoDB over RDS due to its built-in fault tolerance.
- If DynamoDB is not an option, Amazon Aurora offers redundancy and automatic recovery, making it a strong alternative.
- In scenarios where neither DynamoDB nor Aurora is suitable, selecting Multi-AZ RDS provides enhanced availability.
- Regular RDS snapshots serve as a protection measure against data corruption or failure, with minimal performance impact in Multi-AZ deployments.
- Regional replication is available but lacks strong consistency guarantees.
- For databases hosted on EC2, high availability designs must be implemented manually.
Amazon DynamoDB Overview
- Fully managed NoSQL database service offering fast, predictable performance with seamless scalability.
- Stores three geographically distributed replicas of each table to ensure high availability and data durability.
- Synchronously replicates data across 3 facilities (Availability Zones) in a region.
Database Characteristics
- Schema-less and non-relational, functioning as a key-value and document database.
- Serverless architecture; no instances to provision or manage.
- Supports push button scaling to adjust database capacity without downtime.
Data Storage
- Data stored on SSDs, providing very low latency.
- Aggregate size of a single item is limited to 400KB, including keys and attributes.
- Can store pointers to S3 objects exceeding 400KB.
Data Structure
- Tables consist of items; items are composed of attributes (fields/columns).
- Primary keys determine how data is stored and retrieved:
- Partition key: A unique attribute (e.g., user ID).
- Composite key: Combination of partition key and sort key.
Partitions
- Data is stored in partitions, automatically managed by DynamoDB.
- Throttling may occur if access patterns exceed 3,000 read capacity units (RCUs) or 1,000 write capacity units (WCUs) for a single partition key value.
Consistency Models
- Two reading consistency types:
- Eventually consistent reads: Default mode, offers lower latency.
- Strongly consistent reads: Ensures the latest data, configurable via API parameters.
Transactions
- Supports ACID transactions for coordinated changes across multiple items and tables.
- Uses a transaction write API for grouped operations.
API Operations
-
Scan: Reads items and attributes by examining the entire table; can be resource-intensive.
- Can optimize using
ProjectionExpression
and filter expressions.
- Can optimize using
- Query: Searches for items based on primary key attributes with better performance than a scan.
Indexing
- Two types of indexes enhance query efficiency:
- Local Secondary Index (LSI): Alternative sort key local to the partition key, limited to five per table.
- Global Secondary Index (GSI): Different partition and sort keys for queries, can be created later.
Capacity Management
- Provisioned Capacity: Users specify RCU and WCU based on expected traffic, can utilize auto scaling.
- On-demand Capacity: Automatically adjusts based on actual workload, ideal for unpredictable traffic.
Performance Optimization
- Throttling occurs if provision limits are exceeded; AWS SDKs automatically retry failed requests.
- Use DynamoDB Accelerator (DAX) for in-memory caching, enhancing read performance significantly.
Data TTL and Streams
- Time To Live (TTL): Automatically deletes expired items without extra costs or resource usage.
- DynamoDB Streams: Captures item-level modifications for 24 hours, allowing near real-time event processing (e.g., via AWS Lambda).
Security and Best Practices
- Uses IAM for authentication and access control; supports identity-based policies.
- Recommendations include keeping item sizes small, and separating frequently and infrequently accessed data.
Scalability and Global Tables
- Global Tables: Multi-region, multi-master configuration for global applications, ensuring low-latency data access.
- Supports automatic replication without partial item support; strongly consistent reads require operations within the same region.### Application Auto Scaling
- Auto Scaling does not automatically reduce provisioned capacity when consumed capacity reaches zero.
- Enabling DynamoDB auto scaling occurs by default when creating a table or global secondary index via the AWS Management Console.
High Availability Approaches for Databases
- Prefer DynamoDB over RDS due to its built-in fault tolerance.
- If DynamoDB is not an option, Amazon Aurora offers redundancy and automatic recovery, making it a strong alternative.
- In scenarios where neither DynamoDB nor Aurora is suitable, selecting Multi-AZ RDS provides enhanced availability.
- Regular RDS snapshots serve as a protection measure against data corruption or failure, with minimal performance impact in Multi-AZ deployments.
- Regional replication is available but lacks strong consistency guarantees.
- For databases hosted on EC2, high availability designs must be implemented manually.
Amazon DynamoDB Overview
- Fully managed NoSQL database service offering fast, predictable performance with seamless scalability.
- Stores three geographically distributed replicas of each table to ensure high availability and data durability.
- Synchronously replicates data across 3 facilities (Availability Zones) in a region.
Database Characteristics
- Schema-less and non-relational, functioning as a key-value and document database.
- Serverless architecture; no instances to provision or manage.
- Supports push button scaling to adjust database capacity without downtime.
Data Storage
- Data stored on SSDs, providing very low latency.
- Aggregate size of a single item is limited to 400KB, including keys and attributes.
- Can store pointers to S3 objects exceeding 400KB.
Data Structure
- Tables consist of items; items are composed of attributes (fields/columns).
- Primary keys determine how data is stored and retrieved:
- Partition key: A unique attribute (e.g., user ID).
- Composite key: Combination of partition key and sort key.
Partitions
- Data is stored in partitions, automatically managed by DynamoDB.
- Throttling may occur if access patterns exceed 3,000 read capacity units (RCUs) or 1,000 write capacity units (WCUs) for a single partition key value.
Consistency Models
- Two reading consistency types:
- Eventually consistent reads: Default mode, offers lower latency.
- Strongly consistent reads: Ensures the latest data, configurable via API parameters.
Transactions
- Supports ACID transactions for coordinated changes across multiple items and tables.
- Uses a transaction write API for grouped operations.
API Operations
-
Scan: Reads items and attributes by examining the entire table; can be resource-intensive.
- Can optimize using
ProjectionExpression
and filter expressions.
- Can optimize using
- Query: Searches for items based on primary key attributes with better performance than a scan.
Indexing
- Two types of indexes enhance query efficiency:
- Local Secondary Index (LSI): Alternative sort key local to the partition key, limited to five per table.
- Global Secondary Index (GSI): Different partition and sort keys for queries, can be created later.
Capacity Management
- Provisioned Capacity: Users specify RCU and WCU based on expected traffic, can utilize auto scaling.
- On-demand Capacity: Automatically adjusts based on actual workload, ideal for unpredictable traffic.
Performance Optimization
- Throttling occurs if provision limits are exceeded; AWS SDKs automatically retry failed requests.
- Use DynamoDB Accelerator (DAX) for in-memory caching, enhancing read performance significantly.
Data TTL and Streams
- Time To Live (TTL): Automatically deletes expired items without extra costs or resource usage.
- DynamoDB Streams: Captures item-level modifications for 24 hours, allowing near real-time event processing (e.g., via AWS Lambda).
Security and Best Practices
- Uses IAM for authentication and access control; supports identity-based policies.
- Recommendations include keeping item sizes small, and separating frequently and infrequently accessed data.
Scalability and Global Tables
- Global Tables: Multi-region, multi-master configuration for global applications, ensuring low-latency data access.
- Supports automatic replication without partial item support; strongly consistent reads require operations within the same region.### Application Auto Scaling
- Auto Scaling does not automatically reduce provisioned capacity when consumed capacity reaches zero.
- Enabling DynamoDB auto scaling occurs by default when creating a table or global secondary index via the AWS Management Console.
High Availability Approaches for Databases
- Prefer DynamoDB over RDS due to its built-in fault tolerance.
- If DynamoDB is not an option, Amazon Aurora offers redundancy and automatic recovery, making it a strong alternative.
- In scenarios where neither DynamoDB nor Aurora is suitable, selecting Multi-AZ RDS provides enhanced availability.
- Regular RDS snapshots serve as a protection measure against data corruption or failure, with minimal performance impact in Multi-AZ deployments.
- Regional replication is available but lacks strong consistency guarantees.
- For databases hosted on EC2, high availability designs must be implemented manually.
Amazon DynamoDB Overview
- Fully managed NoSQL database service offering fast, predictable performance with seamless scalability.
- Stores three geographically distributed replicas of each table to ensure high availability and data durability.
- Synchronously replicates data across 3 facilities (Availability Zones) in a region.
Database Characteristics
- Schema-less and non-relational, functioning as a key-value and document database.
- Serverless architecture; no instances to provision or manage.
- Supports push button scaling to adjust database capacity without downtime.
Data Storage
- Data stored on SSDs, providing very low latency.
- Aggregate size of a single item is limited to 400KB, including keys and attributes.
- Can store pointers to S3 objects exceeding 400KB.
Data Structure
- Tables consist of items; items are composed of attributes (fields/columns).
- Primary keys determine how data is stored and retrieved:
- Partition key: A unique attribute (e.g., user ID).
- Composite key: Combination of partition key and sort key.
Partitions
- Data is stored in partitions, automatically managed by DynamoDB.
- Throttling may occur if access patterns exceed 3,000 read capacity units (RCUs) or 1,000 write capacity units (WCUs) for a single partition key value.
Consistency Models
- Two reading consistency types:
- Eventually consistent reads: Default mode, offers lower latency.
- Strongly consistent reads: Ensures the latest data, configurable via API parameters.
Transactions
- Supports ACID transactions for coordinated changes across multiple items and tables.
- Uses a transaction write API for grouped operations.
API Operations
-
Scan: Reads items and attributes by examining the entire table; can be resource-intensive.
- Can optimize using
ProjectionExpression
and filter expressions.
- Can optimize using
- Query: Searches for items based on primary key attributes with better performance than a scan.
Indexing
- Two types of indexes enhance query efficiency:
- Local Secondary Index (LSI): Alternative sort key local to the partition key, limited to five per table.
- Global Secondary Index (GSI): Different partition and sort keys for queries, can be created later.
Capacity Management
- Provisioned Capacity: Users specify RCU and WCU based on expected traffic, can utilize auto scaling.
- On-demand Capacity: Automatically adjusts based on actual workload, ideal for unpredictable traffic.
Performance Optimization
- Throttling occurs if provision limits are exceeded; AWS SDKs automatically retry failed requests.
- Use DynamoDB Accelerator (DAX) for in-memory caching, enhancing read performance significantly.
Data TTL and Streams
- Time To Live (TTL): Automatically deletes expired items without extra costs or resource usage.
- DynamoDB Streams: Captures item-level modifications for 24 hours, allowing near real-time event processing (e.g., via AWS Lambda).
Security and Best Practices
- Uses IAM for authentication and access control; supports identity-based policies.
- Recommendations include keeping item sizes small, and separating frequently and infrequently accessed data.
Scalability and Global Tables
- Global Tables: Multi-region, multi-master configuration for global applications, ensuring low-latency data access.
- Supports automatic replication without partial item support; strongly consistent reads require operations within the same region.### Application Auto Scaling
- Auto Scaling does not automatically reduce provisioned capacity when consumed capacity reaches zero.
- Enabling DynamoDB auto scaling occurs by default when creating a table or global secondary index via the AWS Management Console.
High Availability Approaches for Databases
- Prefer DynamoDB over RDS due to its built-in fault tolerance.
- If DynamoDB is not an option, Amazon Aurora offers redundancy and automatic recovery, making it a strong alternative.
- In scenarios where neither DynamoDB nor Aurora is suitable, selecting Multi-AZ RDS provides enhanced availability.
- Regular RDS snapshots serve as a protection measure against data corruption or failure, with minimal performance impact in Multi-AZ deployments.
- Regional replication is available but lacks strong consistency guarantees.
- For databases hosted on EC2, high availability designs must be implemented manually.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge of Amazon DynamoDB, a fast and fully managed NoSQL database service. Questions cover its features, benefits, and storage type.