Podcast
Questions and Answers
What is the maximum size of an item in DynamoDB?
What is the maximum size of an item in DynamoDB?
- 400KB (correct)
- 1KB
- 10MB
- 1MB
What type of database is DynamoDB?
What type of database is DynamoDB?
- Time Series
- Key-Value (correct)
- Relational
- Graph
What is the benefit of using DynamoDB?
What is the benefit of using DynamoDB?
- Low scalability and high latency
- High latency and low availability
- Low latency and high availability (correct)
- Scalability but no high availability
How many geographically distributed replicas of each table are stored in DynamoDB?
How many geographically distributed replicas of each table are stored in DynamoDB?
What is the purpose of IAM condition in DynamoDB?
What is the purpose of IAM condition in DynamoDB?
What is the storage type used in DynamoDB?
What is the storage type used in DynamoDB?
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?
What is the primary benefit of using DynamoDB Accelerator (DAX)?
What is the primary benefit of using DynamoDB Accelerator (DAX)?
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?
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?
What is the purpose of DynamoDB's Time To Live (TTL) feature?
What is the purpose of DynamoDB's Time To Live (TTL) feature?
What happens when the configured RCU or WCU are exceeded in DynamoDB?
What happens when the configured RCU or WCU are exceeded in DynamoDB?
What is the purpose of the 'ProjectionExpression' parameter in the Scan API?
What is the purpose of the 'ProjectionExpression' parameter in the Scan API?
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?
What is the purpose of DynamoDB transactions?
What is the purpose of DynamoDB transactions?
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?
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?
What is a 'Partition' in DynamoDB, and how does it affect performance?
What is a 'Partition' in DynamoDB, and how does it affect performance?
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?
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?
What is a characteristic of a Local Secondary Index (LSI)?
What is a characteristic of a Local Secondary Index (LSI)?
Which parameter must be set to reverse the order of query results?
Which parameter must be set to reverse the order of query results?
What is the advantage of using a Global Secondary Index (GSI)?
What is the advantage of using a Global Secondary Index (GSI)?
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?
What is the primary purpose of enabling TTL in DynamoDB?
What is the primary purpose of enabling TTL in DynamoDB?
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?
What happens to deleted items in DynamoDB after TTL expiration?
What happens to deleted items in DynamoDB after TTL expiration?
When using exponential backoff, what do the retry intervals do?
When using exponential backoff, what do the retry intervals do?
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?
What is a recommended practice when working with large objects in DynamoDB?
What is a recommended practice when working with large objects in DynamoDB?
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?
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?
What happens if the provisioned capacity for a DynamoDB table becomes zero?
What happens if the provisioned capacity for a DynamoDB table becomes zero?
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?
What should be identical for proper replication in DynamoDB global tables?
What should be identical for proper replication in DynamoDB global tables?
DynamoDB global tables are ideal for which type of applications?
DynamoDB global tables are ideal for which type of applications?
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?
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?
Which of the following statements about DynamoDB Global Tables is correct?
Which of the following statements about DynamoDB Global Tables is correct?
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?
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?
What is the benefit of using DynamoDB Provisioned Capacity with Auto Scaling?
What is the benefit of using DynamoDB Provisioned Capacity with Auto Scaling?
What is the purpose of DynamoDB Accelerator (DAX)?
What is the purpose of DynamoDB Accelerator (DAX)?
What happens when the configured RCU or WCU are exceeded in DynamoDB?
What happens when the configured RCU or WCU are exceeded in DynamoDB?
What is the purpose of DynamoDB Time To Live (TTL)?
What is the purpose of DynamoDB Time To Live (TTL)?
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?
What is one key benefit of using a Local Secondary Index (LSI)?
What is one key benefit of using a Local Secondary Index (LSI)?
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)?
What does a scan operation do in comparison to a query operation?
What does a scan operation do in comparison to a query operation?
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?
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?
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?
What is the main function of partitions in DynamoDB?
What is the main function of partitions in DynamoDB?
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?
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?
What is a key aspect of the transaction write API in DynamoDB?
What is a key aspect of the transaction write API in DynamoDB?
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?
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?
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?
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?
Which statement is true regarding DynamoDB's ability to manage access control?
Which statement is true regarding DynamoDB's ability to manage access control?
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?
Which feature allows for the automatic scaling of DynamoDB without downtime?
Which feature allows for the automatic scaling of DynamoDB without downtime?
In which case is DynamoDB considered a non-ideal choice?
In which case is DynamoDB considered a non-ideal choice?
What is the primary purpose of using Exponential Backoff in AWS SDKs?
What is the primary purpose of using Exponential Backoff in AWS SDKs?
Which statement about DynamoDB Streams is accurate?
Which statement about DynamoDB Streams is accurate?
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?
What is a recommended best practice when managing large objects in DynamoDB?
What is a recommended best practice when managing large objects in DynamoDB?
What does optimistic locking prevent in DynamoDB?
What does optimistic locking prevent in DynamoDB?
What occurs when a request is throttled in DynamoDB?
What occurs when a request is throttled in DynamoDB?
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?
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?
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?
When using DynamoDB, which scenario requires careful consideration regarding high availability?
When using DynamoDB, which scenario requires careful consideration regarding high availability?
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?
Which statement about Amazon DynamoDB's regional replication is accurate?
Which statement about Amazon DynamoDB's regional replication is accurate?
How does DynamoDB auto scaling respond to sudden increases in traffic?
How does DynamoDB auto scaling respond to sudden increases in traffic?
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?
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?
Which of the following features is NOT available in DynamoDB global tables?
Which of the following features is NOT available in DynamoDB global tables?
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?
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?
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?
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?
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?
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?
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?
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?
Which of the following is NOT a characteristic of DynamoDB Transactions?
Which of the following is NOT a characteristic of DynamoDB Transactions?
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?
Which of the following statements about DynamoDB Global Tables is correct?
Which of the following statements about DynamoDB Global Tables is correct?
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?
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?
What is the primary purpose of DynamoDB Accelerator (DAX)?
What is the primary purpose of DynamoDB Accelerator (DAX)?
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?
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?
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?
What is a common reason to encounter throttling in DynamoDB?
What is a common reason to encounter throttling in DynamoDB?
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?
What is the primary function of a DynamoDB stream?
What is the primary function of a DynamoDB stream?
What happens to expired items in DynamoDB when TTL is enabled?
What happens to expired items in DynamoDB when TTL is enabled?
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?
What is the primary benefit of using Optimistic Locking in DynamoDB?
What is the primary benefit of using Optimistic Locking in DynamoDB?
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?
Which of the following describes the structure of items in DynamoDB?
Which of the following describes the structure of items in DynamoDB?
What is a characteristic of the data storage in DynamoDB?
What is a characteristic of the data storage in DynamoDB?
Which access control method is utilized by DynamoDB?
Which access control method is utilized by DynamoDB?
What happens to items larger than 400KB in DynamoDB?
What happens to items larger than 400KB in DynamoDB?
Which of the following describes the scaling capabilities of DynamoDB?
Which of the following describes the scaling capabilities of DynamoDB?
What benefit does the multi-AZ architecture of DynamoDB provide?
What benefit does the multi-AZ architecture of DynamoDB provide?
What is the primary purpose of DynamoDB global tables?
What is the primary purpose of DynamoDB global tables?
Which of the following statements about DynamoDB global tables is correct?
Which of the following statements about DynamoDB global tables is correct?
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?
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?
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?
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?
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?
Which of the following statements about DynamoDB Auto Scaling is correct?
Which of the following statements about DynamoDB Auto Scaling is correct?
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?
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?
What is the key characteristic of a schema-less database like DynamoDB?
What is the key characteristic of a schema-less database like DynamoDB?
What is the benefit of using Multi-AZ redundancy in DynamoDB?
What is the benefit of using Multi-AZ redundancy in DynamoDB?
What is the primary use case for DynamoDB?
What is the primary use case for DynamoDB?
What is the purpose of IAM in DynamoDB?
What is the purpose of IAM in DynamoDB?
What is the benefit of using push-button scaling in DynamoDB?
What is the benefit of using push-button scaling in DynamoDB?
What is the data structure supported by DynamoDB?
What is the data structure supported by DynamoDB?
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?
What is the purpose of an Index in DynamoDB?
What is the purpose of an Index in DynamoDB?
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)?
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?
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?
What is the characteristic of a Local Secondary Index (LSI)?
What is the characteristic of a Local Secondary Index (LSI)?
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?
Which of the following statements about DynamoDB transactions is TRUE?
Which of the following statements about DynamoDB transactions is TRUE?
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?
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?
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?
Which of the following statements about DynamoDB eventually consistent reads is TRUE?
Which of the following statements about DynamoDB eventually consistent reads is TRUE?
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?
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?
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?
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?
What is the primary function of DynamoDB streams?
What is the primary function of DynamoDB streams?
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?
Which of the following statements about DynamoDB On-Demand Capacity is TRUE?
Which of the following statements about DynamoDB On-Demand Capacity is TRUE?
In DynamoDB, what happens when the configured RCU or WCU are exceeded?
In DynamoDB, what happens when the configured RCU or WCU are exceeded?
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)?
What is the primary purpose of DynamoDB Time To Live (TTL)?
What is the primary purpose of DynamoDB Time To Live (TTL)?
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?
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)?
Which of the following is a benefit of using DynamoDB over RDS?
Which of the following is a benefit of using DynamoDB over RDS?
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?
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?
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?
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?
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?
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?
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?
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?
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?
What is the primary purpose of using Exponential Backoff in DynamoDB?
What is the primary purpose of using Exponential Backoff in DynamoDB?
What happens to deleted items in DynamoDB after TTL expiration?
What happens to deleted items in DynamoDB after TTL expiration?
What is the benefit of using a dedicated endpoint for DynamoDB Streams?
What is the benefit of using a dedicated endpoint for DynamoDB Streams?
What is a recommended practice when working with large objects in DynamoDB?
What is a recommended practice when working with large objects in DynamoDB?
What is the primary purpose of Optimistic Locking in DynamoDB?
What is the primary purpose of Optimistic Locking in DynamoDB?
What is the primary benefit of using DynamoDB Accelerator (DAX)?
What is the primary benefit of using DynamoDB Accelerator (DAX)?
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?
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?
What happens if the provisioned capacity for a DynamoDB table becomes zero?
What happens if the provisioned capacity for a DynamoDB table becomes zero?
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?
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?
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?
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?
What should be identical for proper replication in DynamoDB global tables?
What should be identical for proper replication in DynamoDB global tables?
What is the purpose of frequent RDS snapshots?
What is the purpose of frequent RDS snapshots?
What is the primary benefit of using DynamoDB over RDS?
What is the primary benefit of using DynamoDB over RDS?
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?
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?
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?
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?
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?
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?
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?
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)?
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?
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?
In what situation should you consider using parallel scans in DynamoDB?
In what situation should you consider using parallel scans in DynamoDB?
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?
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?
Which of the following statements about partition management in DynamoDB is correct?
Which of the following statements about partition management in DynamoDB is correct?
What is the primary function of the transaction write API in DynamoDB?
What is the primary function of the transaction write API in DynamoDB?
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?
How does DynamoDB handle strongly consistent reads compared to eventually consistent reads?
How does DynamoDB handle strongly consistent reads compared to eventually consistent reads?
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?
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?
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?
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?
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?
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?
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)?
What is the primary resource in DynamoDB?
What is the primary resource in DynamoDB?
What is the main advantage of using DynamoDB's push button scaling?
What is the main advantage of using DynamoDB's push button scaling?
What is the purpose of Multi-AZ redundancy in DynamoDB?
What is the purpose of Multi-AZ redundancy in DynamoDB?
What type of data structures does DynamoDB support?
What type of data structures does DynamoDB support?
What is the purpose of IAM in DynamoDB?
What is the purpose of IAM in DynamoDB?
What is the characteristic of a key-value database in DynamoDB?
What is the characteristic of a key-value database in DynamoDB?
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?
What is the purpose of a Local Secondary Index (LSI) in DynamoDB?
What is the purpose of a Local Secondary Index (LSI) in DynamoDB?
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)?
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?
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?
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?
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?
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?
What is the primary purpose of DynamoDB Accelerator (DAX)?
What is the primary purpose of DynamoDB Accelerator (DAX)?
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?
What is one key benefit of using a Local Secondary Index (LSI)?
What is one key benefit of using a Local Secondary Index (LSI)?
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)?
What is the primary purpose of primary keys in DynamoDB?
What is the primary purpose of primary keys in DynamoDB?
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?
Which type of read is configured by default in DynamoDB?
Which type of read is configured by default in DynamoDB?
What is one major advantage of using the TransactWriteItems operation in DynamoDB?
What is one major advantage of using the TransactWriteItems operation in DynamoDB?
What is required to execute a parallel Scan operation in DynamoDB?
What is required to execute a parallel Scan operation in DynamoDB?
Which factor does DynamoDB use to distribute read and write capacity efficiently?
Which factor does DynamoDB use to distribute read and write capacity efficiently?
What benefit does TTL provide in DynamoDB?
What benefit does TTL provide in DynamoDB?
What primary data does DynamoDB Streams capture?
What primary data does DynamoDB Streams capture?
What happens if an application exceeds the provisioned throughput in DynamoDB?
What happens if an application exceeds the provisioned throughput in DynamoDB?
What is the purpose of Exponential Backoff in AWS SDKs?
What is the purpose of Exponential Backoff in AWS SDKs?
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?
What does optimistic locking protect against in DynamoDB?
What does optimistic locking protect against in DynamoDB?
Which of the following is a characteristic of DynamoDB global tables?
Which of the following is a characteristic of DynamoDB global tables?
What is the primary purpose of DynamoDB Auto Scaling?
What is the primary purpose of DynamoDB Auto Scaling?
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?
When is it necessary to modify your application for DynamoDB global tables?
When is it necessary to modify your application for DynamoDB global tables?
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?
Which of the following actions is NOT supported in DynamoDB global tables?
Which of the following actions is NOT supported in DynamoDB global tables?
Which of the following statements about DynamoDB Auto Scaling is correct?
Which of the following statements about DynamoDB Auto Scaling is correct?
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?
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?
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?
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?
Which statement regarding query operations in DynamoDB is incorrect?
Which statement regarding query operations in DynamoDB is incorrect?
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)?
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?
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?
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?
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?
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?
Which statement is true regarding Global Secondary Indexes (GSIs) in DynamoDB?
Which statement is true regarding Global Secondary Indexes (GSIs) in DynamoDB?
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?
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)?
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?
What is the primary function of DynamoDB Time To Live (TTL) feature?
What is the primary function of DynamoDB Time To Live (TTL) feature?
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)?
What is the primary purpose of DynamoDB Streams?
What is the primary purpose of DynamoDB Streams?
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?
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?
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?
Which statement describes the data organization structure in Amazon DynamoDB?
Which statement describes the data organization structure in Amazon DynamoDB?
What feature allows DynamoDB to ensure high availability and durability of data?
What feature allows DynamoDB to ensure high availability and durability of data?
What limitation exists when working with items in DynamoDB?
What limitation exists when working with items in DynamoDB?
Which access control mechanism does DynamoDB solely rely on for authorization?
Which access control mechanism does DynamoDB solely rely on for authorization?
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?
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?
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?
Which of the following statements correctly describes the Scan operation in DynamoDB?
Which of the following statements correctly describes the Scan operation in DynamoDB?
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?
What is the effect of using a Composite key in DynamoDB?
What is the effect of using a Composite key in DynamoDB?
What occurs during the transaction process in DynamoDB?
What occurs during the transaction process in DynamoDB?
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?
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?
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?
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?
In what scenario does DynamoDB auto scaling NOT decrease the provisioned capacity?
In what scenario does DynamoDB auto scaling NOT decrease the provisioned capacity?
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?
What is one key limitation of the DynamoDB auto scaling process?
What is one key limitation of the DynamoDB auto scaling process?
Which characteristic makes DynamoDB a preferable choice over RDS in database architectures?
Which characteristic makes DynamoDB a preferable choice over RDS in database architectures?
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?
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?
For which data access requirements are DynamoDB global tables particularly beneficial?
For which data access requirements are DynamoDB global tables particularly beneficial?
Flashcards are hidden until you start studying
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.