[{"data":1,"prerenderedAt":465},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-generative-ai-developer-professional\u002Flessons\u002Faws-step-functions-asynchronous-task-coordination-aip-c01":185},[4,22,36,48,60,72,84,97,109,120,130,141,154,163,175],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},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,true,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"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":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"SAP-C03",null,"2026-11-17",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},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":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":24,"code":30,"dateBetaStart":20,"dateReleased":35,"pageSlug":31},"2023-09-19",{"id":37,"slug":38,"description":39,"questionCount":40,"isActive":9,"datePublicModified":27,"difficulty":41,"examVersion":46},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":42,"subtitle":43,"slug":44,"coverImageUrl":45,"level":17},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":38,"code":43,"dateBetaStart":20,"dateReleased":47,"pageSlug":44},"2023-03-07",{"id":49,"slug":50,"description":51,"questionCount":52,"isActive":9,"datePublicModified":27,"difficulty":53,"examVersion":57},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":54,"subtitle":55,"slug":56,"coverImageUrl":45,"level":33},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":50,"code":55,"dateBetaStart":58,"dateReleased":59,"pageSlug":56},"2024-08-13","2024-10-22",{"id":12,"slug":61,"description":62,"questionCount":63,"isActive":9,"datePublicModified":27,"difficulty":64,"examVersion":70},"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":65,"subtitle":66,"slug":67,"coverImageUrl":68,"level":69},"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","associate",{"slug":61,"code":66,"dateBetaStart":20,"dateReleased":71,"pageSlug":67},"2022-08-30",{"id":73,"slug":74,"description":75,"questionCount":76,"isActive":9,"datePublicModified":27,"difficulty":77,"examVersion":81},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":78,"subtitle":79,"slug":80,"coverImageUrl":45,"level":69},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":74,"code":79,"dateBetaStart":82,"dateReleased":83,"pageSlug":80},"2023-11-27","2024-03-12",{"id":85,"slug":86,"description":87,"questionCount":88,"isActive":9,"datePublicModified":89,"difficulty":90,"examVersion":94},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":91,"subtitle":92,"slug":93,"coverImageUrl":45,"level":17},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":86,"code":92,"dateBetaStart":95,"dateReleased":96,"pageSlug":93},"2025-11-28","2026-03-17",{"id":98,"slug":99,"description":100,"questionCount":101,"isActive":9,"datePublicModified":89,"difficulty":102,"examVersion":107},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":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":99,"code":104,"dateBetaStart":20,"dateReleased":108,"pageSlug":105},"2025-12-01",{"id":110,"slug":111,"description":112,"questionCount":113,"isActive":9,"datePublicModified":89,"difficulty":114,"examVersion":118},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":115,"subtitle":116,"slug":117,"coverImageUrl":45,"level":69},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":111,"code":116,"dateBetaStart":119,"dateReleased":20,"pageSlug":117},"2026-09-29",{"id":121,"slug":122,"description":123,"questionCount":124,"isActive":9,"datePublicModified":89,"difficulty":125,"examVersion":129},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":126,"subtitle":127,"slug":128,"coverImageUrl":45,"level":33},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":122,"code":127,"dateBetaStart":119,"dateReleased":20,"pageSlug":128},{"id":131,"slug":132,"description":133,"questionCount":134,"isActive":9,"datePublicModified":89,"difficulty":135,"examVersion":139},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":136,"subtitle":137,"slug":138,"coverImageUrl":45,"level":69},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":132,"code":137,"dateBetaStart":20,"dateReleased":140,"pageSlug":138},"2025-09-30",{"id":142,"slug":143,"description":144,"questionCount":145,"isActive":9,"datePublicModified":146,"difficulty":147,"examVersion":151},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":148,"subtitle":149,"slug":150,"coverImageUrl":45,"level":17},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":143,"code":149,"dateBetaStart":152,"dateReleased":153,"pageSlug":150},"2022-01-01","2022-07-12",{"id":155,"slug":156,"description":157,"questionCount":158,"isActive":9,"datePublicModified":159,"difficulty":160,"examVersion":161},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":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},{"slug":156,"code":14,"dateBetaStart":20,"dateReleased":162,"pageSlug":20},"2022-11-15",{"id":164,"slug":165,"description":166,"questionCount":167,"isActive":9,"datePublicModified":159,"difficulty":168,"examVersion":173},4,"aws-certified-developer-associate-dva-c02","Unlock your potential as a software developer with the AWS Certified Developer - Associate Exam Simulator! Prepare thoroughly with realistic practice exams designed to mirror the official exam.",399,{"providerId":12,"title":169,"subtitle":170,"slug":171,"coverImageUrl":172,"level":69},"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png",{"slug":165,"code":170,"dateBetaStart":20,"dateReleased":174,"pageSlug":171},"2023-02-28",{"id":176,"slug":177,"description":178,"questionCount":179,"isActive":9,"datePublicModified":159,"difficulty":180,"examVersion":181},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":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},{"slug":177,"code":182,"dateBetaStart":20,"dateReleased":183,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":186,"title":187,"focus":188,"level":17,"components":189,"diagrams":248,"steps":289,"dateModified":460,"course":461,"nextLesson":462},"aws-step-functions-asynchronous-task-coordination-aip-c01","AWS Step Functions: asynchronous task coordination","How service integration patterns coordinate long-running processing and task-token callbacks, including secure resumption, heartbeats, and human clarification or approval.",[190,196,200,204,208,212,216,220,224,228,232,236,240,244],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-api-gateway","service","Amazon API Gateway","\u002Fimages\u002Fprovider-services\u002Famazon-api-gateway\u002Fcovers\u002FArch_Amazon-API-Gateway_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"amazon-aurora","Amazon Aurora","\u002Fimages\u002Fprovider-services\u002Famazon-aurora\u002Fcovers\u002FArch_Amazon-Aurora_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"amazon-dynamodb","Amazon DynamoDB","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FArch_Amazon-DynamoDB_64.png",{"key":205,"kind":192,"name":206,"icon":207,"provider":195},"amazon-elastic-container-service-(amazon-ecs)","Amazon Elastic Container Service (Amazon ECS)","\u002Fimages\u002Fprovider-services\u002Famazon-elastic-container-service-(amazon-ecs)\u002Fcovers\u002FArch_Amazon-Elastic-Container-Service_64.png",{"key":209,"kind":192,"name":210,"icon":211,"provider":195},"amazon-eventbridge","Amazon EventBridge","\u002Fimages\u002Fprovider-services\u002Famazon-eventbridge\u002Fcovers\u002FArch_Amazon-EventBridge_64.png",{"key":213,"kind":192,"name":214,"icon":215,"provider":195},"amazon-s3","Amazon S3","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FArch_Amazon-Simple-Storage-Service_64.png",{"key":217,"kind":192,"name":218,"icon":219,"provider":195},"amazon-simple-notification-service-(amazon-sns)","Amazon Simple Notification Service (Amazon SNS)","\u002Fimages\u002Fprovider-services\u002Famazon-simple-notification-service-(amazon-sns)\u002Fcovers\u002FArch_Amazon-Simple-Notification-Service_64.png",{"key":221,"kind":192,"name":222,"icon":223,"provider":195},"aws-appsync","AWS AppSync","\u002Fimages\u002Fprovider-services\u002Faws-appsync\u002Fcovers\u002FArch_AWS-AppSync_64.png",{"key":225,"kind":192,"name":226,"icon":227,"provider":195},"aws-batch","AWS Batch","\u002Fimages\u002Fprovider-services\u002Faws-batch\u002Fcovers\u002FArch_AWS-Batch_64.png",{"key":229,"kind":192,"name":230,"icon":231,"provider":195},"aws-glue","AWS Glue","\u002Fimages\u002Fprovider-services\u002Faws-glue\u002Fcovers\u002FArch_AWS-Glue_64.png",{"key":233,"kind":192,"name":234,"icon":235,"provider":195},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":237,"kind":192,"name":238,"icon":239,"provider":195},"aws-step-functions","AWS Step Functions","\u002Fimages\u002Fprovider-services\u002Faws-step-functions\u002Fcovers\u002FArch_AWS-Step-Functions_64.png",{"key":241,"kind":192,"name":242,"icon":243,"provider":195},"elastic-load-balancing-(elb)","Elastic Load Balancing (ELB)","\u002Fimages\u002Fprovider-services\u002Felastic-load-balancing-(elb)\u002Fcovers\u002FArch_Elastic-Load-Balancing_64.png",{"key":245,"kind":246,"name":247,"icon":20,"provider":20},"users","generic","Users",[249],{"key":250,"cards":251,"groups":273,"lines":274},"coordinated-review",[252,255,258,261,264,267,270],{"key":253,"component":237,"label":254},"workflow","Standard workflow",{"key":256,"component":225,"label":257},"processing","Document processing job",{"key":259,"component":233,"label":260},"register","Register review attempt",{"key":262,"component":201,"label":263},"requests","Review attempts and protected tokens",{"key":265,"component":245,"label":266},"reviewer","Reviewer with opaque request ID",{"key":268,"component":191,"label":269},"endpoint","Authorized REST API",{"key":271,"component":233,"label":272},"resume","Validate and resume",[],[275,277,279,281,283,285,287],{"from":253,"to":256,"label":276},".sync job",{"from":253,"to":259,"label":278},"Context and token",{"from":259,"to":262,"label":280},"Store attempt",{"from":265,"to":268,"label":282},"Authenticated answer",{"from":268,"to":271,"label":284},"Authorized request",{"from":271,"to":262,"label":286},"Read and claim",{"from":271,"to":253,"label":288},"Token callback",[290,312,329,370,397,418,432,435,447],{"kind":291,"title":292,"body":293,"table":294},"explanation","Choose what completion means","\u003Cp>A service accepting a request is not the same as finishing its work. With \u003Cstrong>request-response\u003C\u002Fstrong>, a Task advances when the integrated API call returns. For an asynchronous job-submission API, that response normally means submission succeeded, not that processing finished.\u003C\u002Fp>\u003Cp>For supported integrations, \u003Cstrong>.sync\u003C\u002Fstrong> makes Step Functions track a submitted job until completion. For example, \u003Ccode>arn:aws:states:::batch:submitJob.sync\u003C\u002Fcode> submits an AWS Batch job using a job definition and job queue, then waits for its outcome. The execution role needs submission and monitoring permissions; stopping the workflow only triggers best-effort cancellation of the underlying job.\u003C\u002Fp>\u003Cp>With \u003Cstrong>.waitForTaskToken\u003C\u002Fstrong>, completion instead requires an explicit callback carrying the task token. This suits custom workers and human clarification or approval, where the submission response cannot describe the final outcome. Both .sync and task-token callbacks require \u003Cstrong>Standard Workflows\u003C\u002Fstrong>; Express Workflows support request-response integrations, not these waiting patterns.\u003C\u002Fp>",{"columns":295,"rows":299},[296,297,298],"Pattern","Task completes when","Completion owner",[300,304,308],[301,302,303],"Request-response","API call returns","Integrated API",[305,306,307],".sync","Tracked job finishes","Service integration",[309,310,311],".waitForTaskToken","Token callback succeeds","Callback application",{"kind":313,"title":314,"exercise":315},"exercise","Separate the two waiting contracts",{"type":316,"question":317,"groups":318,"statements":319},"versus","Sort each completion rule into the integration pattern it describes.",[305,309],[320,323,325,327],{"text":321,"group":322},"The integration tracks the submitted job until its outcome is known.",0,{"text":324,"group":12},"A human answer can complete the Task through an application callback.",{"text":326,"group":12},"The application must retain and return a task token.",{"text":328,"group":322},"AWS Batch submitJob can use this pattern to wait for job completion.",{"kind":291,"title":330,"body":331,"diagram":250,"walkthrough":332},"Build a protected callback boundary","\u003Cp>This architecture processes a document with \u003Cstrong>AWS Batch .sync\u003C\u002Fstrong>, then registers a human review using \u003Ccode>arn:aws:states:::lambda:invoke.waitForTaskToken\u003C\u002Fcode>. In a JSONPath Task, the registration payload can receive the token through \u003Ccode>\"TaskToken.$\": \"$$.Task.Token\"\u003C\u002Fcode>. The registration function executes custom code, persists the attempt, and returns promptly; it does not remain running while the person thinks.\u003C\u002Fp>\u003Cp>Treat the \u003Cstrong>task token as a secret\u003C\u002Fstrong>, not as a reviewer identity. Store it behind a restricted backend and expose only an opaque request ID. Here, DynamoDB supplies keyed \u003Ccode>GetItem\u003C\u002Fcode> access and conditional \u003Ccode>UpdateItem\u003C\u002Fcode> operations. API Gateway supplies an authorized REST API with methods and stages; a separate Lambda function checks the caller's right to answer that specific request before using its token.\u003C\u002Fp>\u003Cp>The callback function needs narrowly granted \u003Cstrong>SendTaskSuccess\u003C\u002Fstrong> and \u003Cstrong>SendTaskFailure\u003C\u002Fstrong> permissions; heartbeat senders need \u003Cstrong>SendTaskHeartbeat\u003C\u002Fstrong>. Token callbacks must be made by a principal in the workflow's AWS account, so an external reviewer uses this account-local backend rather than calling Step Functions directly. The arrows below show submitted requests and API calls, not ordinary service responses.\u003C\u002Fp>",[333,338,343,348,351,356,362,367],{"text":334,"cards":335,"lines":336},"The Standard workflow submits a Batch job through submitJob.sync and waits for its completion before entering review.",[253,256],[337],{"from":253,"to":256},{"text":339,"cards":340,"lines":341},"The workflow invokes the registration function with document context and the current task token.",[259],[342],{"from":253,"to":259},{"text":344,"cards":345,"lines":346},"Registration writes a DynamoDB attempt record containing the protected token, request identity, reviewer assignment, deadline, and document version.",[262],[347],{"from":259,"to":262},{"text":349,"cards":350},"The reviewer has an opaque request ID identifying the clarification or approval to answer, not the task token.",[265],{"text":352,"cards":353,"lines":354},"The reviewer submits an authenticated answer to the authorized API Gateway REST endpoint.",[268],[355],{"from":265,"to":268},{"text":357,"cards":358,"lines":359},"API Gateway invokes the callback Lambda. It validates the answer and uses the DynamoDB record to check ownership, version, deadline, and attempt status, then conditionally claims the submission.",[271],[360,361],{"from":268,"to":271},{"from":271,"to":262},{"text":363,"cards":364,"lines":365},"The callback function calls Step Functions with the protected token. SendTaskSuccess returns structured clarification or approval data; SendTaskFailure reports an actual task failure.",[],[366],{"from":271,"to":253},{"text":368,"cards":369},"Job completion and human completion use different waiting contracts, while the protected backend binds the human answer to the correct waiting attempt.",[],{"kind":313,"title":371,"exercise":372},"Restore the integration boundaries",{"type":373,"diagram":250,"question":374,"hidden":375,"tray":376},"palette","Restore the four services using the exact API contracts taught: Batch submitJob.sync, DynamoDB item operations, API Gateway REST methods and stages, and custom callback-validation code.",[256,262,268,271],[377,378,379,380,381,383,385,387,389,391,393,395],{"component":225},{"component":201},{"component":191},{"component":233},{"component":205,"reason":382},"ECS runs container tasks; it does not implement Batch submitJob with a Batch job definition and job queue.",{"component":229,"reason":384},"Glue runs Glue jobs; it does not implement the Batch submitJob integration used here.",{"component":197,"reason":386},"Aurora uses relational database APIs, not DynamoDB GetItem and conditional UpdateItem.",{"component":213,"reason":388},"S3 stores objects; it does not expose DynamoDB keyed item and attribute-update APIs.",{"component":221,"reason":390},"AppSync does not provide the API Gateway REST API method-and-stage model specified for this endpoint.",{"component":241,"reason":392},"A load balancer does not implement API Gateway REST API methods and stages.",{"component":209,"reason":394},"EventBridge routes events; it does not execute the custom ownership checks and token-callback code assigned to this function.",{"component":217,"reason":396},"SNS delivers notifications; it does not execute the custom validation and conditional-claim code assigned to this function.",{"kind":291,"title":398,"body":399,"table":400},"Separate liveness from the final deadline","\u003Cp>\u003Cstrong>HeartbeatSeconds\u003C\u002Fstrong> bounds the allowed gap between heartbeats; \u003Cstrong>TimeoutSeconds\u003C\u002Fstrong> bounds the whole Task. A successful \u003Ccode>SendTaskHeartbeat\u003C\u002Fcode> resets the heartbeat clock but does not complete the Task or extend its total timeout. When both are configured, the heartbeat interval must be shorter than the total timeout. With Lambda callback integration, heartbeat timing starts after the initial Lambda invocation returns.\u003C\u002Fp>\u003Cp>For an active worker, send heartbeats only while its work is genuinely alive. For \u003Cstrong>human waiting\u003C\u002Fstrong>, silence does not necessarily indicate a failed worker: use an explicit decision deadline, and do not require the person to emit heartbeats. If a backend sends them, they establish only that the backend is alive, not that the reviewer is making progress.\u003C\u002Fp>\u003Cp>A timeout or a new Task attempt makes an old token unsuitable for resumption. Persist the \u003Cstrong>attempt identity and deadline\u003C\u002Fstrong> beside the token, reject stale answers, and never substitute a new attempt's token for an old answer. Even after application checks pass, Step Functions is authoritative: the Task can expire between validation and the callback, so callback rejection must not be reported as successful resumption.\u003C\u002Fp>",{"columns":401,"rows":405},[402,403,404],"Control","Establishes","Does not establish",[406,410,414],[407,408,409],"Heartbeat","Sender remains responsive","Completed work",[411,412,413],"Task timeout","Maximum Task duration","Reviewer availability",[415,416,417],"Attempt validation","Answer matches current request","Guaranteed callback acceptance",{"kind":313,"title":419,"exercise":420},"Follow a still-valid human answer",{"type":421,"diagram":250,"scenario":422,"path":423},"trace","Trace a reviewer's submitted answer as far as the stored-attempt deadline check, even though a backend has previously sent heartbeats.",[424,426,428,430],{"card":265,"note":425},"Submit the opaque request ID and answer, never the protected task token.",{"card":268,"note":427},"Apply the REST API's configured authentication and authorization.",{"card":271,"note":429},"Validate request ownership and answer structure before attempting resumption.",{"card":262,"note":431},"Read the current attempt and check its deadline; heartbeats do not extend that deadline.",{"kind":291,"title":433,"body":434},"Make resumption a business operation","\u003Cp>Bind each answer to \u003Cstrong>request ID, attempt ID, and content version\u003C\u002Fstrong>. Clarification should resume the workflow with structured fields and the relevant conversation or document reference. Approval should identify exactly what was approved. A legitimate rejection can be returned through \u003Ccode>SendTaskSuccess\u003C\u002Fcode> as a business result such as \u003Ccode>approved: false\u003C\u002Fcode>; it is not automatically an execution failure.\u003C\u002Fp>\u003Cp>Use a \u003Cstrong>conditional claim\u003C\u002Fstrong> on the stored attempt to prevent concurrent submissions from independently initiating completion. The DynamoDB update and Step Functions callback are not one atomic transaction: record enough submission state to reconcile a crash or an ambiguous callback response, and mark completion only after confirmed acceptance. Never blindly reuse a token after success, timeout, or replacement.\u003C\u002Fp>\u003Cp>Reconstruct the architecture around two boundaries: \u003Cstrong>.sync owns job-completion tracking\u003C\u002Fstrong>, while the \u003Cstrong>callback backend owns answer validation\u003C\u002Fstrong>. The workflow calls Batch and registration; registration stores the attempt. The human submission enters through API Gateway, reaches the validation function, and triggers a record lookup and claim before a token callback to the workflow. Heartbeats remain a liveness signal, not an approval or a deadline extension.\u003C\u002Fp>",{"kind":313,"title":436,"exercise":437},"Rebuild the coordination architecture",{"type":438,"diagram":250,"question":439,"decoys":440},"build","Rebuild the taught document-processing and human-review architecture using only its submitted requests and API calls, preserving job tracking, protected attempt storage, and validated token resumption.",[441,443,445],{"component":229,"reason":442},"The processing card uses Batch submitJob.sync with a Batch job definition and queue; Glue does not implement that contract.",{"component":197,"reason":444},"The attempt store uses DynamoDB GetItem and conditional UpdateItem; Aurora does not expose those item APIs.",{"component":221,"reason":446},"The reviewer endpoint uses API Gateway REST methods and stages; AppSync does not implement that REST API model.",{"kind":291,"title":448,"body":449,"takeaways":450},"What to remember","\u003Cp>\u003Cstrong>Durable asynchronous coordination\u003C\u002Fstrong> requires an explicit completion contract, a protected and attempt-bound resumption path, and a clear separation between liveness, deadlines, and business decisions.\u003C\u002Fp>",[451,454,457],{"title":452,"text":453},"Choose the completion contract","Request-response waits for the API response; .sync tracks supported jobs; .waitForTaskToken waits for an explicit callback. The two waiting patterns require Standard Workflows.",{"title":455,"text":456},"Protect and bind resumption","Keep tokens behind an authorized, account-local backend and bind answers to the correct attempt and content version. Conditional storage updates do not make the callback and record update atomic.",{"title":458,"text":459},"Liveness is not completion","Heartbeats neither complete the Task nor extend its total timeout. Human approval or clarification must produce a validated business result before the waiting attempt expires.","2026-10-29T23:44:56.764Z",{"pageSlug":93,"code":92,"certification":91,"certificationSlug":93},{"slug":463,"title":464},"aws-step-functions-map-state-execution-aip-c01","AWS Step Functions: Map state execution",1796130174604]