Question 309 of 1,000
Scaling with Google Cloud operationseasyMultiple ChoiceObjective-mapped

Export Cloud Logging to Cloud Storage

This GCDL practice question tests your understanding of scaling with google cloud operations. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company exports all their Google Cloud logs to Cloud Storage for long-term retention required by their compliance policy (7-year log retention). Which Cloud Logging feature enables routing logs to Cloud Storage?

Quick Answer

The answer is configuring a Cloud Logging sink (log router) that routes logs to a Cloud Storage bucket. This is correct because a sink is the native, automated mechanism within Cloud Logging that continuously exports matching log entries to a specified destination, such as a Cloud Storage bucket, without requiring any custom scripts or manual intervention. On the Google Cloud Digital Leader exam, this concept tests your understanding of how to meet long-term compliance requirements, like a 7-year retention policy, by using sinks to route logs for archival storage. A common trap is confusing sinks with log-based metrics or alerts, but remember: sinks are for routing logs out of Logging, while metrics and alerts analyze logs within Logging. For a quick memory tip, think of a kitchen sink—it takes water (logs) and sends it down the drain (to Cloud Storage) for storage, not for immediate use.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Configure a Cloud Logging sink (log router) that routes logs to a Cloud Storage bucket.

Cloud Logging uses sinks (log routers) to export logs to supported destinations, including Cloud Storage. A sink defines a filter and a destination; when configured, it routes matching log entries to the specified Cloud Storage bucket for long-term retention. This is the only native mechanism for continuous, automated log export without custom scripting.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Cloud Logging automatically archives all logs to Cloud Storage with no configuration needed.

    Why it's wrong here

    Log archival to Cloud Storage requires explicit sink configuration. By default, logs are retained in Cloud Logging for 30–400 days depending on log type, then deleted.

  • Configure a Cloud Logging sink (log router) that routes logs to a Cloud Storage bucket.

    Why this is correct

    Log sinks route selected log entries to a destination (Cloud Storage, BigQuery, Pub/Sub). A sink pointing to a GCS bucket with 7-year retention achieves the compliance archival requirement.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Enable log streaming in Cloud Storage settings to receive logs from Cloud Logging.

    Why it's wrong here

    Log export is configured in Cloud Logging (not Cloud Storage settings) using log sinks/routers.

  • Use the Cloud Logging API to periodically download logs and upload them to Cloud Storage.

    Why it's wrong here

    While possible programmatically, the purpose-built and simpler solution is log sinks — configured once and continuously routing logs without custom code.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates assume Cloud Logging automatically archives logs to Cloud Storage (Option A) because of the 'retention' wording, but in reality, sinks are required for any export, and the default retention is only 30 days.

Detailed technical explanation

How to think about this question

A Cloud Logging sink uses a filter (e.g., resource.type or severity) to select logs and writes them as newline-delimited JSON files to the destination bucket. The sink can also route logs to Pub/Sub or BigQuery, but for Cloud Storage, each log entry becomes part of a file aggregated by time interval (e.g., every 5 minutes). The retention policy on the bucket itself (e.g., 7-year retention via Object Lifecycle Management) must be set independently, as the sink only delivers logs; it does not enforce deletion or retention.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related GCDL practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free GCDL practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this GCDL question test?

Scaling with Google Cloud operations — This question tests Scaling with Google Cloud operations — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Configure a Cloud Logging sink (log router) that routes logs to a Cloud Storage bucket. — Cloud Logging uses sinks (log routers) to export logs to supported destinations, including Cloud Storage. A sink defines a filter and a destination; when configured, it routes matching log entries to the specified Cloud Storage bucket for long-term retention. This is the only native mechanism for continuous, automated log export without custom scripting.

What should I do if I get this GCDL question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More GCDL practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.