Professional Cloud Developer · Free Practice Question Medium

Question 2

Developed a web application to move log data to a Cloud Storage bucket daily. Authenticated users will review logs from the previous two weeks for critical events. Once a year, logs will be reviewed by an external auditor. Data must be saved for a minimum of 7 years. A storage solution that meets these requirements and reduces costs should be proposed. (Choose two.)


What actions do you need to take?

  • A Use the Bucket Lock feature to establish the data retention policy.
  • B Create a lifecycle management policy to change the storage class to Coldline for objects that are more than 14 days old.
  • C Create a lifecycle management policy to switch the storage class to Nearline for objects that are more than 14 days old.
  • D Generate a JSON Web Token (JWT) for users who require access to the Coldline storage buckets.
  • E Schedule a job to change the storage class to Coldline for objects that are more than 14 days old.
Reveal correct answers

Correct answers: C, E

Explanation

To meet the requirements of storing data for a period of no less than 7 years while minimizing costs, the most appropriate solution is to use lifecycle management policies to transition objects to lower storage classes as they age. In this case, a scheduled job can be run to set the storage class of log data to Coldline for objects older than 14 days, as it is unlikely that users will need to access logs older than two weeks frequently. Additionally, creating a lifecycle management policy to set the storage class to Nearline for objects older than 14 days will help to further reduce costs, while ensuring that log data can still be accessed within a reasonable timeframe by users or an external auditor. This approach is recommended by Google Cloud as a best practice for managing data storage costs while ensuring data availability and reliability.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need