Cloud Digital Leader Google Cloud Security Practice Question
A developer needs to store and manage API keys and certificates in a secure, centralized manner, with automatic rotation and integration with Cloud Functions. Which Google Cloud service 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
✓
Secret Manager
Secret Manager stores secrets like API keys, passwords, and certificates, and integrates with Cloud Functions for secure access. Cloud KMS manages encryption keys, not secrets. Cloud Storage is not designed for secret management. Cloud Asset Inventory tracks resources.
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
Why it's wrong here
Cloud Storage is a scalable object storage service for unstructured data, not a secret management system. While you could technically write an API key or certificate to a bucket, you would have to manually manage encryption, access controls, and lifecycle policies, and the payload would remain visible to anyone with object-level read access. Cloud Storage lacks purpose-built secret capabilities such as versioned secret values, IAM-specific secret roles, and native rotation scheduling, making it a risky and operationally heavy place to store credentials.
- ✗
Cloud KMS
Why it's wrong here
Cloud KMS is a cryptographic key management service that creates and controls keys used for encryption, decryption, signing, and verification. It is designed to store key objects themselves, not the sensitive application data like API keys or certificates; you would use KMS to encrypt a secret, but the encrypted secret still needs a separate storage location. KMS also does not provide secret versioning, payload retrieval APIs, or secret-specific access auditing, so it cannot serve as the direct secret store this developer needs.
- ✓
Secret Manager
Why this is correct
Secret Manager is the correct choice because it is a dedicated, purpose-built service for storing and managing sensitive data such as API keys, passwords, and certificates as immutable secret versions. It provides fine-grained IAM roles, automatic log-based auditing, built-in rotation with etag validation, and integration with App Engine, Cloud Functions, and Kubernetes workloads. You can upload certificate data directly as a secret payload and access it securely via the Secret Manager API or client libraries, giving the developer exactly the managed workflow they need.
- ✗
Cloud Asset Inventory
Why it's wrong here
Cloud Asset Inventory is a metadata service that records the configuration, history, and IAM policy state of Google Cloud resources, not the content or payload of those resources. It can tell you that a Secret Manager secret resource exists and who has access to it, but it cannot return the actual secret value or certificate data. Because it lacks any API to store or retrieve secret payloads, it is completely unsuitable as a secret management solution.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
Encryption
Encryption is the process of converting readable data into a secret code to prevent unauthorized access.
Key term
Asset
In IT and cybersecurity, an asset is anything valuable that an organization owns or controls, including data, hardware, software, people, and intellectual property.
About these practice questions
One of 829 original GCDL 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 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.