AWS Certified Solutions Architect – Professional — Question 932
In regard to DynamoDB, when you create a table with a hash-and-range key.
Answer options
- A. You must define one or more Local secondary indexes on that table
- B. You must define one or more Global secondary indexes on that table
- C. You can optionally define one or more secondary indexes on that table
- D. You must define one or more secondary indexes on that table
Correct answer: C
Explanation
When creating a DynamoDB table with a hash-and-range key, defining secondary indexes is entirely optional. You can choose to create Local secondary indexes or Global secondary indexes to support diverse query patterns, but they are not mandatory for the table to function. Therefore, you can successfully create and use the table without establishing any secondary indexes.