Google Cloud Professional Cloud Developer — Question 183
You are writing from a Go application to a Cloud Spanner database. You want to optimize your application’s performance using Google-recommended best practices. What should you do?
Answer options
- A. Write to Cloud Spanner using Cloud Client Libraries.
- B. Write to Cloud Spanner using Google API Client Libraries
- C. Write to Cloud Spanner using a custom gRPC client library.
- D. Write to Cloud Spanner using a third-party HTTP client library.
Correct answer: A
Explanation
The correct answer is A, as using Cloud Client Libraries is specifically recommended by Google for optimal performance and ease of integration with Cloud Spanner. Options B and C are less optimal because they do not leverage the specialized features of Cloud Client Libraries. Option D is not advisable as third-party libraries may not follow best practices and could lead to performance issues.