PCSE Ensuring Data Protection Practice Question
A security team wants to automatically rotate a database password stored in Secret Manager every 60 days and notify the operations team when a new version is created. Which approach should they 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
✓
Set a rotation period on the secret and configure a Pub/Sub topic for notifications; use a Cloud Function to generate new password
Secret Manager supports automatic rotation with a Pub/Sub topic. You can set a rotation period (e.g., 60 days) and a Pub/Sub topic for notifications. A Cloud Function can listen to the topic and update the password. Secret Manager can also call a user-provided Cloud Function to generate the new secret version.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Set a rotation period on the secret and configure a Pub/Sub topic for notifications; use a Cloud Function to generate new password
Why this is correct
Secret Manager rotation with Pub/Sub and Cloud Function automates password generation and notification.
- ✗
Use Cloud Scheduler to call Secret Manager API to add a new version
Why it's wrong here
While possible, this does not include notification via Pub/Sub; also Secret Manager supports built-in rotation with Pub/Sub.
- ✗
Use Cloud KMS key rotation to rotate the secret
Why it's wrong here
Cloud KMS rotates encryption keys, not the secret content itself.
- ✗
Manually update the secret every 60 days
Why it's wrong here
Manual rotation is not automatic.
Go deeper
Related to this question
About these practice questions
One of 960 original PCSE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCSE 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 PCSE exam.