exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 99 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 99
Topic #: 1
[All Professional Cloud Architect Questions]

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?

  • A. 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.
  • B. Set the memcache service level to dedicated. Create a cron task that runs every minute to populate the cache with keys containing query results.
  • C. 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ג€.
  • D. 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hiteshrup
Highly Voted 3 years, 3 months ago
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
upvoted 30 times
ArtistS
4 months, 2 weeks ago
Good job bro
upvoted 1 times
...
...
Eroc
Highly Voted 4 years, 5 months ago
https://cloud.google.com/appengine/docs/standard/php/memcache/using
upvoted 23 times
nitinz
3 years ago
A is correct
upvoted 6 times
...
dlzhang
2 years, 9 months ago
https://cloud.google.com/memorystore/docs/redis/redis-overview
upvoted 2 times
...
tartar
3 years, 7 months ago
A is ok
upvoted 11 times
...
...
Abhi_ma_cdl_22
Most Recent 4 days, 21 hours ago
Selected Answer: A
A is correct
upvoted 1 times
...
Sur_Nikki
10 months, 4 weeks ago
Best is A
upvoted 2 times
...
megumin
1 year, 4 months ago
Selected Answer: A
A is ok
upvoted 1 times
...
AzureDP900
1 year, 5 months ago
A is fine.. dedicated mem cache
upvoted 1 times
...
ACE_ASPIRE
1 year, 7 months ago
I got this question in exam.
upvoted 5 times
...
DrishaS4
1 year, 8 months ago
Selected Answer: A
https://cloud.google.com/appengine/docs/standard/php/memcache/using
upvoted 1 times
...
gaojun
1 year, 12 months ago
Obviously, the answer is A
upvoted 1 times
...
ehgm
2 years, 3 months ago
Selected Answer: A
Dedicated and shared will resolve the problem, the key is: store all queries in only one key "cached_queries" is not good, we have limits: https://cloud.google.com/appengine/docs/standard/python/memcache Create a key of each query is better.
upvoted 4 times
...
vincy2202
2 years, 4 months ago
A is the correct answer
upvoted 2 times
...
nqthien041292
2 years, 4 months ago
Selected Answer: A
Vote A
upvoted 1 times
...
joe2211
2 years, 4 months ago
Selected Answer: A
vote A
upvoted 1 times
...
victory108
2 years, 10 months ago
A. 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.
upvoted 3 times
...
un
2 years, 10 months ago
A is correct
upvoted 1 times
...
Ausias18
2 years, 12 months ago
Answer is A
upvoted 1 times
...
ga
3 years, 1 month ago
A is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago