[{"data":1,"prerenderedAt":359},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-data-engineer-associate\u002Flessons\u002Famazon-kinesis-data-streams-lambda-stream-consumers-dea-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":69,"components":189,"diagrams":208,"steps":234,"dateModified":354,"course":355,"nextLesson":356},"amazon-kinesis-data-streams-lambda-stream-consumers-dea-c01","Amazon Kinesis Data Streams: Lambda stream consumers","How Lambda event source mappings read stream shards into invocation batches, with starting positions, read permissions, ordered processing, and failure handling.",[190,196,200,204],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-kinesis-data-streams","service","Amazon Kinesis Data Streams","\u002Fimages\u002Fprovider-services\u002Famazon-kinesis-data-streams\u002Fcovers\u002FArch_Amazon-Kinesis-Data-Streams_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"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":201,"kind":192,"name":202,"icon":203,"provider":195},"amazon-simple-queue-service-(amazon-sqs)","Amazon Simple Queue Service (Amazon SQS)","\u002Fimages\u002Fprovider-services\u002Famazon-simple-queue-service-(amazon-sqs)\u002Fcovers\u002FArch_Amazon-Simple-Queue-Service_64.png",{"key":205,"kind":192,"name":206,"icon":207,"provider":195},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",[209],{"key":210,"cards":211,"groups":224,"lines":225},"lambda-stream-consumer",[212,215,218,221],{"key":213,"component":191,"label":214},"stream","Retained records in shards",{"key":216,"component":205,"label":217},"mapping","Event source mapping",{"key":219,"component":205,"label":220},"function","Stream-processing function",{"key":222,"component":201,"label":223},"failures","On-failure destination",[],[226,228,230,232],{"from":213,"to":216,"label":227},"Record data",{"from":216,"to":219,"label":229},"Invocation batch",{"from":219,"to":216,"label":231},"Batch result",{"from":216,"to":222,"label":233},"Failure metadata",[235,266,282,303,314,317,333,336,341],{"kind":236,"title":237,"body":238,"diagram":210,"walkthrough":239},"explanation","Lambda manages the stream reader","\u003Cp>An \u003Cstrong>event source mapping\u003C\u002Fstrong> is a Lambda resource that connects a Kinesis stream to a function. With a standard stream consumer, Lambda polls the stream's shards, gathers records into batches, and invokes the function \u003Cstrong>synchronously\u003C\u002Fstrong>. Kinesis does not directly invoke the function for each arriving record.\u003C\u002Fp>\u003Cp>The mapping manages reading and progress; the \u003Cstrong>function\u003C\u002Fstrong> runs your processing code. The diagram separates these two Lambda responsibilities. Its arrows show record data, invocation batches, results, and failure notifications—not the direction of polling API requests.\u003C\u002Fp>",[240,243,248,253,258,263],{"text":241,"cards":242},"Kinesis retains records in shards. Reading records does not remove them from the stream.",[213],{"text":244,"cards":245,"lines":246},"The Lambda event source mapping reads record data from the shards and collects it into invocation batches.",[216],[247],{"from":213,"to":216},{"text":249,"cards":250,"lines":251},"The mapping invokes the processing function with a batch. Your handler receives the records in the invocation event.",[219],[252],{"from":216,"to":219},{"text":254,"cards":255,"lines":256},"The function returns a batch result to the mapping. The mapping uses that result to decide whether processing succeeded or retry handling is needed.",[],[257],{"from":219,"to":216},{"text":259,"cards":260,"lines":261},"If a failed batch is discarded under the configured retry or record-age policy, the mapping sends failure metadata to the optional SQS on-failure destination.",[222],[262],{"from":216,"to":222},{"text":264,"cards":265},"The mapping connects retained stream records to function invocations, tracks their outcomes, and reports discarded failures.",[],{"kind":267,"title":268,"exercise":269},"exercise","Restore the managed reader",{"type":270,"diagram":210,"requirement":271,"change":272,"tray":273,"hint":280,"explanation":281},"flaw","The reader must be a Lambda-managed event source mapping that reads Kinesis shards and invokes the processing function. Fix the reader's service.",{"card":216,"component":197},[274,276,278],{"component":205,"reason":275},"Lambda owns the event source mapping that reads shards and invokes the function.",{"component":197,"reason":277},"An SNS topic is not the Lambda event source mapping that polls Kinesis shards.",{"component":201,"reason":279},"The queue receives failure metadata here; it does not implement the Kinesis-to-Lambda event source mapping.","The reader and the processing function have separate responsibilities, but both belong to Lambda.","AWS Lambda is correct. Its event source mapping reads shard records, forms invocation batches, and tracks processing results.",{"kind":236,"title":283,"body":284,"table":285},"Choose the initial position and authorize reads","\u003Cp>The mapping's \u003Cstrong>starting position\u003C\u002Fstrong> determines where initial reading begins. \u003Cstrong>TRIM_HORIZON\u003C\u002Fstrong> starts at the oldest records still retained; \u003Cstrong>LATEST\u003C\u002Fstrong> starts with new records rather than retained history; \u003Cstrong>AT_TIMESTAMP\u003C\u002Fstrong> starts from a specified time within available history. Starting position initializes the reader—it is not reapplied on every invocation. Mapping creation can take time, so LATEST is not a safe choice when records arriving during setup must not be missed.\u003C\u002Fp>\u003Cp>\u003Cstrong>Batch size\u003C\u002Fstrong> sets the maximum record count requested for an invocation batch. A \u003Cstrong>batching window\u003C\u002Fstrong> lets the mapping accumulate records before invoking. Lambda can invoke with fewer records when the window expires, and the invocation payload limit can also stop batch growth. Your handler must therefore accept variable-sized batches.\u003C\u002Fp>\u003Cp>The function's \u003Cstrong>execution role\u003C\u002Fstrong> supplies the mapping's stream-read permissions, including actions such as \u003Ccode>kinesis:GetRecords\u003C\u002Fcode>, \u003Ccode>kinesis:GetShardIterator\u003C\u002Fcode>, and shard-discovery actions. A producer's write permissions do not authorize these reads. For a stream encrypted with a customer managed KMS key, also authorize \u003Ccode>kms:Decrypt\u003C\u002Fcode> on that key through the applicable IAM and key policies.\u003C\u002Fp>",{"columns":286,"rows":290},[287,288,289],"Starting position","Initial reading begins","Typical intent",[291,295,299],[292,293,294],"TRIM_HORIZON","Oldest retained records","Process available history",[296,297,298],"LATEST","New records","Skip retained history",[300,301,302],"AT_TIMESTAMP","Specified time","Replay a time range",{"kind":267,"title":304,"exercise":305},"Set up the initial read",{"type":306,"question":307,"text":308,"answers":309,"distractors":311},"placeholder","Complete the setup rule for reading all available history.","To begin with the oldest retained records, select {}. Grant the stream-read permissions through the function's {}.",[292,310],"execution role",[296,312,313],"batching window","producer write policy",{"kind":236,"title":315,"body":316},"Order and retries are linked","\u003Cp>By default, Lambda processes one batch at a time for each shard, preserving \u003Cstrong>shard order\u003C\u002Fstrong> while different shards can be processed concurrently. There is no single processing order across the whole stream. Increasing the mapping's \u003Cstrong>parallelization factor\u003C\u002Fstrong> allows concurrent batches within a shard while preserving order for records with the same partition key. Your handler must also preserve any ordering its own work requires.\u003C\u002Fp>\u003Cp>When a function invocation fails, the default behavior is to \u003Cstrong>retry the whole batch\u003C\u002Fstrong>. With default per-shard processing, later records in that shard wait behind the failed batch; other shards can continue. Unless configured limits stop retries earlier, Lambda keeps retrying until the records expire from the stream. A permanently bad record can therefore delay useful work.\u003C\u002Fp>\u003Cp>You can bound this delay with a \u003Cstrong>maximum retry count\u003C\u002Fstrong> or \u003Cstrong>maximum record age\u003C\u002Fstrong>. When a failed batch is discarded under these settings, the mapping can send metadata to an \u003Cstrong>on-failure destination\u003C\u002Fstrong>, such as the SQS queue shown here. This is not the function's asynchronous dead-letter queue: the mapping invokes the function synchronously and manages its own stream failure handling.\u003C\u002Fp>",{"kind":267,"title":318,"exercise":319},"Follow a discarded batch",{"type":320,"diagram":210,"scenario":321,"path":322},"trace","Follow a batch's final failed attempt: after the function returns a failure, the mapping's configured retry limit requires the batch to be discarded.",[323,325,327,329,331],{"card":213,"note":324},"The batch's records originate in a retained stream shard.",{"card":216,"note":326},"The mapping reads the records and prepares the invocation batch.",{"card":219,"note":328},"The function processes the batch but returns a failure.",{"card":216,"note":330},"The mapping receives the failed result and determines that the retry limit has been reached.",{"card":222,"note":332},"The SQS destination receives metadata about the discarded batch.",{"kind":236,"title":334,"body":335},"Make successful processing safe to repeat","\u003Cp>Kinesis-to-Lambda processing is \u003Cstrong>at least once\u003C\u002Fstrong>: records can be delivered again, including records whose side effects already succeeded. Make the handler \u003Cstrong>idempotent\u003C\u002Fstrong>, so repeating a record does not repeat its business effect. A durable deduplication identifier can combine the stream, shard, and record sequence number. A successful batch result lets the mapping advance its processing checkpoint; it does not delete stream records.\u003C\u002Fp>\u003Cp>To reduce unnecessary retry work, enable \u003Cstrong>ReportBatchItemFailures\u003C\u002Fstrong> on the mapping and return failed record sequence numbers in the required response format. Lambda uses the lowest reported failed sequence number as the retry checkpoint, so later records can still be replayed. Alternatively, \u003Cstrong>BisectBatchOnFunctionError\u003C\u002Fstrong> splits a failed batch into smaller batches to help isolate the problem. Neither option removes the need for idempotent processing.\u003C\u002Fp>\u003Cp>Combine these choices deliberately: select the initial history, grant reads, preserve the needed order, and decide how long a failure may hold up progress. For the diagram's \u003Cstrong>SQS failure destination\u003C\u002Fstrong>, grant the execution role \u003Ccode>sqs:SendMessage\u003C\u002Fcode>. Its notification contains failure metadata, not a complete copy of the original records; investigate or replay from the stream before retention expires.\u003C\u002Fp>",{"kind":267,"title":337,"exercise":338},"Rebuild the complete consumer",{"type":339,"diagram":210,"question":340},"build","Rebuild the Lambda-managed consumer that reads retained shard records, processes batches, tracks results, and reports failures only after its retry policy discards a batch.",{"kind":236,"title":342,"body":343,"takeaways":344},"What to remember","\u003Cp>A \u003Cstrong>Lambda event source mapping\u003C\u002Fstrong> turns authorized shard reads into ordered invocation batches and manages progress, retries, and discarded failures.\u003C\u002Fp>",[345,348,351],{"title":346,"text":347},"Initialize and authorize","Choose TRIM_HORIZON, LATEST, or AT_TIMESTAMP for the initial read. Grant stream-read permissions through the function's execution role, with KMS decryption access when required.",{"title":349,"text":350},"Respect order and replay","Default processing preserves order within each shard, not across the stream. Delivery is at least once, so the handler must tolerate repeated records.",{"title":352,"text":353},"Control failed batches","Retries can delay later shard records; retry and age limits bound that delay. Partial batch responses or batch splitting reduce retry work, while an on-failure destination helps investigate discarded batches.","2026-10-29T23:39:59.769Z",{"pageSlug":80,"code":79,"certification":78,"certificationSlug":80},{"slug":357,"title":358},"amazon-kinesis-data-streams-vs-amazon-data-firehose-lambda-processing-roles-dea-c01","Amazon Kinesis Data Streams vs Amazon Data Firehose: Lambda processing roles",1796130158980]