
AWS Certified Developer - Associate
Get started today
Ultimate access to all questions.
You are a system administrator, and your company has recently migrated its production application to AWS, transitioning the database from MySQL to AWS DynamoDB. As part of this migration, you are tasked with adding new tables to AWS DynamoDB. One of the requirements is for your application to be able to query the data using both the primary key and an alternate key. It is important to note that this capability must be configured during the initial table creation, as it cannot be altered later.
Which of the following actions should you take?
You are a system administrator, and your company has recently migrated its production application to AWS, transitioning the database from MySQL to AWS DynamoDB. As part of this migration, you are tasked with adding new tables to AWS DynamoDB. One of the requirements is for your application to be able to query the data using both the primary key and an alternate key. It is important to note that this capability must be configured during the initial table creation, as it cannot be altered later.
Which of the following actions should you take?
Explanation:
Create an LSI
LSI stands for Local Secondary Index. Some applications only need to query data using the base table's primary key; however, there may be situations where an alternate sort key would be helpful. To give your application a choice of sort keys, you can create one or more local secondary indexes on a table and issue Query or Scan requests against these indexes.