AWS Exams GCP Exams Azure Exams GitHub Exams Jira Exams ISC2 Exams

Video: Your colleague has shared the code snippet below gcp video

Question 1
« Back   Next gcp Cloud developer-professional Question »

Full Certification Question

Your colleague has shared the code snippet below, which aims to add a credit to an account balance in Cloud Datastore. public Entity creditAccount (long accountId, long creditAmount) { Entity account = Entity.builder(account) .set("creditAmount", creditAmount) .build(); datastore.put(account); return account; } What suggestion should you offer for improving this code?