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?
- A.AgentCore Code Interpreter, which runs code in an isolated sandbox
- B.Amazon Bedrock Prompt Management, which validates code in prompt variables
- C.AWS CodeBuild, which runs code each time a user sends a chat message
- 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
- Semantic chunking breakpoint threshold
- Word filters for competitor names
- AgentCore Browser for portals without APIs
- SCP rules for global inference profiles
- Choosing a 1-hour prompt cache TTL
- Batch job completion events
- Evaluating responses from external models
- Guardrail versions for production
- GraphRAG with Neptune Analytics
- Returning tool results in Converse
- pgvector iterative scans with filters