- A
Cloud Storage, by storing secrets in an encrypted bucket with restricted IAM access
Why wrong: While Cloud Storage can store encrypted files with IAM restrictions, it lacks the purpose-built secret management features: versioning, audit logging for each secret access, rotation triggers, and secret-specific IAM bindings at the individual secret level.
- B
Secret Manager, which stores secrets encrypted at rest with automatic versioning, rotation support, and fine-grained IAM access control
Secret Manager is the correct answer. It provides: encrypted storage for secret values, automatic versioning (each update creates a new numbered version), rotation support via Cloud Functions, per-secret IAM bindings, and audit logs for every secret access. It directly solves the hardcoded secrets problem.
- C
Cloud KMS, which generates encryption keys for encrypting application data
Why wrong: Cloud KMS manages cryptographic keys for encrypting data. It is not designed for storing application secrets like passwords and API keys. Secret Manager uses Cloud KMS as its encryption backend but provides the secret storage abstraction on top.
- D
Cloud SQL, by storing secrets in an encrypted database table with restricted access
Why wrong: Storing secrets in a database table (even encrypted) lacks dedicated secret management features and creates a circular dependency — how do you store the database password needed to access the database?
Secure Secrets Management with Secret Manager
This GCDL practice question tests your understanding of google cloud products, services, and solutions. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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 developer needs to store application secrets (database passwords, API keys, OAuth tokens) securely so that they are not hardcoded in source code or environment variables. The secrets should be automatically versioned and rotatable. Which Google Cloud product is designed for this secure secrets management requirement?
Quick Answer
The answer is Secret Manager, which is the correct choice because it provides a dedicated, centralized service for storing application secrets like database passwords, API keys, and OAuth tokens with automatic encryption at rest using AES-256. Each secret version is immutable and timestamped, enabling automatic versioning and scheduled rotation policies that eliminate the need to hardcode credentials in source code or environment variables. On the Google Cloud Digital Leader exam, this question tests your understanding of secure secrets management as a core operational best practice, often contrasting Secret Manager against less secure options like Cloud Storage or Compute Engine metadata. A common trap is confusing Secret Manager with Cloud KMS—remember that KMS manages encryption keys, while Secret Manager stores the actual secrets themselves. For a quick memory tip, think "Secrets go to Secret Manager, keys go to Cloud KMS."
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
Secret Manager, which stores secrets encrypted at rest with automatic versioning, rotation support, and fine-grained IAM access control
Option B is correct because Secret Manager is Google Cloud's dedicated service for storing application secrets such as database passwords, API keys, and OAuth tokens. It provides encryption at rest using AES-256, automatic versioning (each new secret version is immutable and timestamped), and built-in rotation support via scheduled rotation policies. Fine-grained IAM roles (e.g., roles/secretmanager.secretAccessor) ensure least-privilege access without exposing secrets in source code or environment variables.
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 Storage, by storing secrets in an encrypted bucket with restricted IAM access
Why it's wrong here
While Cloud Storage can store encrypted files with IAM restrictions, it lacks the purpose-built secret management features: versioning, audit logging for each secret access, rotation triggers, and secret-specific IAM bindings at the individual secret level.
- ✓
Secret Manager, which stores secrets encrypted at rest with automatic versioning, rotation support, and fine-grained IAM access control
Why this is correct
Secret Manager is the correct answer. It provides: encrypted storage for secret values, automatic versioning (each update creates a new numbered version), rotation support via Cloud Functions, per-secret IAM bindings, and audit logs for every secret access. It directly solves the hardcoded secrets problem.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Cloud KMS, which generates encryption keys for encrypting application data
Why it's wrong here
Cloud KMS manages cryptographic keys for encrypting data. It is not designed for storing application secrets like passwords and API keys. Secret Manager uses Cloud KMS as its encryption backend but provides the secret storage abstraction on top.
- ✗
Cloud SQL, by storing secrets in an encrypted database table with restricted access
Why it's wrong here
Storing secrets in a database table (even encrypted) lacks dedicated secret management features and creates a circular dependency — how do you store the database password needed to access the database?
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates confuse Cloud KMS (key management) with Secret Manager (secret storage), or assume that any encrypted storage service (like Cloud Storage or Cloud SQL) can substitute for a purpose-built secrets manager, ignoring the need for automatic versioning, rotation, and fine-grained per-secret access control.
Detailed technical explanation
How to think about this question
Secret Manager integrates with Cloud KMS for envelope encryption: each secret is encrypted with a data encryption key (DEK) that is itself wrapped by a Cloud KMS key encryption key (KEK). Secret versions are immutable and identified by a version ID (e.g., '1', '2'), enabling rollback and audit trails. Rotation policies can be set to automatically create a new version after a specified period (e.g., 30 days) and optionally disable the previous version, which is critical for compliance with standards like PCI DSS or SOC 2.
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.
Quick reference
Symmetric Encryption Algorithm Comparison
| Algorithm | Key Size | Block Size | Status | Notes |
|---|---|---|---|---|
| AES-128 | 128-bit | 128-bit | Current standard | NIST approved; WPA3, TLS |
| AES-256 | 256-bit | 128-bit | Current standard | Preferred for sensitive / govt data |
| 3DES | 112-bit effective | 64-bit | Deprecated (2023) | Replaced by AES |
| DES | 56-bit | 64-bit | Broken | Cracked in < 24 h; never deploy |
| ChaCha20 | 256-bit | Stream cipher | Current | TLS 1.3, WireGuard |
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.
- →
Google Cloud products, services, and solutions — study guide chapter
Learn the concepts, then practise the questions
- →
Google Cloud products, services, and solutions 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?
Google Cloud products, services, and solutions — This question tests Google Cloud products, services, and solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Secret Manager, which stores secrets encrypted at rest with automatic versioning, rotation support, and fine-grained IAM access control — Option B is correct because Secret Manager is Google Cloud's dedicated service for storing application secrets such as database passwords, API keys, and OAuth tokens. It provides encryption at rest using AES-256, automatic versioning (each new secret version is immutable and timestamped), and built-in rotation support via scheduled rotation policies. Fine-grained IAM roles (e.g., roles/secretmanager.secretAccessor) ensure least-privilege access without exposing secrets in source code or environment variables.
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.