Professional Cloud Database Engineer Practice Questions

Google Cloud Professional Cloud Database Engineer exam preparation

Professional Cloud Database Engineer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 120 minutes.

Professional Cloud Database Engineer free question 10 / 10 · Domain 4: Deploy scalable and highly available databases in Google Cloud

You are scaling down the capacity of a Memorystore for Redis Standard Tier instance. How is the request handled if you specify a size that is smaller than the amount of data stored?

  1. The excess is moved off to RDB, and it can still be read from RDB after the scale-down
  2. The scale-down is accepted, and the keys that exceed the size are removed by the eviction policy
  3. The scale-down is accepted, and the excess is kept on the replica side
  4. The scale-down fails, so you choose a size larger than the amount of data that is stored
Show the answer and explanation

Answer: D

Why this is correct
The Best practices for scaling an instance section of the instance scaling page says that when you reduce the capacity of a Standard Tier instance, you must choose a size larger than the amount of data that you have stored, and that otherwise scaling fails. Its example says that an instance of 10 GB holding 5.5 GB of data can be reduced to as little as 6 GB.

Why the other options are wrong
"The scale-down is accepted, and the keys that exceed the size are removed by the eviction policy" … A scale-down does not delete the excess data to match the requested size. A size smaller than the stored amount fails.
"The scale-down is accepted, and the excess is kept on the replica side" … A replica is a copy of the primary data, and it cannot serve as separate capacity to hold the excess.
"The excess is moved off to RDB, and it can still be read from RDB after the scale-down" … There is no mechanism that turns RDB into a place from which overflowing keys can be read online.

Key point
Decide the capacity after checking the current data volume and room for growth. Test application reconnection to prepare for the connection reset during a scale-down.

Go to the Professional Cloud Database Engineer practice app (10 free questions; purchase unlocks all questions)

See the full practice set