ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 148 - Professional Cloud Architect discussion

Report
Export

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.
Answers
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.
Answers
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".
Answers
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.
Answers
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.
Suggested answer: A
asked 18/09/2024
Shivanth Jha
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first