Google Cloud Professional Cloud Developer — Question 246
You are a developer at a financial institution. You use Cloud Shell to interact with Google Cloud services. User data is currently stored on an ephemeral disk; however, a recently passed regulation mandates that you can no longer store sensitive information on an ephemeral disk. You need to implement a new storage solution for your user data. You want to minimize code changes. Where should you store your user data?
Answer options
- A. Store user data on a Cloud Shell home disk, and log in at least every 120 days to prevent its deletion.
- B. Store user data on a persistent disk in a Compute Engine instance.
- C. Store user data in a Cloud Storage bucket.
- D. Store user data in BigQuery tables.
Correct answer: B
Explanation
The correct answer is B because a persistent disk in a Compute Engine instance provides a reliable and compliant storage solution for sensitive data, ensuring it is not lost and meets regulatory requirements. Option A is incorrect as a Cloud Shell home disk is still ephemeral, and logging in does not prevent data loss. Option C, while viable for some data, may not meet the same compliance standards required for sensitive information, and option D is not suitable for storing user data as it is primarily used for analytics.