GCP Professional Cloud Security Engineer Practice Question

A compliance review discovers that an AWS Lambda function keeps a long-lived JSON key for the [email protected] account in AWS Secrets Manager. The key lets the function upload CSV files to a single Cloud Storage bucket in the production project. Security mandates removal of any stored keys, use of short-lived credentials, and adherence to the principle of least privilege. Which solution best satisfies all requirements while minimally refactoring the Lambda code?

  • Enable HMAC access for Cloud Storage, create an access key pair for the existing service account, store the keys in AWS Secrets Manager, and restrict uploads with object-level ACLs.

  • Create a workload identity pool with an AWS provider that trusts a designated IAM role used by the Lambda function. Map the role to a new service account that has only the Storage Object Creator role on the required bucket, then update the function to request federated tokens at runtime.

  • Generate a new user-managed service account key with a 24-hour rotation schedule in AWS Secrets Manager and update the Lambda environment variables to reference the rotating secret.

  • Establish VPC peering between AWS and Google Cloud and deploy a Compute Engine proxy VM with the existing service account attached; configure the Lambda function to SCP files through the proxy to the bucket.

GCP Professional Cloud Security Engineer
Configuring Access
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot