Topic 1 Question 99
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?
Set the memcache service level to dedicated. Create a key from the hash of the query, and return database values from memcache before issuing a query to Cloud SQL.
Set the memcache service level to dedicated. Create a cron task that runs every minute to populate the cache with keys containing query results.
Set the memcache service level to shared. Create a cron task that runs every minute to save all expected queries to a key called ג€cached_queriesג€.
Set the memcache service level to shared. Create a key called ג€cached_queriesג€, and return database values from the key before using a query to Cloud SQL.
ユーザの投票
コメント(17)
- 👍 20Eroc2019/10/28
A dedicated memset is always better than shared until cost-effectiveness specify in the exam as objective. So Option C and D are ruled out.
From A and B, Option B is sending and updating query every minutes which is over killing. So reasonable option left with A which balance performance and cost.
My answer will be A
👍 17hiteshrup2020/12/13I got this question in exam.
👍 5ACE_ASPIRE2022/08/13
シャッフルモード