Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 40 of 481

Professional Cloud Developer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Developer Question 40

Single answerGoogle Cloud Platform

You are developing an e-commerce application on Google Cloud that experiences a high volume of read operations for product catalog data. The product data rarely changes, but when it does, it must reflect immediately across all users. You are tasked with implementing a caching solution to reduce database load and improve response times. Which solution is the most appropriate for this use case?

  1. A

    Use Memorystore for Redis with a time-to-live (TTL) policy and configure cache invalidation on data updates.

  2. B

    Implement a global Cloud CDN to cache the product catalog data.

  3. C

    Use Cloud SQL with read replicas to handle the increased read traffic.

  4. D

    Store the product catalog in Cloud Storage and use signed URLs for access.

Show answer and explanation

Correct answer: A

Explanation

The use case involves a high volume of read operations with occasional updates to the product catalog. A caching solution like Memorystore for Redis is ideal because it can handle frequent reads with low latency while providing mechanisms for cache invalidation to ensure data consistency after updates. Other options like Cloud CDN, Cloud SQL read replicas, and Cloud Storage are either unsuitable for dynamic data or do not meet the requirements for immediate consistency and low response times.

  • A. Correct.

    This is the correct solution. Memorystore for Redis is a managed caching service that provides low-latency access to cached data. By using a TTL policy and cache invalidation on updates, you can ensure that the cache remains consistent with the latest data while reducing database load.

  • B. Incorrect.

    Cloud CDN is designed for caching static content, such as images and videos, and is not suitable for dynamic or frequently queried data like a product catalog that changes occasionally.

  • C. Incorrect.

    Cloud SQL read replicas can help with read-heavy workloads but do not provide the low latency and caching benefits of a dedicated caching solution like Redis. Additionally, they introduce replication lag, which may not meet the requirement for immediate data updates.

  • D. Incorrect.

    Cloud Storage is designed for storing and serving static files, not for caching or handling high read operations for dynamic datasets like a product catalog.

Timed practice exam

Take a Google Professional Cloud Developer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam