nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #189

You manage your company's ecommerce platform's payment system, which runs on Google Cloud. Your company must retain user logs for 1 year for internal auditing purposes and for 3 years to meet complian

The correct answer is C. Store the logs in Cloud Logging as custom logs with a custom retention period.. The correct answer is C: Store logs in Cloud Logging as custom logs with a custom retention period. Cloud Logging supports custom log buckets with configurable retention periods of up to 10 years (3650 days), which covers both the 1-year internal and 3-year compliance requirement

Monitoring, logging, and troubleshooting

Question

You manage your company's ecommerce platform's payment system, which runs on Google Cloud. Your company must retain user logs for 1 year for internal auditing purposes and for 3 years to meet compliance requirements. You need to store new user logs on Google Cloud to minimize on-premises storage usage and ensure that they are easily searchable. You want to minimize effort while ensuring that the logs are stored correctly. What should you do?

Options

  • AStore the logs in a Cloud Storage bucket with bucket lock turned on.
  • BStore the logs in a Cloud Storage bucket with a 3-year retention period.
  • CStore the logs in Cloud Logging as custom logs with a custom retention period.
  • DStore the logs in a Cloud Storage bucket with a 1-year retention period. After 1 year, move the

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    10% (3)
  • C
    71% (22)
  • D
    16% (5)

Explanation

The correct answer is C: Store logs in Cloud Logging as custom logs with a custom retention period. Cloud Logging supports custom log buckets with configurable retention periods of up to 10 years (3650 days), which covers both the 1-year internal and 3-year compliance requirements in a single configuration. Crucially, Cloud Logging provides powerful, built-in log search and filtering capabilities (Log Explorer), making logs easily searchable with minimal effort. A Cloud Storage bucket with Bucket Lock (A) prevents deletion but does not differentiate the two retention windows and is not easily searchable. A Cloud Storage bucket with a 3-year retention period (B) satisfies compliance but Cloud Storage is not designed for easy log querying. A 1-year bucket with manual migration after 1 year (D) requires ongoing manual effort and operational overhead to manage the transition.

Topics

#Cloud Logging#Data Retention#Compliance#Log Management

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice