[{"data":1,"prerenderedAt":445},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-solutions-architect-professional\u002Flessons\u002Faws-appsync-managed-real-time-publish-subscribe-sap-c03":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":237,"steps":277,"dateModified":440,"course":441,"nextLesson":442},"aws-appsync-managed-real-time-publish-subscribe-sap-c03","AWS AppSync: managed real-time publish–subscribe","How GraphQL subscriptions and Events channels deliver authorized updates over managed WebSocket connections, including filtering, fan-out constraints, and reconnect behavior.",[190,196,200,204,208,212,216,220,224,229,233],{"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-cognito","Amazon Cognito","\u002Fimages\u002Fprovider-services\u002Famazon-cognito\u002Fcovers\u002FArch_Amazon-Cognito_64.png",{"key":205,"kind":192,"name":206,"icon":207,"provider":195},"aws-appsync","AWS AppSync","\u002Fimages\u002Fprovider-services\u002Faws-appsync\u002Fcovers\u002FArch_AWS-AppSync_64.png",{"key":209,"kind":192,"name":210,"icon":211,"provider":195},"aws-iam-identity-center-(aws-single-sign-on)","AWS IAM Identity Center (AWS Single Sign-On)","\u002Fimages\u002Fprovider-services\u002Faws-iam-identity-center-(aws-single-sign-on)\u002Fcovers\u002FArch_AWS-IAM-Identity-Center_64.png",{"key":213,"kind":192,"name":214,"icon":215,"provider":195},"aws-iot-core","AWS IoT Core","\u002Fimages\u002Fprovider-services\u002Faws-iot-core\u002Fcovers\u002FArch_AWS-IoT-Core_64.png",{"key":217,"kind":192,"name":218,"icon":219,"provider":195},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":221,"kind":192,"name":222,"icon":223,"provider":195},"aws-security-token-service-(aws-sts)","AWS Security Token Service (AWS STS)","\u002Fimages\u002Fprovider-services\u002Faws-security-token-service-(aws-sts)\u002Fcovers\u002FRes_AWS-Identity-Access-Management_AWS-STS-Alternate_48.png",{"key":225,"kind":226,"name":227,"icon":228,"provider":195},"amazon-dynamodb-table","part","Amazon DynamoDB table","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FRes_Amazon-DynamoDB_Table_48.png",{"key":230,"kind":226,"name":231,"icon":232,"provider":195},"amazon-s3-bucket","Amazon S3 bucket","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FRes_Amazon-Simple-Storage-Service_Bucket_48.png",{"key":234,"kind":235,"name":236,"icon":20,"provider":20},"users","generic","Users",[238],{"key":239,"cards":240,"groups":259,"lines":260},"managed-updates",[241,244,247,250,253,256],{"key":242,"component":201,"label":243},"identity","User pool: issue client JWTs",{"key":245,"component":234,"label":246},"client","Application subscribers",{"key":248,"component":205,"label":249},"graphql","GraphQL API: authorized subscriptions and recovery queries",{"key":251,"component":205,"label":252},"events","Separate Event API: authorized channel subscriptions",{"key":254,"component":217,"label":255},"publisher","Backend publisher using IAM authorization",{"key":257,"component":225,"label":258},"state","Authoritative versioned items, keyed by PK and SK",[],[261,263,265,267,269,271,273,275],{"from":242,"to":245,"label":262},"User-pool JWTs",{"from":245,"to":248,"label":264},"Subscribe or query",{"from":245,"to":251,"label":266},"Subscribe",{"from":254,"to":248,"label":268},"GraphQL mutation",{"from":254,"to":251,"label":270},"Channel publish",{"from":248,"to":257,"label":272},"Read or write",{"from":248,"to":245,"label":274},"Subscription updates",{"from":251,"to":245,"label":276},"Channel events",[278,317,340,343,357,382,402,405,417,427],{"kind":279,"title":280,"body":281,"diagram":239,"walkthrough":282},"explanation","Two publication models, managed connections","\u003Cp>\u003Cstrong>AppSync GraphQL subscriptions\u003C\u002Fstrong> deliver results from linked GraphQL mutations. \u003Cstrong>AppSync Events\u003C\u002Fstrong> delivers publications to channel subscribers through a separate Event API, without a GraphQL schema or mutation. Both manage WebSocket connections and routing; neither makes a live connection a durable event log.\u003C\u002Fp>\u003Cp>The diagram shows both notification paths and a GraphQL state-recovery path. Clients use \u003Cstrong>Cognito user-pool JWTs\u003C\u002Fstrong>; the Lambda publisher uses IAM authorization. Arrows show application operations and notification delivery, not every protocol response. The versioned DynamoDB items are application state, not a subscription backlog.\u003C\u002Fp>\u003Cp>These roles are specific: AppSync owns GraphQL subscription execution, Cognito issues the user-pool JWTs, and a DynamoDB table stores PK\u002FSK items. An API Gateway WebSocket API or an IoT Core MQTT broker does not execute AppSync GraphQL subscriptions; IAM Identity Center and STS do not issue Cognito user-pool JWTs.\u003C\u002Fp>",[283,286,291,297,303,308,314],{"text":284,"cards":285},"Cognito is the identity source in this design.",[242],{"text":287,"cards":288,"lines":289},"The application obtains a user-pool JWT after authentication. The token identifies the caller; application authorization must still determine which updates that caller may receive.",[245],[290],{"from":242,"to":245},{"text":292,"cards":293,"lines":294},"The application registers subscriptions with the GraphQL API or the separate Event API. The GraphQL API also accepts queries for current application state.",[248,251],[295,296],{"from":245,"to":248},{"from":245,"to":251},{"text":298,"cards":299,"lines":300},"The Lambda backend invokes a mutation on the GraphQL API or publishes to a channel on the Event API. These are distinct publication operations, authorized independently of subscriber access.",[254],[301,302],{"from":254,"to":248},{"from":254,"to":251},{"text":304,"cards":305,"lines":306},"GraphQL resolvers read or write the DynamoDB table. Mutations can update authoritative state, and recovery queries can read its current versions.",[257],[307],{"from":248,"to":257},{"text":309,"cards":310,"lines":311},"The GraphQL API pushes matching mutation results to registered subscribers. The Event API pushes accepted channel publications to matching subscribers.",[],[312,313],{"from":248,"to":245},{"from":251,"to":245},{"text":315,"cards":316},"Identity, publication, subscription delivery, and authoritative state are separate responsibilities even though AppSync manages the live connections.",[],{"kind":318,"title":319,"exercise":320},"exercise","Restore the execution, identity, and state roles",{"type":321,"diagram":239,"question":322,"hidden":323,"tray":324},"palette","Fill the three empty slots, preserving the existing GraphQL execution, user-pool token, and PK\u002FSK storage contracts.",[248,242,257],[325,326,327,328,330,332,334,336,338],{"component":205},{"component":201},{"component":225},{"component":191,"reason":329},"Its WebSocket API does not execute AppSync GraphQL subscriptions linked to mutations.",{"component":213,"reason":331},"Its MQTT broker does not execute AppSync GraphQL subscriptions.",{"component":209,"reason":333},"It does not issue the Cognito user-pool JWTs required by this client contract.",{"component":221,"reason":335},"It issues temporary AWS credentials, not Cognito user-pool JWTs.",{"component":197,"reason":337},"It is a relational database, not the DynamoDB table with the specified PK\u002FSK item model.",{"component":230,"reason":339},"It stores objects, not DynamoDB items addressed through the specified PK\u002FSK table contract.",{"kind":279,"title":341,"body":342},"GraphQL: the mutation result is the publication","\u003Cp>A subscription field uses \u003Ccode>@aws_subscribe\u003C\u002Fcode> to name its triggering mutations. AppSync publishes the \u003Cstrong>mutation result\u003C\u002Fstrong>, not an automatic database-change notification: writing directly to DynamoDB does not trigger that subscription. The mutation selection set must include the fields needed by subscribers and filtering. A field omitted by the mutation cannot be recovered by a subscription resolver as a fresh per-recipient database read; missing selected fields can produce nulls or non-null errors.\u003C\u002Fp>\u003Cp>\u003Cstrong>Basic filtering\u003C\u002Fstrong> matches subscription arguments against published fields. \u003Cstrong>Enhanced filtering\u003C\u002Fstrong> defines server-side rules in the subscription resolver and takes precedence over basic argument filtering. If an argument must constrain an enhanced filter, explicitly include that constraint in the enhanced rules. Include the fields those rules inspect in the mutation's selected result.\u003C\u002Fp>\u003Cp>Authenticate and authorize the \u003Cstrong>subscription registration\u003C\u002Fstrong>, not just the WebSocket connection or the publisher. A caller-supplied tenant argument is not proof of tenant membership. Validate it against trusted identity claims, or derive an enhanced filter from those claims in the subscription resolver. Replacing a resolver's filter rules does not retroactively rebuild already registered subscriptions.\u003C\u002Fp>",{"kind":318,"title":344,"exercise":345},"Keep the tenant constraint server-side",{"type":346,"question":347,"text":348,"answers":349,"distractors":353},"placeholder","Complete the rule for a GraphQL subscription that uses an enhanced filter.","When enhanced filtering is enabled, the tenant constraint must be present in the {}. Derive the allowed tenant from {}, and include tenantId in the {}.",[350,351,352],"enhanced filter rules","trusted identity claims","mutation selection set",[354,355,356],"unvalidated client arguments","WebSocket connection identifier","DynamoDB stream configuration",{"kind":279,"title":358,"body":359,"table":360},"Events: authorize channels, then budget fan-out","\u003Cp>\u003Cstrong>AppSync Events\u003C\u002Fstrong> routes publications by channel path within a configured namespace. Publishers can use HTTP or WebSocket publication; subscribers use WebSockets. Channel matching, including supported wildcard subscriptions, is not GraphQL field filtering. Namespace \u003Ccode>onSubscribe\u003C\u002Fcode> handlers can enforce identity-to-channel access, while \u003Ccode>onPublish\u003C\u002Fcode> handlers can validate, transform, or filter published events.\u003C\u002Fp>\u003Cp>\u003Cstrong>Connection, publish, and subscribe authorization\u003C\u002Fstrong> are separate decisions. Configure the allowed authorization modes and enforce the application's channel policy; successfully connecting does not grant permission to every channel. A path such as \u003Ccode>\u002Forders\u002FtenantA\u003C\u002Fcode> is a routing name, not a security boundary by itself. Any permitted wildcard subscription must respect the same tenant boundary.\u003C\u002Fp>\u003Cp>For both models, \u003Cstrong>fan-out\u003C\u002Fstrong> expands one accepted publication into deliveries to matching subscribers. Inbound publication volume alone therefore understates outbound load. Payload size, matching subscriptions, connection churn, and service throughput limits all matter; monitor throttling and delivery failures. Use narrow filters or channel scopes and small payloads, and verify current quotas rather than assuming managed scaling is unlimited.\u003C\u002Fp>",{"columns":361,"rows":365},[362,363,364],"Mechanism","GraphQL subscriptions","Events channels",[366,370,374,378],[367,368,369],"Publication","Linked mutation result","Explicit channel publish",[371,372,373],"Routing","Subscription field and filters","Channel path matching",[375,376,377],"Server-side policy","Subscription resolver","Namespace handlers",[379,380,381],"Payload shape","GraphQL selection sets","Application event payload",{"kind":318,"title":383,"exercise":384},"Separate result filtering from channel routing",{"type":385,"question":386,"groups":387,"statements":388},"versus","Sort each mechanism into the publication model it belongs to.",[363,364],[389,392,394,396,398,400],{"text":390,"group":391},"A subscription field names its triggering mutations with @aws_subscribe.",0,{"text":393,"group":12},"A namespace onSubscribe handler checks identity-to-channel access.",{"text":395,"group":391},"An enhanced subscription filter takes precedence over basic argument filtering.",{"text":397,"group":12},"An HTTP publisher sends an event to a channel path without a GraphQL mutation.",{"text":399,"group":391},"The mutation selection set determines which result fields are available for delivery.",{"text":401,"group":12},"A permitted wildcard subscription can match multiple channel paths.",{"kind":279,"title":403,"body":404},"Reconnect restores transport, not missed history","\u003Cp>A managed WebSocket is still a \u003Cstrong>temporary connection\u003C\u002Fstrong>. Clients must detect disconnection or keep-alive timeout, reconnect with bounded exponential backoff and jitter, refresh credentials when necessary, and register subscriptions again. Wait for the protocol's connection and subscription acknowledgments before treating the live path as ready. SDKs can automate parts of this lifecycle, but a reconnected socket alone does not prove that every subscription is active.\u003C\u002Fp>\u003Cp>Neither ordinary GraphQL subscriptions nor Events channels provides a \u003Cstrong>durable replay cursor\u003C\u002Fstrong> for disconnected subscribers. Recover current state through a query, or recover history through an application-owned event log. In the diagram, the recovery read is client to GraphQL API to DynamoDB; the Event API is not a second route to that table.\u003C\u002Fp>\u003Cp>For a stateful view, establish the subscription and buffer incoming updates before querying a versioned snapshot, then reconcile the snapshot and buffer by item version or event ID. Querying first and subscribing afterward creates a blind interval. Publication retries and recovery overlap also require \u003Cstrong>idempotent reconciliation\u003C\u002Fstrong>; a WebSocket reconnect does not provide exactly-once application processing. This pattern requires the application to maintain meaningful versions and retained state or history.\u003C\u002Fp>",{"kind":318,"title":406,"exercise":407},"Follow the recovery read",{"type":408,"diagram":239,"scenario":409,"path":410},"trace","After reconnecting, the client has reauthorized its subscription and begun buffering updates; trace the request that reads authoritative state for reconciliation.",[411,413,415],{"card":245,"note":412},"Issue a recovery query while buffering live updates.",{"card":248,"note":414},"Authorize the query and execute its state-read resolver.",{"card":257,"note":416},"Read versioned authoritative items, not a subscription backlog.",{"kind":318,"title":418,"exercise":419},"Reassemble the managed update paths",{"type":420,"diagram":239,"question":421,"decoys":422},"build","Rebuild the taught design for Cognito-authenticated subscribers and an IAM-authorized Lambda publisher, preserving both AppSync publication models, scoped live delivery, and GraphQL recovery from authoritative versioned state; draw the application flows, not protocol response arrows.",[423,425],{"component":191,"reason":424},"Its WebSocket API does not execute the mutation-linked AppSync GraphQL subscriptions required by this design.",{"component":213,"reason":426},"Its MQTT broker does not execute the AppSync GraphQL API and subscription filters required by this design.",{"kind":279,"title":428,"body":429,"takeaways":430},"What to remember","\u003Cp>\u003Cstrong>AppSync manages live connections and fan-out\u003C\u002Fstrong>, while the application must define authorized routing, publish complete useful payloads, and recover state across connection gaps.\u003C\u002Fp>",[431,434,437],{"title":432,"text":433},"Two publication contracts","GraphQL subscriptions deliver linked mutation results shaped by selection sets and filters. Events delivers explicit channel publications through a separate Event API.",{"title":435,"text":436},"Authorize and constrain fan-out","A valid connection does not authorize every subscription or channel. Enforce identity-derived scope, and size for outbound deliveries rather than publication count alone.",{"title":438,"text":439},"Reconnect and reconcile","Reconnect, reauthorize, and re-register subscriptions; do not expect automatic replay. Buffer live updates and reconcile versioned state or retained history using application-level idempotency.","2026-11-16T05:26:22.647Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":443,"title":444},"noisy-neighbor-resource-isolation-in-multi-tenant-architectures-sap-c03","Noisy Neighbor: resource isolation in multi-tenant architectures",1796130195485]