You work for an organization that manages an online ecommerce website. Your company plans to expand across the world; however, the estore currently serves one specific region. You need to select a SQL database and configure a schema that will scale as your organization grows. You want to create a table that stores all customer transactions and ensure that the customer (CustomerId) and the transaction (TransactionId) are unique. What should you do?
Suggested Answer: C
Get Premium Professional Cloud Developer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
21 comments · newest first
MA
Maurine
11 months ago
I think B is the best choice for avoiding collisions!
DE
Destiny
11 months ago
D? Really? Incremental IDs in a global context? Seems risky.
JO
Johana
12 months ago
C sounds interesting, but does it really scale better than A?
VI
Vi
12 months ago
I prefer B, UUIDs are more unique and safer!
SH
Shanda
1 year ago
A is the way to go! Incremental IDs are easy to manage.
JO
Josefa
1 year ago
This is a tricky one. I'm not super familiar with the differences between Cloud SQL and Cloud Spanner, so I'm not sure which one to choose. And I'm also not sure if I should use an incremental number or a random string for the TransactionId. I guess I'll have to do some more research before deciding.
LI
Lisandra
1 year ago
Okay, let me think this through. I want to make sure the database can scale as the business grows, so I'm leaning towards Cloud Spanner. And using a random string (UUID) for the TransactionId seems like a good way to ensure uniqueness. I think I'll go with option C.
VE
Verlene
1 year ago
Hmm, I'm a bit unsure about this one. Should I use Cloud SQL or Cloud Spanner? I know Spanner is supposed to be more scalable, but I'm not sure if that's really necessary for this use case. Maybe I'll play it safe and go with Cloud SQL.
FR
Francine
1 year ago
This seems like a pretty straightforward database design question. I'd go with option B - using a random string (UUID) for the TransactionId. That way, I can ensure both the CustomerId and TransactionId are unique.
WE
Wei
1 year ago
I vaguely remember that using incremental numbers can lead to issues with scalability, especially in distributed systems. Maybe I should go with a UUID instead?
NO
Nobuko
1 year ago
I'm leaning towards option C because using a UUID for TransactionId seems safer for uniqueness, but I can't recall if we covered the performance implications.
EV
Eva
1 year ago
I think we practiced a similar question where we had to choose between Cloud SQL and Cloud Spanner. I feel like Cloud Spanner is more scalable for global expansion.
FE
Felicidad
1 year ago
I remember discussing the importance of primary keys in our database schema, but I'm not sure if incremental numbers or UUIDs are better for TransactionId.
NI
Nicolette
1 year ago
Okay, I've got this. The seller's reasons for deciding whether to bid would be captured in an "opportunity assessment" - that's the correct answer here.
KR
Krystal
1 year ago
Hmm, I'm not totally sure about this one. The options seem pretty similar - I'll have to think it through carefully. Maybe I can eliminate a couple of the choices first.
PA
Paulina
1 year ago
Hmm, I'm a bit unsure about this one. The image shows a tabbed interface, but I'm not totally clear on the hierarchy of the widgets involved. I'll need to double-check my understanding of TabBar and TabBarView.
BO
Bobbie
1 year ago
This reminds me of a practice question about address security vulnerabilities. I think the answer might actually be true.
TH
Theresia
3 years ago
That's a good point. If performance is a concern, then option D might be the way to go. But I'm worried about the limitations of Cloud Spanner compared to Cloud SQL.
GL
Glory
3 years ago
I agree, but what about the performance implications of using a UUID? Aren't incremental numbers generally faster for database lookups?
JA
Jani
3 years ago
Definitely, and we need to make sure the transaction and customer IDs are unique. I'm leaning towards option B or C, since using a random string (UUID) for the TransactionId seems like a more robust solution.
LA
Lai
3 years ago
This exam question is a bit tricky, but I think I've got it figured out. The key is to choose a database solution that can scale as the organization grows globally.