0
0
AWScloud~20 mins

Why DynamoDB for NoSQL in AWS - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
DynamoDB NoSQL Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why choose DynamoDB for NoSQL?

Which of the following is the main reason DynamoDB is preferred for NoSQL applications?

AIt is designed for batch processing and offline analytics only.
BIt requires manual server provisioning and complex setup for scaling.
CIt only supports relational data models with fixed schemas.
DIt provides a fully managed, serverless database with automatic scaling and low latency.
Attempts:
2 left
💡 Hint

Think about what makes a NoSQL database easy to use and scale in the cloud.

query_result
intermediate
1:30remaining
DynamoDB Consistency Model

What is the default consistency model for reads in DynamoDB?

ATransactional consistency by default.
BStrongly consistent reads by default.
CEventually consistent reads by default.
DNo consistency guarantees.
Attempts:
2 left
💡 Hint

Consider how DynamoDB balances performance and consistency for most reads.

📝 Syntax
advanced
2:30remaining
DynamoDB Query Syntax for Partition Key

Which of the following AWS CLI commands correctly queries a DynamoDB table named 'Users' for items with partition key 'UserID' equal to '123'?

Aaws dynamodb query --table-name Users --key-condition-expression "UserID == 123"
Baws dynamodb query --table-name Users --key-condition-expression "UserID = :v1" --expression-attribute-values '{":v1":{"S":"123"}}'
Caws dynamodb scan --table-name Users --filter-expression "UserID = 123"
Daws dynamodb query --table-name Users --key-condition-expression "UserID = '123'"
Attempts:
2 left
💡 Hint

Remember the syntax for expression attribute values and key condition expressions in DynamoDB CLI queries.

optimization
advanced
2:00remaining
Optimizing DynamoDB Read Capacity

You have a DynamoDB table with uneven access patterns. Which approach best optimizes read capacity usage?

AUse adaptive capacity and on-demand mode to automatically adjust throughput.
BManually increase read capacity only during business hours.
CSet a fixed high read capacity to handle peak traffic at all times.
DUse global secondary indexes without considering access patterns.
Attempts:
2 left
💡 Hint

Think about how DynamoDB can automatically handle uneven traffic.

🔧 Debug
expert
3:00remaining
Troubleshooting DynamoDB Conditional Write Failure

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?

AThe item does not exist or the 'status' attribute is not 'pending'.
BThe table does not have a primary key defined.
CThe update syntax is missing the attribute name in the expression.
DDynamoDB does not support conditional writes.
Attempts:
2 left
💡 Hint

Think about what causes conditional checks to fail in DynamoDB.