Which of the following is the main reason DynamoDB is preferred for NoSQL applications?
Think about what makes a NoSQL database easy to use and scale in the cloud.
DynamoDB is fully managed and serverless, which means you don't worry about servers. It automatically scales to handle traffic and offers low latency, making it ideal for NoSQL applications.
What is the default consistency model for reads in DynamoDB?
Consider how DynamoDB balances performance and consistency for most reads.
DynamoDB uses eventually consistent reads by default to provide better performance and availability. Strongly consistent reads can be requested explicitly.
Which of the following AWS CLI commands correctly queries a DynamoDB table named 'Users' for items with partition key 'UserID' equal to '123'?
Remember the syntax for expression attribute values and key condition expressions in DynamoDB CLI queries.
Option B uses the correct syntax with expression attribute values and key condition expression. Option B uses invalid operator '=='. Option B uses scan instead of query. Option B incorrectly quotes the value inside the expression.
You have a DynamoDB table with uneven access patterns. Which approach best optimizes read capacity usage?
Think about how DynamoDB can automatically handle uneven traffic.
Adaptive capacity and on-demand mode allow DynamoDB to automatically adjust throughput to match traffic patterns, optimizing cost and performance.
You run a DynamoDB update with a condition expression to update an item only if attribute 'status' equals 'pending'. The update fails with a ConditionalCheckFailedException. What is the most likely cause?
Think about what causes conditional checks to fail in DynamoDB.
A ConditionalCheckFailedException occurs when the condition expression evaluates to false. This happens if the item is missing or the attribute value does not match the condition.