Question 490
A developer proposes embedding production database credentials directly in an agent's prompt for easier access. Which AI choice or business response BEST addresses the primary requirement?
Explanation
Correct Answer
Use Cloud Run or Cloud Functions to host appropriately controlled server-side tool endpoints rather than putting secrets or privileged logic in model prompts. This approach directly addresses the decision boundary. Serverless compute can implement tool business logic; it is not a foundation model and does not bypass service-level IAM. Validate key assumptions using: Check runtime needs, authenticated invocation, quotas, network and secret permissions, response contracts and logging. Scenario: A developer proposes embedding production database credentials directly in an agent's prompt for easier access.
Incorrect Answers
Use Agent Search prebuilt retrieval-augmented generation when answers should be grounded in approved indexed enterprise content without building every retrieval component. This response is aimed at Agent Search prebuilt RAG for enterprise knowledge, not the controlling requirement here. Prebuilt RAG combines retrieval and generation; it does not turn stale or unauthorized documents into trustworthy facts. The targeted response is: Use Cloud Run or Cloud Functions to host appropriately controlled server-side tool endpoints rather than putting secrets or privileged logic in model prompts. Scenario: A developer proposes embedding production database credentials directly in an agent's prompt for easier access.
Use Google Cloud's model ecosystem to evaluate appropriate first-party, open and partner models while retaining objective quality, compliance and deployment comparisons. This response is aimed at Open AI ecosystem and model flexibility, not the controlling requirement here. An open model ecosystem increases deployment options but does not mean every model is equally safe, performant or available everywhere. The targeted response is: Use Cloud Run or Cloud Functions to host appropriately controlled server-side tool endpoints rather than putting secrets or privileged logic in model prompts. Scenario: A developer proposes embedding production database credentials directly in an agent's prompt for easier access.
Prepare structured tables and unstructured documents through appropriate parsing and governance pipelines instead of treating all source material as a uniform CSV. This response is aimed at Structured and unstructured data distinctions, not the controlling requirement here. Structured fields support predictable queries, while unstructured text and media require extraction or interpretation before downstream use. The targeted response is: Use Cloud Run or Cloud Functions to host appropriately controlled server-side tool endpoints rather than putting secrets or privileged logic in model prompts. Scenario: A developer proposes embedding production database credentials directly in an agent's prompt for easier access.


