[{"data":1,"prerenderedAt":377},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-data-engineer-associate\u002Flessons\u002Famazon-managed-service-for-apache-flink-vs-aws-lambda-stream-processing-models-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":217,"steps":246,"dateModified":372,"course":373,"nextLesson":374},"amazon-managed-service-for-apache-flink-vs-aws-lambda-stream-processing-models-dea-c01","Amazon Managed Service for Apache Flink vs AWS Lambda: stream-processing models","When continuously running, stateful Flink applications fit better than Lambda invocations that process events and keep persistent state externally.",[190,196,200,204,208,213],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-dynamodb","service","Amazon DynamoDB","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FArch_Amazon-DynamoDB_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"amazon-kinesis-data-streams","Amazon Kinesis Data Streams","\u002Fimages\u002Fprovider-services\u002Famazon-kinesis-data-streams\u002Fcovers\u002FArch_Amazon-Kinesis-Data-Streams_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"amazon-managed-service-for-apache-flink","Amazon Managed Service for Apache Flink","\u002Fimages\u002Fprovider-services\u002Famazon-managed-service-for-apache-flink\u002Fcovers\u002FArch_Amazon-Managed-Service-for-Apache-Flink_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",{"key":209,"kind":210,"name":211,"icon":212,"provider":195},"amazon-dynamodb-table","part","Amazon DynamoDB table","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FRes_Amazon-DynamoDB_Table_48.png",{"key":214,"kind":210,"name":215,"icon":216,"provider":195},"amazon-s3-bucket","Amazon S3 bucket","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FRes_Amazon-Simple-Storage-Service_Bucket_48.png",[218],{"key":219,"cards":220,"groups":236,"lines":237},"stream-models",[221,224,227,230,233],{"key":222,"component":197,"label":223},"stream","Device measurement stream",{"key":225,"component":201,"label":226},"flink","Continuous per-device windows",{"key":228,"component":214,"label":229},"results","Completed window results",{"key":231,"component":205,"label":232},"lambda","Update cumulative device counts",{"key":234,"component":209,"label":235},"state","Persistent device counts",[],[238,240,242,244],{"from":222,"to":225,"label":239},"Measurement records",{"from":225,"to":228,"label":241},"Window results",{"from":222,"to":231,"label":243},"Record batches",{"from":231,"to":234,"label":245},"Count updates",[247,251,270,300,312,336,351,354,359],{"kind":248,"title":249,"body":250},"explanation","Start with what must survive an event","\u003Cp>A \u003Cstrong>stateless computation\u003C\u002Fstrong> needs only its current input: converting a measurement from Celsius to Fahrenheit does not require earlier measurements. A \u003Cstrong>stateful computation\u003C\u002Fstrong> retains information across inputs, such as a running count or the measurements contributing to a time-window average.\u003C\u002Fp>\u003Cp>\u003Cstrong>Amazon Managed Service for Apache Flink\u003C\u002Fstrong> runs a continuous stream-processing application. Flink can manage working state as part of that application, so later records can update earlier computations without application code loading and saving every intermediate value in a separate database.\u003C\u002Fp>\u003Cp>\u003Cstrong>AWS Lambda\u003C\u002Fstrong> runs processing code in invocations, which can receive individual events or batches. For the event-processing model compared here, persistent business state belongs outside the invocation, such as in DynamoDB. Lambda can therefore participate in a stateful application even though its invocation memory is not the durable state store.\u003C\u002Fp>",{"kind":252,"title":253,"exercise":254},"exercise","Separate the execution models",{"type":255,"question":256,"groups":257,"statements":260},"versus","Sort each description into the execution model it describes.",[258,259],"Managed Service for Apache Flink","Lambda event processing",[261,264,266,268],{"text":262,"group":263},"Runs a continuous stream-processing application.",0,{"text":265,"group":12},"Runs processing code in event or batch invocations.",{"text":267,"group":263},"Can retain working aggregation state in the stream-processing runtime.",{"text":269,"group":12},"Keeps persistent business state outside invocation memory.",{"kind":248,"title":271,"body":272,"diagram":219,"walkthrough":273},"Follow two independent consumers","\u003Cp>This architecture gives the same measurement stream to two \u003Cstrong>independent consumers\u003C\u002Fstrong>. It illustrates different computations, not a requirement to deploy both services. One branch produces per-device time-window results; the other maintains a simple cumulative count for each device.\u003C\u002Fp>\u003Cp>Notice the distinction between \u003Cstrong>working state\u003C\u002Fstrong> and \u003Cstrong>output\u003C\u002Fstrong>. The window branch keeps intermediate aggregation state in its processing runtime and writes completed results. The invocation branch sends updates to an external table that preserves its counts between invocations.\u003C\u002Fp>",[274,277,282,287,292,297],{"text":275,"cards":276},"Amazon Kinesis Data Streams holds the incoming device measurement records for consumption.",[222],{"text":278,"cards":279,"lines":280},"The Flink application consumes measurement records continuously and maintains the per-device state needed for time-window calculations.",[225],[281],{"from":222,"to":225},{"text":283,"cards":284,"lines":285},"The Flink application writes completed window results to the S3 bucket. This bucket is the result destination, not the store for live window state in this diagram.",[228],[286],{"from":225,"to":228},{"text":288,"cards":289,"lines":290},"Separately, the Lambda integration reads batches from the stream and invokes the function to process them. The function calculates the count updates for each device.",[231],[291],{"from":222,"to":231},{"text":293,"cards":294,"lines":295},"The Lambda function sends count updates to the DynamoDB table, which preserves cumulative device counts across invocations.",[234],[296],{"from":231,"to":234},{"text":298,"cards":299},"The two branches contrast runtime-managed window state with invocation-based processing backed by an external persistent state store.",[],{"kind":252,"title":301,"exercise":302},"Trace a window result",{"type":303,"diagram":219,"scenario":304,"path":305},"trace","A device measurement contributes to a time window that eventually produces a stored result.",[306,308,310],{"card":222,"note":307},"The measurement enters the stream.",{"card":225,"note":309},"The continuous application updates window state and produces the window result.",{"card":228,"note":311},"The completed result is written to the S3 bucket.",{"kind":248,"title":313,"body":314,"table":315},"State ownership changes the design","\u003Cp>With \u003Cstrong>Flink-managed state\u003C\u002Fstrong>, the application expresses computations such as per-device totals and time windows, and the runtime maintains their working state. Checkpoints support recovery of that state after a failure. Continuous execution does not mean the application never restarts, or that its state exists only in unprotected memory.\u003C\u002Fp>\u003Cp>With \u003Cstrong>Lambda and external state\u003C\u002Fstrong>, your code uses a persistent store when information must outlive an invocation. Reused execution environments can retain cached values, but reuse is not a durability guarantee. Database operations must preserve correctness when invocations overlap or records are processed again; an atomic update addresses concurrent updates but does not by itself prevent duplicate counting.\u003C\u002Fp>\u003Cp>Replacing the window processor with Lambda is therefore not just changing a service name. Without an external state design, invocation-local variables cannot preserve the window across independent invocations.\u003C\u002Fp>",{"columns":316,"rows":319},[317,318,259],"Design point","Flink application",[320,324,328,332],[321,322,323],"Execution unit","Continuous application","Event or batch invocation",[325,326,327],"Persistent working state","Managed by Flink runtime","External persistent store",[329,330,331],"State recovery","Checkpoint-based recovery","Persisted application data",[333,334,335],"Natural fit","Ongoing window calculations","Independent event actions",{"kind":252,"title":337,"exercise":338},"Restore the stateful window processor",{"type":339,"diagram":219,"requirement":340,"change":341,"tray":342,"hint":349,"explanation":350},"flaw","The window branch must run continuously and manage working window state in its processing runtime, without adding an external database for that state.",{"card":225,"component":205},[343,345,347],{"component":201,"reason":344},"Its continuous runtime manages working window state and supports checkpoint-based recovery.",{"component":205,"reason":346},"Invocation memory is not a durable store for windows spanning independent invocations.",{"component":191,"reason":348},"It can persist state, but it does not run the continuous window-processing application.","The requirement is about retaining and recovering working window state, not merely executing code when records arrive.","Managed Service for Apache Flink restores the continuous, runtime-managed state model. Lambda could participate in a different stateful design, but replacing Flink here leaves no durable state design for windows spanning invocations.",{"kind":248,"title":352,"body":353},"Choose by the computation, not the source","\u003Cp>A streaming source alone does not select the processor: \u003Cstrong>both services can process stream records\u003C\u002Fstrong>. Prefer Flink when the central job is an ongoing computation across related events, especially many per-key aggregates, time windows, or stream joins. Its built-in state and time-processing capabilities reduce the amount of coordination you must build around separate invocations.\u003C\u002Fp>\u003Cp>Prefer Lambda when the work is naturally an \u003Cstrong>event or batch action\u003C\u002Fstrong>, such as validating or transforming records, or performing a straightforward database update. Needing some persistent state does not automatically require Flink: a simple external count can be a reasonable Lambda design. As windows and relationships between events become central, Flink becomes the more natural model.\u003C\u002Fp>\u003Cp>In the illustrated architecture, keep the branches independent: Flink writes window results to S3, while Lambda updates persistent counts in DynamoDB. The S3 bucket stores output; the DynamoDB table stores state for the invocation-based branch.\u003C\u002Fp>",{"kind":252,"title":355,"exercise":356},"Rebuild the two processing models",{"type":357,"diagram":219,"question":358},"build","Rebuild the illustrated architecture's two independent processing branches, keeping completed window output separate from persistent invocation state.",{"kind":248,"title":360,"body":361,"takeaways":362},"What to remember","\u003Cp>Choose the processing model by \u003Cstrong>how events depend on earlier events\u003C\u002Fstrong> and \u003Cstrong>who manages the state\u003C\u002Fstrong>, not simply by whether the input is a stream.\u003C\u002Fp>",[363,366,369],{"title":364,"text":365},"State spans inputs","Stateless computations need only their current input. Stateful computations retain information across inputs, such as a running count or window aggregate.",{"title":367,"text":368},"Flink owns working state","Flink fits continuous computations built around windows, per-key aggregates, and joins. Its runtime manages working state and supports recovery through checkpoints.",{"title":370,"text":371},"Lambda persists state externally","Lambda fits event or batch actions and can use an external store for stateful behavior. Do not treat reused invocation memory as durable business state.","2026-10-29T23:39:59.228Z",{"pageSlug":80,"code":79,"certification":78,"certificationSlug":80},{"slug":375,"title":376},"amazon-kinesis-data-streams-the-sharded-stream-model-dea-c01","Amazon Kinesis Data Streams: the sharded stream model",1796130164508]