QuestionQ64

VerifiedSecuring and governing agentic workflows

You are deploying an agent on Gemini Enterprise Agent Platform in Project-A, a dedicated runtime Google Cloud project. The agent needs to retrieve database API credentials from Secret Manager in Project-B, a centralized governance project, and query an Agent Search data store also hosted in Project-B. You are using Agent Identity to govern the agent’s permissions across projects. You need to grant the minimum required cross-project IAM access while following the principle of least privilege.

What should you do?

Choose two
Explanation

Grant the agent identity Secret Manager Secret Accessor on the specific secret containing the database API credentials, and Discovery Engine Viewer on the target data store. The former permits access to the secret payload; the latter includes search permission without granting editor access. (docs.cloud.google.com)

The Secret Accessor choice is correct only if “database resource” means the Secret Manager secret: granting the role on the database itself would not grant access to its credentials secret.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!