nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #25

You are working with a government agency that requires you to archive application logs for seven years. You need to configure Stackdriver to export and store the logs while minimizing costs of…

The correct answer is D. Create a sink in Stackdriver, name it, create a bucket on Cloud Storage for storing archived logs. The requirement is 7-year log archival at minimum cost. Stackdriver (Cloud Logging) supports log sinks, which stream logs to a destination without requiring any custom application code. Cloud Storage is the cheapest GCP storage tier for infrequently accessed data (especially…

Submitted by femi9· Apr 18, 2026Implementing and managing cost controls

Question

You are working with a government agency that requires you to archive application logs for seven years. You need to configure Stackdriver to export and store the logs while minimizing costs of storage. What should you do?

Options

  • ACreate a Cloud Storage bucket and develop your application to send logs directly to the bucket.
  • BDevelop an App Engine application that pulls the logs from Stackdriver and saves them in
  • CCreate an export in Stackdriver and configure Cloud Pub/Sub to store logs in permanent storage
  • DCreate a sink in Stackdriver, name it, create a bucket on Cloud Storage for storing archived logs,

How the community answered

(57 responses)
  • A
    16% (9)
  • B
    9% (5)
  • C
    4% (2)
  • D
    72% (41)

Explanation

The requirement is 7-year log archival at minimum cost. Stackdriver (Cloud Logging) supports log sinks, which stream logs to a destination without requiring any custom application code. Cloud Storage is the cheapest GCP storage tier for infrequently accessed data (especially with Coldline or Archive classes), making it ideal for compliance archival. Option A requires custom application code to ship logs, adding development effort and bypassing the built-in sink mechanism. Option B requires building an App Engine application purely for log collection - unnecessary effort and added cost. Option C routes logs through Pub/Sub first, which adds messaging costs and complexity without benefit for archival. Option D - creating a Stackdriver sink directly to a Cloud Storage bucket - is the native, low-effort, lowest-cost solution for long-term log archival.

Topics

#Cloud Logging#Log Archiving#Cloud Storage#Cost Optimization

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice