[{"data":1,"prerenderedAt":355},["ShallowReactive",2],{"practiceExams":3,"studies":186,"free-lesson-\u002Fcourses\u002Faws-certified-developer-associate\u002Flessons\u002Ftool-calling-the-request-and-result-loop-dva-c03":187},[4,22,37,51,63,75,87,98,111,123,134,144,155,168,177],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},23,"aws-certified-developer-associate-dva-c03","Prepare for the AWS Certified Developer - Associate (DVA-C03) exam with realistic practice questions on developing, securing, testing, deploying and troubleshooting applications on AWS, AI-assisted development included, with detailed explanations.",655,true,"2026-12-03T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png","associate",{"slug":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"DVA-C03",null,"2026-12-01",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},22,"aws-certified-solutions-architect-professional-sap-c03","Prepare for the AWS Certified Solutions Architect - Professional (SAP-C03) exam with realistic practice questions on architecture, security, cost, resilience and automation, with detailed explanations.",767,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"AWS Certified Solutions Architect - Professional","SAP-C02","aws-certified-solutions-architect-professional","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-professionalsap-c02\u002Fcovers\u002Faws-SAP-C02.png","advanced",{"slug":24,"code":35,"dateBetaStart":20,"dateReleased":36,"pageSlug":31},"SAP-C03","2026-11-17",{"id":38,"slug":39,"description":40,"questionCount":41,"isActive":9,"datePublicModified":42,"difficulty":43,"examVersion":49},5,"aws-certified-cloud-practitioner-clf-c02","Master your AWS Certified Cloud Practitioner exam with our Practice Exam Simulator. Prepare effectively and assess your readiness with realistic practice exams designed to mirror the most popular official AWS exam.",937,"2026-10-30T00:00:00.000Z",{"providerId":12,"title":44,"subtitle":45,"slug":46,"coverImageUrl":47,"level":48},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":39,"code":45,"dateBetaStart":20,"dateReleased":50,"pageSlug":46},"2023-09-19",{"id":52,"slug":53,"description":54,"questionCount":55,"isActive":9,"datePublicModified":42,"difficulty":56,"examVersion":61},8,"aws-certified-devops-engineer-professional-dop-c02","Boost your readiness for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam with our practice exam simulator. Featuring realistic questions and detailed explanations, it helps you identify knowledge gaps and improve your skills.",1040,{"providerId":12,"title":57,"subtitle":58,"slug":59,"coverImageUrl":60,"level":33},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":53,"code":58,"dateBetaStart":20,"dateReleased":62,"pageSlug":59},"2023-03-07",{"id":64,"slug":65,"description":66,"questionCount":67,"isActive":9,"datePublicModified":42,"difficulty":68,"examVersion":72},11,"aws-certified-ai-practitioner-aif-c01","Prepare for the AWS Certified AI Practitioner exam with our practice exam simulator. Realistic questions on AI, machine learning and generative AI fundamentals, with detailed explanations, help you find your knowledge gaps and assess your readiness.",928,{"providerId":12,"title":69,"subtitle":70,"slug":71,"coverImageUrl":60,"level":48},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":65,"code":70,"dateBetaStart":73,"dateReleased":74,"pageSlug":71},"2024-08-13","2024-10-22",{"id":76,"slug":77,"description":78,"questionCount":79,"isActive":9,"datePublicModified":42,"difficulty":80,"examVersion":84},9,"aws-certified-data-engineer-associate-dea-c01","Prepare for your AWS Certified Data Engineer - Associate exam with our practice exam simulator. Featuring real exam scenarios, detailed explanations, and instant feedback to boost your confidence and success rate.",891,{"providerId":12,"title":81,"subtitle":82,"slug":83,"coverImageUrl":60,"level":17},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":77,"code":82,"dateBetaStart":85,"dateReleased":86,"pageSlug":83},"2023-11-27","2024-03-12",{"id":12,"slug":88,"description":89,"questionCount":90,"isActive":9,"datePublicModified":42,"difficulty":91,"examVersion":96},"aws-certified-solutions-architect-associate-saa-c03","Unlock your potential with the AWS Certified Solutions Architect - Associate Practice Exam Simulator. This comprehensive tool is designed to prepare you thoroughly and assess your readiness for the most sought-after AWS associate certification.",1203,{"providerId":12,"title":92,"subtitle":93,"slug":94,"coverImageUrl":95,"level":17},"AWS Certified Solutions Architect - Associate","SAA-C03","aws-certified-solutions-architect-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-associatesaa-c03\u002Fcovers\u002Faws-SAA-C03.png",{"slug":88,"code":93,"dateBetaStart":20,"dateReleased":97,"pageSlug":94},"2022-08-30",{"id":99,"slug":100,"description":101,"questionCount":102,"isActive":9,"datePublicModified":103,"difficulty":104,"examVersion":108},17,"aws-certified-generative-ai-developer-professional-aip-c01","Get ready for the AWS Certified Generative AI Developer - Professional exam with our practice exam simulator. Realistic scenario-based questions with detailed explanations help you assess your readiness to build generative AI solutions on AWS.",982,"2026-10-29T00:00:00.000Z",{"providerId":12,"title":105,"subtitle":106,"slug":107,"coverImageUrl":60,"level":33},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":100,"code":106,"dateBetaStart":109,"dateReleased":110,"pageSlug":107},"2025-11-28","2026-03-17",{"id":112,"slug":113,"description":114,"questionCount":115,"isActive":9,"datePublicModified":103,"difficulty":116,"examVersion":121},13,"aws-certified-security-specialty-scs-c03","Advance your career in cloud security with the AWS Certified Security - Specialty (SCS-C03) Exam Simulator. Realistic, scenario-based practice exams mirror the official exam, with detailed explanations to close your knowledge gaps.",864,{"providerId":12,"title":117,"subtitle":118,"slug":119,"coverImageUrl":120,"level":33},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":113,"code":118,"dateBetaStart":20,"dateReleased":122,"pageSlug":119},"2025-12-01",{"id":124,"slug":125,"description":126,"questionCount":127,"isActive":9,"datePublicModified":103,"difficulty":128,"examVersion":132},19,"aws-certified-machine-learning-engineer-associate-mla-c02","Prepare for the AWS Certified Machine Learning Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you find your knowledge gaps and assess your readiness to build and run ML workloads on AWS.",861,{"providerId":12,"title":129,"subtitle":130,"slug":131,"coverImageUrl":60,"level":17},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":125,"code":130,"dateBetaStart":133,"dateReleased":20,"pageSlug":131},"2026-09-29",{"id":135,"slug":136,"description":137,"questionCount":138,"isActive":9,"datePublicModified":103,"difficulty":139,"examVersion":143},15,"aws-certified-ai-business-strategist-aib-c01","Prepare for the AWS Certified AI Business Strategist exam with our practice exam simulator. Realistic, scenario-based questions with detailed explanations help you assess your readiness to lead AI adoption on AWS and close your knowledge gaps.",848,{"providerId":12,"title":140,"subtitle":141,"slug":142,"coverImageUrl":60,"level":48},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":136,"code":141,"dateBetaStart":133,"dateReleased":20,"pageSlug":142},{"id":145,"slug":146,"description":147,"questionCount":148,"isActive":9,"datePublicModified":103,"difficulty":149,"examVersion":153},21,"aws-certified-cloudops-engineer-associate-soa-c03","Prepare for the AWS Certified CloudOps Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you assess your readiness to deploy, operate and troubleshoot workloads on AWS.",862,{"providerId":12,"title":150,"subtitle":151,"slug":152,"coverImageUrl":60,"level":17},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":146,"code":151,"dateBetaStart":20,"dateReleased":154,"pageSlug":152},"2025-09-30",{"id":156,"slug":157,"description":158,"questionCount":159,"isActive":9,"datePublicModified":160,"difficulty":161,"examVersion":165},10,"aws-certified-advanced-networking-specialty-ans-c01","The AWS Certified Advanced Networking - Specialty practice exam simulates the real test, offering scenario-based questions that assess your ability to design, implement, and troubleshoot complex AWS networking solutions. ",681,"2024-11-13T00:00:00.000Z",{"providerId":12,"title":162,"subtitle":163,"slug":164,"coverImageUrl":60,"level":33},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":157,"code":163,"dateBetaStart":166,"dateReleased":167,"pageSlug":164},"2022-01-01","2022-07-12",{"id":169,"slug":170,"description":171,"questionCount":172,"isActive":9,"datePublicModified":173,"difficulty":174,"examVersion":175},6,"aws-certified-solutions-architect-professional-sap-c02","Elevate your career with the AWS Certified Solutions Architect - Professional Exam Simulator. Get ready to ace the most popular Professional AWS exam with our realistic practice exams. Assess your readiness, boost your confidence, and ensure your success.",789,"2024-06-06T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},{"slug":170,"code":30,"dateBetaStart":20,"dateReleased":176,"pageSlug":20},"2022-11-15",{"id":178,"slug":179,"description":180,"questionCount":181,"isActive":9,"datePublicModified":173,"difficulty":182,"examVersion":183},7,"aws-certified-security-specialty-scs-c02","Advance your career in cloud cybersecurity with the AWS Certified Security - Specialty Exam Simulator! Tailored for professionals, this tool offers realistic practice exams to mirror the official exam.",5431,{"providerId":12,"title":117,"subtitle":118,"slug":119,"coverImageUrl":120,"level":33},{"slug":179,"code":184,"dateBetaStart":20,"dateReleased":185,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":188,"title":189,"focus":190,"level":17,"components":191,"diagrams":215,"steps":249,"dateModified":350,"course":351,"nextLesson":352},"tool-calling-the-request-and-result-loop-dva-c03","Tool Calling: The request-and-result loop","How an application declares a tool to a managed model, validates and executes the model’s structured request, and returns the result for the next model turn.",[192,198,202,206,210],{"key":193,"kind":194,"name":195,"icon":196,"provider":197},"amazon-aurora","service","Amazon Aurora","\u002Fimages\u002Fprovider-services\u002Famazon-aurora\u002Fcovers\u002FArch_Amazon-Aurora_64.png","AWS",{"key":199,"kind":194,"name":200,"icon":201,"provider":197},"amazon-documentdb-(with-mongodb-compatibility)","Amazon DocumentDB (with MongoDB compatibility)","\u002Fimages\u002Fprovider-services\u002Famazon-documentdb-(with-mongodb-compatibility)\u002Fcovers\u002FArch_Amazon-DocumentDB_64.png",{"key":203,"kind":194,"name":204,"icon":205,"provider":197},"amazon-sagemaker","Amazon SageMaker","\u002Fimages\u002Fprovider-services\u002Famazon-sagemaker\u002Fcovers\u002FArch_Amazon-SageMaker_64.png",{"key":207,"kind":194,"name":208,"icon":209,"provider":197},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":211,"kind":212,"name":213,"icon":214,"provider":197},"amazon-dynamodb-table","part","Amazon DynamoDB table","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FRes_Amazon-DynamoDB_Table_48.png",[216],{"key":217,"cards":218,"groups":237,"lines":238},"order-status-loop",[219,222,225,228,231,234],{"key":220,"component":207,"label":221},"start","Application: start turn",{"key":223,"component":203,"label":224},"first-turn","Model endpoint: first turn",{"key":226,"component":207,"label":227},"validate","Application: validate and execute",{"key":229,"component":211,"label":230},"orders","Orders table",{"key":232,"component":207,"label":233},"return-result","Application: package result",{"key":235,"component":203,"label":236},"next-turn","Model endpoint: next turn",[],[239,241,243,245,247],{"from":220,"to":223,"label":240},"Prompt and tools",{"from":223,"to":226,"label":242},"Structured tool request",{"from":226,"to":229,"label":244},"Authorized order read",{"from":229,"to":232,"label":246},"Order item",{"from":232,"to":235,"label":248},"Correlated tool result",[250,286,299,302,314,317,329,332,337],{"kind":251,"title":252,"body":253,"diagram":217,"walkthrough":254},"explanation","Follow one tool call across two model turns","\u003Cp>A support app can use \u003Cstrong>tool calling\u003C\u002Fstrong> to answer a question about a live order. The app tells the model what lookup it offers. If the model asks for that lookup, the app checks the request, reads the order, and sends the outcome back in a new model turn.\u003C\u002Fp>\u003Cp>The diagram follows one successful lookup in time order. The Lambda cards show phases of the \u003Cstrong>same application function\u003C\u002Fstrong>, and the SageMaker cards show two calls to the \u003Cstrong>same hosted model endpoint\u003C\u002Fstrong>, configured to support tool calling. The second turn uses the lookup result to answer the customer; the final reply is outside the diagram.\u003C\u002Fp>",[255,258,263,268,273,278,283],{"text":256,"cards":257},"The application starts with the customer's question and the identity established by the app's authentication layer.",[220],{"text":259,"cards":260,"lines":261},"On the first turn, the endpoint receives the question and the declaration of the order-status tool, including the input it accepts.",[223],[262],{"from":220,"to":223},{"text":264,"cards":265,"lines":266},"The app receives a structured request with a tool name, arguments, and a call ID. It checks the request before running anything.",[226],[267],{"from":223,"to":226},{"text":269,"cards":270,"lines":271},"The Orders table receives a DynamoDB GetItem request keyed by the authenticated customer's ID and the validated order ID.",[229],[272],{"from":226,"to":229},{"text":274,"cards":275,"lines":276},"The app receives the order item and packages only the status needed for the reply. It uses the original call ID, which it kept in the conversation state, not in the database request.",[232],[277],{"from":229,"to":232},{"text":279,"cards":280,"lines":281},"The next turn receives the conversation, including the original tool request and the result linked to that request. The model can now use the status in its reply.",[235],[282],{"from":232,"to":235},{"text":284,"cards":285},"The app declares the tool, checks and runs the requested lookup, then returns a result that the next model turn can match to the request.",[],{"kind":287,"title":288,"exercise":289},"exercise","Trace the tool request",{"type":290,"diagram":217,"scenario":291,"path":292},"trace","Follow the first turn from the app's tool declaration to the point where the app receives the model's lookup request.",[293,295,297],{"card":220,"note":294},"The app sends the customer's question and the available tool declaration.",{"card":223,"note":296},"The model requests the lookup with a tool name, arguments, and a call ID.",{"card":226,"note":298},"The app receives the structured request and checks it before any read.",{"kind":251,"title":300,"body":301},"Declare a narrow tool","\u003Cp>A \u003Cstrong>tool declaration\u003C\u002Fstrong> describes an operation the model can ask the app to perform. Give it a stable name, such as \u003Ccode>get_order_status\u003C\u002Fcode>, a description that says when to use it, and an \u003Cstrong>input schema\u003C\u002Fstrong> that describes the expected arguments. For this lookup, require an \u003Ccode>order_id\u003C\u002Fcode> string rather than accepting a free-form database query.\u003C\u002Fp>\u003Cp>Leave the customer ID out of the tool schema. The model supplies the order reference, but the app gets the customer ID from the authenticated session. The schema tells the model how to make a request; it does not grant permission to run it.\u003C\u002Fp>",{"kind":287,"title":303,"exercise":304},"Keep identity out of the tool arguments",{"type":305,"question":306,"text":307,"answers":308,"distractors":311},"placeholder","Fill in the source of each value for the lookup.","The tool's input schema requires {}. The app takes the customer ID from the {}.",[309,310],"order_id","authenticated session",[312,313],"delivery status","tool call ID",{"kind":251,"title":315,"body":316},"Check the request before reading","\u003Cp>Treat the model's tool request as \u003Cstrong>untrusted input\u003C\u002Fstrong>. Dispatch only a tool name the app explicitly allows. Check that the arguments match the schema, then check business rules, such as whether the order reference has the format the order system accepts.\u003C\u002Fp>\u003Cp>\u003Cstrong>Authorization\u003C\u002Fstrong> is a separate check: a well-formed order ID does not prove ownership. In this design, the app scopes the read to the authenticated customer by using that customer's ID as the partition key and the requested order ID as the sort key. Only after its checks pass does the app issue \u003Ccode>GetItem\u003C\u002Fcode> to the Orders table with app-managed credentials scoped to the needed read. If the request fails a check, skip the read.\u003C\u002Fp>",{"kind":287,"title":318,"exercise":319},"Place the checked lookup's destination",{"type":320,"diagram":217,"question":321,"hidden":322,"tray":323},"palette","Fill the empty slot with the resource that receives the app's DynamoDB GetItem request for the customer and order key.",[229],[324,326,327],{"component":193,"reason":325},"Aurora serves relational database queries, not DynamoDB GetItem requests.",{"component":211},{"component":199,"reason":328},"DocumentDB reads documents through a MongoDB-compatible interface, not through DynamoDB GetItem.",{"kind":251,"title":330,"body":331},"Return a result the model can match","\u003Cp>A \u003Cstrong>tool result\u003C\u002Fstrong> is a message for the model, not the final customer reply. Keep it small: return the status the model needs, not the whole order item. For a well-formed call that cannot be completed, return a concise outcome such as \u003Ccode>not_found\u003C\u002Fcode> or \u003Ccode>unavailable\u003C\u002Fcode>, without exposing internal details.\u003C\u002Fp>\u003Cp>Preserve the model message containing the tool request and link the result to its \u003Cstrong>tool call ID\u003C\u002Fstrong> using the endpoint's message format. Send that conversation context in the next model turn. The ID connects the outcome to the right request, even if the model requested more than one tool. The next model response can answer, ask for another tool, or stop; any new request goes through the same checks.\u003C\u002Fp>",{"kind":287,"title":333,"exercise":334},"Build the request-and-result loop",{"type":335,"diagram":217,"question":336},"build","Draw one successful order-status lookup from the tool declaration through the customer-scoped read to the model turn that can use the matched result.",{"kind":251,"title":338,"body":339,"takeaways":340},"What to remember","\u003Cp>A reliable \u003Cstrong>tool loop\u003C\u002Fstrong> needs a narrow declaration, a checked operation, and a result tied to the original request.\u003C\u002Fp>",[341,344,347],{"title":342,"text":343},"Declare the input","Give the tool a name, purpose, and input schema. Keep trusted identity in the application, not in model-supplied arguments.",{"title":345,"text":346},"Check before executing","Allowlist the tool, validate its arguments, and enforce customer access before reading with scoped credentials.",{"title":348,"text":349},"Match the result","Keep the model's tool request in context and return the smallest useful outcome with its original call ID.","2026-12-02T21:32:16.477Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":353,"title":354},"message-queuing-vs-publish-subscribe-messaging-dva-c03","Message Queuing vs. Publish-Subscribe Messaging",1796288619784]