- A
Use a regional persistent disk to replicate data across zones.
Why wrong: Regional disk protects against zone failure but not VM failure; logs are still on disk but not streamed off-instance.
- B
Schedule persistent disk snapshots every 5 minutes.
Why wrong: Snapshots are not real-time and may miss logs generated between snapshots.
- C
Create a script to copy logs to a Cloud Storage bucket every minute.
Why wrong: This is a manual workaround but not as reliable as a managed agent; also, if VM fails, the script stops.
- D
Configure the application to write logs to Cloud Logging using the Logging agent.
Logs are streamed to a durable, centralized service, ensuring no loss on VM failure.
Quick Answer
The answer is to configure the application to write logs to Cloud Logging using the Logging agent. This is correct because the Logging agent streams log data from the VM to Cloud Logging in near real-time, decoupling log storage from the VM’s lifecycle and local persistent disk. If the VM fails, the logs are already safely stored in a centralized, durable, managed service, preventing log loss on Compute Engine VM failure. On the Google Professional Cloud Architect exam, this scenario tests your understanding of architecting for resilience and observability—specifically that ephemeral VM resources like local disks are not reliable for critical log data. A common trap is choosing to replicate the persistent disk or use snapshots, but those still tie log durability to the VM’s storage lifecycle. Memory tip: think “stream, don’t store”—logs should flow off the instance before the instance can fail.
Google PCA Ensure solution and operations reliability Practice Question
This PCA practice question tests your understanding of ensure solution and operations reliability. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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 is running a critical application on Compute Engine. The application writes logs to a local persistent disk. The operations team wants to ensure logs are not lost if the VM fails. What should they do?
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 the application to write logs to Cloud Logging using the Logging agent.
Option D is correct because Cloud Logging with the Logging agent provides a centralized, durable, and managed log storage solution. The agent streams logs from the VM to Cloud Logging in near real-time, ensuring logs are preserved even if the VM or its local persistent disk fails. This decouples log storage from the VM's lifecycle, meeting the operations team's requirement for log durability.
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.
- ✗
Use a regional persistent disk to replicate data across zones.
Why it's wrong here
Regional disk protects against zone failure but not VM failure; logs are still on disk but not streamed off-instance.
- ✗
Schedule persistent disk snapshots every 5 minutes.
Why it's wrong here
Snapshots are not real-time and may miss logs generated between snapshots.
- ✗
Create a script to copy logs to a Cloud Storage bucket every minute.
Why it's wrong here
This is a manual workaround but not as reliable as a managed agent; also, if VM fails, the script stops.
- ✓
Configure the application to write logs to Cloud Logging using the Logging agent.
Why this is correct
Logs are streamed to a durable, centralized service, ensuring no loss on VM failure.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often overestimate the reliability of local persistent disks or periodic backups (snapshots/scripts) for log durability, failing to recognize that only a real-time, off-instance streaming solution like Cloud Logging eliminates the risk of log loss during VM failure.
Detailed technical explanation
How to think about this question
The Logging agent (fluentd-based) uses a buffered, reliable transport protocol (gRPC or HTTP) to send logs to Cloud Logging's API, which stores them in a highly durable, replicated backend (typically using Colossus, Google's distributed file system). This approach achieves near-real-time log ingestion with minimal latency, typically under 10 seconds, and supports automatic retries on transient failures. In a real-world scenario, a VM crash during a high-traffic event would lose all logs not yet flushed by a periodic script or snapshot, whereas the Logging agent's continuous streaming ensures logs are safely stored in Cloud Logging before the crash.
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 startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.
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.
- →
Ensure solution and operations reliability — study guide chapter
Learn the concepts, then practise the questions
- →
Ensure solution and operations reliability practice questions
Targeted practice on this topic area only
- →
All PCA questions
509 questions across all exam domains
- →
Google Professional Cloud Architect study guide
Full concept coverage aligned to exam objectives
- →
PCA practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PCA practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Design and plan a cloud solution architecture practice questions
Practise PCA questions linked to Design and plan a cloud solution architecture.
Manage and provision cloud infrastructure practice questions
Practise PCA questions linked to Manage and provision cloud infrastructure.
Design for security and compliance practice questions
Practise PCA questions linked to Design for security and compliance.
Analyze and optimize technical and business processes practice questions
Practise PCA questions linked to Analyze and optimize technical and business processes.
Manage implementation of cloud architecture practice questions
Practise PCA questions linked to Manage implementation of cloud architecture.
Ensure solution and operations reliability practice questions
Practise PCA questions linked to Ensure solution and operations reliability.
PCA fundamentals practice questions
Practise PCA questions linked to PCA fundamentals.
PCA scenario practice questions
Practise PCA questions linked to PCA scenario.
PCA troubleshooting practice questions
Practise PCA questions linked to PCA troubleshooting.
Practice this exam
Start a free PCA 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 PCA question test?
Ensure solution and operations reliability — This question tests Ensure solution and operations reliability — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Configure the application to write logs to Cloud Logging using the Logging agent. — Option D is correct because Cloud Logging with the Logging agent provides a centralized, durable, and managed log storage solution. The agent streams logs from the VM to Cloud Logging in near real-time, ensuring logs are preserved even if the VM or its local persistent disk fails. This decouples log storage from the VM's lifecycle, meeting the operations team's requirement for log durability.
What should I do if I get this PCA 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 →
Last reviewed: Jun 11, 2026
This PCA 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 PCA 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.