Which improvement should you suggest your teammate make?

Your teammate has asked you to review the code below, which is adding a credit to an account balance in Cloud Datastore.

Which improvement should you suggest your teammate make?

A . Get the entity with an ancestor query.
B . Get and put the entity in a transaction.
C . Use a strongly consistent transactional database.
D . Don’t return the account entity from the function.

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments