DynamoDB Flashcards
Your low latency web application needs to store its session state in a scalable way so that it can be accessed quickly. Which service do you recommend? RDS DynamoDB Elastic File Store In memory on your EC2 instance
DynamoDB
Which of the following attributes would make a good Sort Key? CustomerID OrderNumber InvoiceDate EmailAddress
InvoiceDate
DynamoDB is a No-SQL database provided by AWS. False True
True
What is the difference between a Global Secondary Index and a Local Secondary Index (Choose 2) You can create a Local Secondary Index at any time but you can only create a Global Secondary Index at table creation time You can create a Global Secondary Index at any time but you can only create a Local Secondary Index at table creation time You can delete a Local Secondary Index at any time You can delete a Global Secondary Index at any time
You can create a Global Secondary Index at any time but you can only create a Local Secondary Index at table creation time You can delete a Global Secondary Index at any time
n DynamoDB, a scan operation is used for which of the following? Return the entire contents of a table Return the entire contents of a table filtered on the Primary Key attribute Find items in a table based on the Sort Key attribute Find items in a table based on the Primary Key attiribute
Return the entire contents of a table
In terms of performance, a scan is more efficient than a query. False True
False
Which of the following services provides in-memory write-through cache optimized for DynamoDB? Elasticache DAX CloudFront Read-replica
DAX (DynamoDB Accelerator)
By default, a DynamoDB query operation is used for which of the following? Return the entire contents of a table filtered on the Primary Key attribute Find items in a table based on the Primary Key attribute Return the entire contents of a table Find items in a table based on the Sort Key attribute
Find items in a table based on the Primary Key attribute
What is the API call to retrieve multiple items from a DynamoDB table? BatchGet GetItems BatchGetItem BatchGetItems
BatchGetItem
Using the AWS portal, you are trying to Scale DynamoDB past its preconfigured maximums. Which service can you increase by raising a ticket to AWS support? Provisioned throughput limits Global Secondary Indexes Item Sizes Local Secondary Indexes
Provisioned throughput limits
Which of the following attributes would make a good Partition Key? Size ProductType ProductID WarehouseLocation
ProductID
You have an application which reads 80 items of data every second. Each item consists of 3KB. Your application uses eventually consistent reads. What should you set the RCU read throughput to? 60 RCU 80 RCU 20 RCU 40 RCU
40 RCU
You have an application that needs to read 25 items of 13KB in size per second. Your application uses strongly consistent reads. What should you set the read throughput to? 10 25 100 50
100
Which of the following are recommended ways to optimise a query or scan in DynamoDB? (Choose 2) Set your queries to be eventually consistent Reduce the page size to return fewer items per results page Run parallel scans Filter your results based on the Primary Key and Sort Key
Reduce the page size to return fewer items per results page Run parallel scans
Your application is storing customer order data in DynamoDB. Which of the following pairs of attributes would make the best composite key to allow you to query DynamoDB efficiently to find a customer order that was placed on a specific day? CustomerID + ProductCategory CustomerID + ProductID CustomerID + Size CustomerID + OrderDate
CustomerID + OrderDate Sorry! To find an order placed on a specific date, use CustomerID and OrderDate as the composite key