C02 Question Preview

Safe Public Question Preview 1

Only the demo-safe public version is shown here. Correct answers, full explanations, internal IDs, and paid-only content stay protected.

Multiple ChoiceDevelopment with AWS Services
Question 1. An ecommerce company is developing a serverless application to track user activities. The company needs to track each type of activity with a timestamp and a unique product ID. The company also must track actions that are associated with each activity, such as product views, shopping cart actions, purchases, and checkout processes. The company is planning a marketing campaign based on each user's activity. A developer needs to implement a partitioning strategy for an Amazon DynamoDB table to meet the data storage and access requirements for the application. The strategy must maximize provisioned throughput efficiency while minimizing the risk of throttling. Which solution will meet these requirements?
A. Create a composite primary key. Set the user ID as the partition key and the timestamp as the sort key.
B. Create a composite primary key. Set the product ID as the partition key and the associated actions as the sort key.
C. Use the product ID as the partition key. Create an Application Auto Scaling policy to update the table’s provisioned throughput when the table exceeds its capacity usage target.
D. Create an AWS Lambda function that adds a counter attribute that increases by one for each new record. Use the counter attribute as the partition key.
Explanation is locked. Start the demo or unlock full access to review explanations inside the protected test engine.

Related Safe Previews

FAQ

Does this page show the answer?

No. Answers and explanations are protected inside the private test engine.