[{"data":1,"prerenderedAt":354},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-data-engineer-associate\u002Flessons\u002Famazon-msk-kafka-s-partitioned-log-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":200,"steps":239,"dateModified":349,"course":350,"nextLesson":351},"amazon-msk-kafka-s-partitioned-log-dea-c01","Amazon MSK: Kafka's partitioned log","How producers and consumer groups use Kafka topics, partitions, and offsets to combine streams, distribute records, and replay retained data.",[190,196],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-ec2","service","Amazon EC2","\u002Fimages\u002Fprovider-services\u002Famazon-ec2\u002Fcovers\u002FArch_Amazon-EC2_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"amazon-managed-streaming-for-apache-kafka","Amazon Managed Streaming for Apache Kafka","\u002Fimages\u002Fprovider-services\u002Famazon-managed-streaming-for-apache-kafka\u002Fcovers\u002FArch_Amazon-Managed-Streaming-for-Apache-Kafka_64.png",[201],{"key":202,"cards":203,"groups":224,"lines":229},"orders-log",[204,207,210,213,217,220],{"key":205,"component":191,"label":206},"web","Web order producer",{"key":208,"component":191,"label":209},"store","Store order producer",{"key":211,"component":197,"label":212},"msk","orders topic: partitions P0 and P1",{"key":214,"component":191,"label":215,"group":216},"analytics0","Analytics consumer: assigned P0","analytics",{"key":218,"component":191,"label":219,"group":216},"analytics1","Analytics consumer: assigned P1",{"key":221,"component":191,"label":222,"group":223},"audit","Audit consumer: assigned P0 and P1","audit-group",[225,227],{"key":216,"label":226},"Consumer group: analytics",{"key":223,"label":228},"Consumer group: audit",[230,232,233,235,237],{"from":205,"to":211,"label":231},"order records",{"from":208,"to":211,"label":231},{"from":211,"to":214,"label":234},"P0 records",{"from":211,"to":218,"label":236},"P1 records",{"from":211,"to":221,"label":238},"P0\u002FP1 records",[240,244,259,304,316,319,328,331,336],{"kind":241,"title":242,"body":243},"explanation","A topic combines records, not global order","\u003Cp>\u003Cstrong>Amazon MSK\u003C\u002Fstrong> runs Apache Kafka clusters for applications. A \u003Cstrong>producer\u003C\u002Fstrong> publishes records to a named \u003Cstrong>topic\u003C\u002Fstrong>, such as \u003Ccode>orders\u003C\u002Fcode>. Several producers can publish to the same topic: this is \u003Cstrong>fan-in\u003C\u002Fstrong>. It brings their records into one named stream, but does not automatically join or aggregate their contents.\u003C\u002Fp>\u003Cp>A topic is divided into \u003Cstrong>partitions\u003C\u002Fstrong>. Each partition is an append-only log, and each appended record receives an \u003Cstrong>offset\u003C\u002Fstrong>: its position within that partition. Kafka preserves log order within a partition, not across the entire topic. Offset 12 in partition P0 and offset 12 in partition P1 identify different records.\u003C\u002Fp>\u003Cp>The producer's partitioning logic selects a partition. A common choice is to use an order ID as the record \u003Cstrong>key\u003C\u002Fstrong>. With consistent key-based partitioning and an unchanged partition count, records with the same key go to the same partition. This keeps that order's events in one log; it does not sort events by their timestamps.\u003C\u002Fp>",{"kind":245,"title":246,"exercise":247},"exercise","Name the log's parts",{"type":248,"question":249,"text":250,"answers":251,"distractors":255},"placeholder","Complete the description of a Kafka record's location.","The named stream orders is a {}. Its individual ordered log P0 is a {}. A record's position within P0 is its {}.",[252,253,254],"topic","partition","offset",[256,257,258],"consumer group","record key","producer",{"kind":241,"title":260,"body":261,"diagram":202,"walkthrough":262,"table":290},"Share work within a group; repeat it across groups","\u003Cp>A \u003Cstrong>consumer\u003C\u002Fstrong> fetches records from Kafka. Consumers that use the same \u003Cstrong>consumer group\u003C\u002Fstrong> share the topic's partitions. Under normal group assignment, each partition is assigned to one consumer in that group at a time. One consumer can own several partitions. Adding consumers helps only while there are partitions available to assign; a membership change triggers a \u003Cstrong>rebalance\u003C\u002Fstrong> of assignments.\u003C\u002Fp>\u003Cp>Different groups read independently, providing \u003Cstrong>fan-out\u003C\u002Fstrong>: each group can read the same records at its own pace. The diagram shows Kafka applications hosted on EC2, with two producers and two consumer groups. It is a snapshot of record flow: consumer fetch requests and offset commits are omitted, and the shown partition assignments remain fixed for the walkthrough.\u003C\u002Fp>",[263,266,272,277,282,287],{"text":264,"cards":265},"The web and store applications are Kafka producers. Each creates order records to publish.",[205,208],{"text":267,"cards":268,"lines":269},"Both producers publish to the orders topic in MSK. Their partitioning logic routes each record to P0 or P1, combining both sources in the topic.",[211],[270,271],{"from":205,"to":211},{"from":208,"to":211},{"text":273,"cards":274,"lines":275},"The first analytics consumer fetches P0 records. It handles only its assigned partition in this snapshot.",[214],[276],{"from":211,"to":214},{"text":278,"cards":279,"lines":280},"The second analytics consumer fetches P1 records. The analytics group divides the topic's work between its two members.",[218],[281],{"from":211,"to":218},{"text":283,"cards":284,"lines":285},"The audit group's single consumer fetches both P0 and P1. Its separate group lets it read the same records independently of analytics.",[221],[286],{"from":211,"to":221},{"text":288,"cards":289},"Two producers feed one partitioned topic, analytics divides the work within its group, and audit reads the topic independently.",[],{"columns":291,"rows":295},[292,293,294],"Relationship","Partition assignment","Record processing",[296,300],[297,298,299],"Within one group","Shared among members","Work divided",[301,302,303],"Across different groups","Independent per group","Same records available",{"kind":245,"title":305,"exercise":306},"Follow one partition's analytics route",{"type":307,"diagram":202,"scenario":308,"path":309},"trace","The store producer publishes an order record whose partitioning logic selects P1; follow only its analytics route.",[310,312,314],{"card":208,"note":311},"Creates the order record and selects P1.",{"card":211,"note":313},"Appends the record to P1 in the orders topic.",{"card":218,"note":315},"Fetches the record because it owns P1 in analytics.",{"kind":241,"title":317,"body":318},"Offsets track progress; retention enables replay","\u003Cp>A consumer has a current read position for each assigned partition. A \u003Cstrong>committed offset\u003C\u002Fstrong> is the group's saved restart position for that partition, normally the offset of the next record to read. If analytics processes P0 offset 41 and then commits 42, it can resume P0 at 42. There is no single offset for the whole topic, and audit's saved offsets are separate from analytics' offsets.\u003C\u002Fp>\u003Cp>Reading or committing an offset \u003Cstrong>does not delete records\u003C\u002Fstrong>. The topic's \u003Cstrong>retention policy\u003C\u002Fstrong> controls what remains available. Time- or size-based retention can remove old data; log compaction, when enabled, can remove superseded values for a key. An offset cannot recover a record that is no longer retained.\u003C\u002Fp>\u003Cp>To \u003Cstrong>replay\u003C\u002Fstrong> available history, a consumer must start from an earlier retained offset in each relevant partition. For an existing group, stop its consumers, reset its saved offsets, and restart them. Alternatively, use a separate group configured to start at the required retained positions. A new group is not automatically guaranteed to start at the beginning. Replayed records can repeat business actions, so processing should tolerate duplicates.\u003C\u002Fp>",{"kind":245,"title":320,"exercise":321},"Replay without resending",{"type":307,"diagram":202,"scenario":322,"path":323},"P0 offset 20 is still retained; audit has been stopped, reset to offset 20 for P0, and restarted while analytics continues normally.",[324,326],{"card":211,"note":325},"Still holds the original P0 record at offset 20.",{"card":221,"note":327},"Fetches the retained record again from its reset position.",{"kind":241,"title":329,"body":330},"Put the record flow together","\u003Cp>The same architecture supports \u003Cstrong>fan-in, shared work, and independent replay\u003C\u002Fstrong>. Both producers publish only to the orders topic. MSK supplies P0 records to the assigned analytics consumer, P1 records to the other analytics consumer, and both partitions to audit. Consumers fetch from MSK, not from each other or directly from producers.\u003C\u002Fp>\u003Cp>Replaying audit changes its \u003Cstrong>starting offsets\u003C\u002Fstrong>, not these record-flow connections. Analytics keeps its own progress, while audit rereads retained data in partition order. Reconstruct the diagram as this record-flow snapshot: use the shown assignments, include both producer inputs and both groups' reads, and omit fetch requests, commits, and application outputs.\u003C\u002Fp>",{"kind":245,"title":332,"exercise":333},"Rebuild the shared log and independent readers",{"type":334,"diagram":202,"question":335},"build","Rebuild the record-flow snapshot for both order sources, the partition-sharing analytics group, and the independently replaying audit group, using the assignments shown on the cards.",{"kind":241,"title":337,"body":338,"takeaways":339},"What to remember","\u003Cp>Kafka on Amazon MSK combines producer records in partitioned topics, shares reads within consumer groups, and supports independent replay through offsets while data remains retained.\u003C\u002Fp>",[340,343,346],{"title":341,"text":342},"Order belongs to partitions","Each partition is an ordered log with its own offsets. Multiple producers can feed one topic without creating a topic-wide order.",{"title":344,"text":345},"Groups define distribution","Consumers in one group divide partitions; separate groups can read the same records independently. More consumers than partitions do not add active readers for that topic within a group.",{"title":347,"text":348},"Replay needs retained data","Committed offsets save each group's restart position per partition. Moving back enables replay only for records still retained, and repeated processing must tolerate duplicates.","2026-10-29T23:39:59.235Z",{"pageSlug":80,"code":79,"certification":78,"certificationSlug":80},{"slug":352,"title":353},"amazon-kinesis-data-streams-lambda-stream-consumers-dea-c01","Amazon Kinesis Data Streams: Lambda stream consumers",1796130158760]