nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #160

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

The correct answer is A. Set the memcache service level to dedicated. Create a key from the hash of the query, and return. https://cloud.google.com/appengine/docs/standard/php/memcache/using

Submitted by lucia.co· Mar 30, 2026Optimizing technical and business processes

Question

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

Options

  • ASet the memcache service level to dedicated. Create a key from the hash of the query, and return
  • BSet the memcache service level to dedicated. Create a cron task that runs every minute to
  • CSet the memcache service level to shared. Create a cron task that runs every minute to save all
  • DSet the memcache service level to shared. Create a key called "cached-queries", and return

How the community answered

(31 responses)
  • A
    74% (23)
  • B
    16% (5)
  • C
    3% (1)
  • D
    6% (2)

Explanation

https://cloud.google.com/appengine/docs/standard/php/memcache/using

Topics

#Memcache#App Engine#query caching#database optimization

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice