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

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.