Google Cloud Professional Cloud Architect — Question 72

You are deploying a PHP App Engine Standard service with Cloud SQL as the backend. You want to minimize the number of queries to the database.
What should you do?

Answer options

Correct answer: A

Explanation

Option A is correct because using a dedicated memcache service and hashing the query allows for efficient retrieval of cached results, minimizing database queries. The other options either do not effectively reduce database queries or use shared memcache, which can lead to contention and less efficient caching.