You are collecting loT sensor data from millions of devices across the world and storing the data in BigQuery. Your access pattern is based on recent data tittered by location_id and device_version with the following query:

You want to optimize your queries for cost and performance. How should you structure your data?
Suggested Answer: C
Get Premium Professional Data Engineer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
JO
Jolanda
1 year ago
C doesn't seem efficient for large datasets, though.
SO
Sophia
1 year ago
B is definitely the way to go, it balances everything nicely!
SH
Sherron
1 year ago
Wait, can we really cluster by multiple fields like that?
AD
Adelaide
1 year ago
I disagree, A might be more straightforward.
MI
Mickie
1 year ago
B seems like the best option for optimizing both cost and performance.
KA
Kate
1 year ago
I believe clustering by location_id and device_version could help with query performance, but I’m not entirely sure if that’s the right choice for this scenario.
TA
Tarra
1 year ago
I’m a bit confused about whether to cluster or partition first. I feel like I’ve seen similar questions, but I can’t recall the best approach.
SH
Shawana
1 year ago
I think option B sounds familiar; it seems like a good way to optimize for both cost and performance based on our practice questions.
AL
Alexis
1 year ago
I remember we discussed partitioning and clustering in class, but I'm not sure if I should prioritize one over the other here.
MU
Murray
1 year ago
Okay, I think I've got this. If an individual end user can't access a business application, that's likely a P1 issue since it's impacting a user's ability to do their job. I'll go with A - Yes.
RO
Rozella
1 year ago
I'm pretty confident that option B is the right answer here. Modular inputs and HEC seem like the recommended way to ingest data on clustered indexers.