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?
- AConfigure Spanner to host the database. Use Data Catalog to delete data older than 30 days.
- BConfigure Spanner to host the database. Create a time-to-live policy that deletes data older than 30 days. (correct answer)
- CConfigure Bigtable to host the database. Create a time-to-live policy that deletes data older than 30 days.
- DConfigure Bigtable to host the database. Create a garbage collection policy in Bigtable that deletes data older than 30 days.
Reveal answer & explanationHide answer
The correct answer is B. Option B: Configure Spanner to host the database. Create a time-to-live policy that deletes data older than 30 days.
Explanation
Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach.