You are designing a schema for a Cloud Spanner customer database. You want to store a phone number array field in a customer table. You also want to allow users to search customers by phone number. How should you design this schema?
A) Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer.
B) Create a table named Customers. Create a table named Phones. Add a CustomerId field in the Phones table to find the CustomerId from a phone number.
C) Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer. Create a secondary index on the Array field.
D) Create a table named Customers as a parent table. Create a table named Phones, and interleave this table into the Customer table. Create an index on the phone number field in the Phones table.
Correct Answer:
Verified
Q36: You want to use the Stackdriver Logging
Q37: Case Study Company Overview HipLocal is a
Q38: Your application performs well when tested locally,
Q39: You are using Cloud Build build to
Q40: You migrated your applications to Google Cloud
Q42: You want to re-architect a monolithic application
Q43: You have an analytics application that runs
Q44: You are using Cloud Build to build
Q45: You are planning to deploy your application
Q46: You have an application in production. It
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents