New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Developer Exam - Topic 14 Question 29 Discussion

Actual exam question for Google's Professional Cloud Developer exam
Question #: 29
Topic #: 14
[All Professional Cloud Developer Questions]

You are parsing a log file that contains three columns: a timestamp, an account number (a string), and a

transaction amount (a number). You want to calculate the sum of all transaction amounts for each unique account number efficiently.

Which data structure should you use?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Jesusa
4 months ago
Not sure about the hash table, what if there are too many collisions?
upvoted 0 times
...
Lyda
4 months ago
Wait, can a comma-delimited string even handle this?
upvoted 0 times
...
Lottie
4 months ago
A linked list? That sounds slow for this task.
upvoted 0 times
...
Leonard
4 months ago
I agree, hash tables are super efficient for unique keys.
upvoted 0 times
...
Annice
5 months ago
A hash table is definitely the way to go for this!
upvoted 0 times
...
Salena
5 months ago
A two-dimensional array seems too complicated for this; I guess a hash table would be simpler, but I'm not completely confident.
upvoted 0 times
...
Leah
5 months ago
I'm not entirely sure, but I remember something about linked lists being inefficient for this kind of task.
upvoted 0 times
...
Huey
5 months ago
I think a hash table might be the best choice since it allows for quick lookups and can handle unique keys well.
upvoted 0 times
...
Francoise
5 months ago
I practiced a similar question, and I feel like a hash table is definitely the way to go for summing amounts by account number.
upvoted 0 times
...
Lura
5 months ago
Hmm, I'm a bit unsure about this one. Monitoring every keystroke seems a bit extreme, but I'm not sure if that's the best approach. I'll have to think this through carefully.
upvoted 0 times
...
Erasmo
5 months ago
Availability might also be a good option, to make sure the selected products are actually in stock and available for purchase.
upvoted 0 times
...
Apolonia
5 months ago
Okay, I think I've got a strategy here. The key is to focus on the error message about the solution checker not being able to export the solution. That's the main clue we have to work with.
upvoted 0 times
...

Save Cancel