CertKeen

AWS Generative AI Developer Professional (AIP-C01) · Free practice question 3 of 12

AgentCore Code Interpreter sandbox

An analytics agent at Tollgate Brewing writes Python to calculate sales trends from uploaded CSV files. Security forbids running model-generated code on the agent's own host. Which capability lets the agent execute that code safely?

  1. A.AgentCore Code Interpreter, which runs code in an isolated sandbox
  2. B.Amazon Bedrock Prompt Management, which validates code in prompt variables
  3. C.AWS CodeBuild, which runs code each time a user sends a chat message
  4. D.Amazon Comprehend, which interprets Python and returns the results
Show answer and explanation

Correct answer: A. AgentCore Code Interpreter, which runs code in an isolated sandbox

Why: AgentCore Code Interpreter provides an isolated sandbox where agents can run code in languages such as Python and JavaScript, keeping generated code away from the agent's host. Prompt Management stores templates. CodeBuild is a CI build service, not an interactive tool sandbox for agents. Comprehend is a natural language processing service and does not execute code.

More free AWS Generative AI Developer Professional (AIP-C01) questions