Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise organization is modernizing a multi-tier web application deployed across Google Cloud compute services. The application currently loads third-party API keys, TLS certificates, and database passwords from local plaintext configuration files bundled inside the container images and source code repository.
The security architect has established the following requirements:
Which solution should the architect implement?
Store the credentials in an encrypted Cloud Storage bucket with Customer-Managed Encryption Keys (CMEK), and grant the application service account the Storage Object Viewer (roles/storage.objectViewer) role.
Store the credentials and certificates in Secret Manager, manage rotation through secret versions, and grant the application service account the Secret Manager Secret Accessor (roles/secretmanager.secretAccessor) role.
Store the credentials and certificates in Cloud Key Management Service (Cloud KMS) as asymmetric cryptographic keys, and grant the application service account the Cloud KMS CryptoKey Decrypter (roles/cloudkms.cryptoKeyDecrypter) role.
Store the credentials and certificates in Secret Manager, and assign the application service account the Secret Manager Admin (roles/secretmanager.admin) role to allow runtime configuration fetching.
Store the credentials in an encrypted Cloud Storage bucket with Customer-Managed Encryption Keys (CMEK), and grant the application service account the Storage Object Viewer (roles/storage.objectViewer) role.
Store the credentials and certificates in Secret Manager, manage rotation through secret versions, and grant the application service account the Secret Manager Secret Accessor (roles/secretmanager.secretAccessor) role.
Secret Manager is a secure, fully-managed Google Cloud service designed specifically for the centralized storage, management, and auditing of sensitive data, such as API keys, passwords, TLS certificates, and database connection strings.
roles/secretmanager.secretAccessor provides the exact permission (secretmanager.versions.access) required to retrieve secret payloads without granting administrative management permissions.This solution directly satisfies all security mandates by separating sensitive metadata from application binaries, providing robust version management, and enforcing least-privilege runtime access with granular IAM roles.
Store the credentials and certificates in Cloud Key Management Service (Cloud KMS) as asymmetric cryptographic keys, and grant the application service account the Cloud KMS CryptoKey Decrypter (roles/cloudkms.cryptoKeyDecrypter) role.
Store the credentials and certificates in Secret Manager, and assign the application service account the Secret Manager Admin (roles/secretmanager.admin) role to allow runtime configuration fetching.