Question 406 of 1,000
Google Cloud products, services, and solutionsmediumMultiple ChoiceObjective-mapped

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

AlgorithmKey SizeBlock SizeStatusNotes
AES-128128-bit128-bitCurrent standardNIST approved; WPA3, TLS
AES-256256-bit128-bitCurrent standardPreferred for sensitive / govt data
3DES112-bit effective64-bitDeprecated (2023)Replaced by AES
DES56-bit64-bitBrokenCracked in < 24 h; never deploy
ChaCha20256-bitStream cipherCurrentTLS 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.

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.

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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More GCDL practice questions

Last reviewed: Jun 11, 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 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.