- A
Cloud Logging automatically archives all logs to Cloud Storage with no configuration needed.
Why wrong: 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.
- B
Configure a Cloud Logging sink (log router) that routes logs to a Cloud Storage bucket.
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.
- C
Enable log streaming in Cloud Storage settings to receive logs from Cloud Logging.
Why wrong: Log export is configured in Cloud Logging (not Cloud Storage settings) using log sinks/routers.
- D
Use the Cloud Logging API to periodically download logs and upload them to Cloud Storage.
Why wrong: While possible programmatically, the purpose-built and simpler solution is log sinks — configured once and continuously routing logs without custom code.
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.
- →
Scaling with Google Cloud operations — study guide chapter
Learn the concepts, then practise the questions
- →
Scaling with Google Cloud operations practice questions
Targeted practice on this topic area only
- →
All GCDL questions
1,000 questions across all exam domains
- →
Google Cloud Digital Leader study guide
Full concept coverage aligned to exam objectives
- →
GCDL practice test guide
How to use practice tests most effectively before exam day
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.
Why Cloud Technology Can Transform Business practice questions
Practise GCDL questions linked to Why Cloud Technology Can Transform Business.
Fundamental Cloud Concepts practice questions
Practise GCDL questions linked to Fundamental Cloud Concepts.
Google Cloud Security practice questions
Practise GCDL questions linked to Google Cloud Security.
How Google Cloud Resources Are Managed practice questions
Practise GCDL questions linked to How Google Cloud Resources Are Managed.
Google Cloud Products and Services practice questions
Practise GCDL questions linked to Google Cloud Products and Services.
Why cloud technology is transforming business practice questions
Practise GCDL questions linked to Why cloud technology is transforming business.
Google Cloud products, services, and solutions practice questions
Practise GCDL questions linked to Google Cloud products, services, and solutions.
Scaling with Google Cloud operations practice questions
Practise GCDL questions linked to Scaling with Google Cloud operations.
Trust and security with Google Cloud practice questions
Practise GCDL questions linked to Trust and security with Google Cloud.
GCDL fundamentals practice questions
Practise GCDL questions linked to GCDL fundamentals.
GCDL scenario practice questions
Practise GCDL questions linked to GCDL scenario.
GCDL troubleshooting practice questions
Practise GCDL questions linked to GCDL troubleshooting.
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 →
Keep practising
More GCDL practice questions
- A DevOps team wants to adopt GitOps practices for managing their Google Cloud infrastructure. Which combination of tools…
- A startup is building an application that sends daily promotional push notifications to millions of mobile users on both…
- An organization's leadership wants to foster a 'fail fast' culture to accelerate innovation. A cloud environment directl…
- A company's on-premises applications occasionally need more compute capacity than their own infrastructure can provide (…
- A digital media company hosts video content globally. They want to reduce origin server load and deliver content faster…
- A security audit finds that a company's application service accounts have been granted broad IAM roles (e.g., Storage Ad…
Last reviewed: Jun 11, 2026
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.
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.
Sign in to join the discussion.