Google Cloud Professional Cloud Developer — Question 339

You work for an ecommerce company. You are developing a new application with the following requirements:
• The application must have access to the most up-to-date data at all times.
• Due to company policy, data older than 30 days must be automatically deleted.

You need to determine which service should host the database, and how to configure the data deletion. You want to use the most efficient solution. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because Bigtable allows the implementation of a garbage collection policy, which is specifically designed for managing data deletion based on age. Options A and B incorrectly suggest using Spanner, which does not support the required garbage collection approach for data older than 30 days. Option C, while also using Bigtable, fails to mention the specific garbage collection policy that is required for efficient data management.