Bird
0
0

Which of the following is the correct way to define an item attribute in DynamoDB?

easy📝 Configuration Q12 of 15
AWS - DynamoDB
Which of the following is the correct way to define an item attribute in DynamoDB?
A<code>("Name", "John", "Age", 30)</code>
B<code>{"Name": "John", "Age": 30}</code>
C<code>["Name", "John", "Age", 30]</code>
D<code>"Name": "John", "Age": 30</code>
Step-by-Step Solution
Solution:
  1. Step 1: Recognize the attribute format

    Attributes are key-value pairs, best represented as JSON objects with keys and values.
  2. Step 2: Match the correct syntax

    {"Name": "John", "Age": 30} shows a JSON object with keys "Name" and "Age" and their values, which is correct.
  3. Final Answer:

    {"Name": "John", "Age": 30} -> Option B
  4. Quick Check:

    Attributes = key-value pairs in JSON [OK]
Quick Trick: Attributes are key-value pairs in JSON format [OK]
Common Mistakes:
  • Using arrays instead of key-value pairs
  • Using tuples instead of objects
  • Omitting braces for JSON objects

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes