Courseiva
Question 1,217 of 1,446

PCDE Practice Question: Manage a solution that can span multiple database technologies

Your Memorystore for Redis instance is used as a session store for a web application. You need to ensure that session data is not lost during a node failure. What should you 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

Enable AOF persistence in the Memorystore instance.

Memorystore for Redis supports persistence via RDB snapshotting or AOF (Append-Only File). For minimal data loss during a node failure, AOF persistence is recommended because it logs every write operation, allowing recovery with only a few seconds of data loss (depending on fsync settings). Standard Tier with replication provides high availability but does not persist data to disk, so a full zone failure can cause data loss. Periodic exports to Cloud Storage have gaps between exports, leading to data loss of up to the export interval. Therefore, enabling AOF persistence is the best approach to prevent data loss during a node failure.

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 Basic Tier instance with a large maxmemory setting.

    Why it's wrong here

    Basic Tier is a single-node instance with no replication or persistence. A large maxmemory setting does not prevent data loss on node failure.

  • Configure the instance as Standard Tier (with replication) and schedule periodic exports to Cloud Storage.

    Why it's wrong here

    Standard Tier with replication provides automatic failover, but replication is in-memory only. Periodic exports to Cloud Storage add durability, but data can be lost between export intervals. This does not guarantee zero data loss.

  • Enable persistence by setting the 'persistence' parameter to 'rdb' in the instance configuration.

    Why it's wrong here

    RDB persistence creates point-in-time snapshots at configurable intervals, but data written between snapshots is lost on failure. It reduces data loss but not as effectively as AOF.

  • Enable AOF persistence in the Memorystore instance.

    Why this is correct

    AOF persistence logs every write operation to disk, enabling near-real-time durability. In the event of a node failure, the AOF log can be replayed to recover data with minimal loss. This is the best option for session data that must not be lost.

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

Last reviewed: Jul 4, 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 PCDE 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 PCDE exam.