Multiple Choice
An electric utility company wants to store power plant sensor data in an Amazon DynamoDB table. The utility company has over 100 power plants and each power plant has over 200 sensors that send data every 2 seconds. The sensor data includes time with milliseconds precision, a value, and a fault attribute if the sensor is malfunctioning. Power plants are identified by a globally unique identifier. Sensors are identified by a unique identifier within each power plant. A database specialist needs to design the table to support an efficient method of finding all faulty sensors within a given power plant. Which schema should the database specialist use when creating the DynamoDB table to achieve the fastest query time when looking for faulty sensors?
A) Use the plant identifier as the partition key and the measurement time as the sort key. Create a global secondary index (GSI) with the plant identifier as the partition key and the fault attribute as the sort key.
B) Create a composite of the plant identifier and sensor identifier as the partition key. Use the measurement time as the sort key. Create a local secondary index (LSI) on the fault attribute.
C) Create a composite of the plant identifier and sensor identifier as the partition key. Use the measurement time as the sort key. Create a global secondary index (GSI) with the plant identifier as the partition key and the fault attribute as the sort key.
D) Use the plant identifier as the partition key and the sensor identifier as the sort key. Create a local secondary index (LSI) on the fault attribute.
Correct Answer:

Verified
Correct Answer:
Verified
Q22: A database specialist is building a system
Q23: A large gaming company is creating a
Q24: A financial company has allocated an Amazon
Q25: Developers have requested a new Amazon Redshift
Q26: A company just migrated to Amazon Aurora
Q28: A company uses Amazon DynamoDB as the
Q29: A company is closing one of its
Q30: A company developed an AWS CloudFormation template
Q31: A company is releasing a new mobile
Q32: A company uses Amazon Aurora for secure