[{"data":1,"prerenderedAt":365},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-devops-engineer-professional\u002Flessons\u002Faws-secrets-manager-automated-credential-rotation-dop-c02":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":216,"steps":242,"dateModified":360,"course":361,"nextLesson":362},"aws-secrets-manager-automated-credential-rotation-dop-c02","AWS Secrets Manager: automated credential rotation","How scheduled rotation coordinates credential changes with target systems using Lambda rotation steps, version staging labels, and retry-safe failure handling.",[190,196,200,204,208,212],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-cloudwatch","service","Amazon CloudWatch","\u002Fimages\u002Fprovider-services\u002Famazon-cloudwatch\u002Fcovers\u002FArch_Amazon-CloudWatch_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"amazon-eventbridge","Amazon EventBridge","\u002Fimages\u002Fprovider-services\u002Famazon-eventbridge\u002Fcovers\u002FArch_Amazon-EventBridge_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"amazon-rds","Amazon RDS","\u002Fimages\u002Fprovider-services\u002Famazon-rds\u002Fcovers\u002FArch_Amazon-RDS_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":192,"name":210,"icon":211,"provider":195},"aws-secrets-manager","AWS Secrets Manager","\u002Fimages\u002Fprovider-services\u002Faws-secrets-manager\u002Fcovers\u002FArch_AWS-Secrets-Manager_64.png",{"key":213,"kind":192,"name":214,"icon":215,"provider":195},"aws-step-functions","AWS Step Functions","\u002Fimages\u002Fprovider-services\u002Faws-step-functions\u002Fcovers\u002FArch_AWS-Step-Functions_64.png",[217],{"key":218,"cards":219,"groups":232,"lines":233},"rotation",[220,223,226,229],{"key":221,"component":209,"label":222},"secrets","Schedule and secret versions",{"key":224,"component":205,"label":225},"function","Rotation handler",{"key":227,"component":201,"label":228},"database","Target database",{"key":230,"component":191,"label":231},"logs","Rotation logs",[],[234,236,238,240],{"from":221,"to":224,"label":235},"Rotation invocation",{"from":224,"to":221,"label":237},"Version API requests",{"from":224,"to":227,"label":239},"SQL operations",{"from":224,"to":230,"label":241},"Sanitized logs",[243,270,284,309,319,322,334,337,347],{"kind":244,"title":245,"body":246,"diagram":218,"walkthrough":247},"explanation","One rotation, two systems to coordinate","\u003Cp>\u003Cstrong>Scheduled rotation\u003C\u002Fstrong> must coordinate a stored secret with the system that accepts its credentials. This lesson follows \u003Cstrong>Lambda-based rotation\u003C\u002Fstrong> of an Amazon RDS database credential: changing the secret value alone does not change the database password.\u003C\u002Fp>\u003Cp>Secrets Manager owns the rotation schedule and version staging labels; the Lambda handler performs the target-specific work. A rotation window permits scheduling flexibility, not an exact cutover time. Secrets Manager invokes the handler for individual rotation steps rather than asking one invocation to complete the entire workflow.\u003C\u002Fp>\u003Cp>The diagram shows the directed requests and log writes for this implementation, not response traffic. EventBridge can schedule or route events, and Step Functions can orchestrate workflows, but neither replaces Secrets Manager's native rotation\u002Fversion protocol or the Lambda handler that implements its steps.\u003C\u002Fp>",[248,251,257,262,267],{"text":249,"cards":250},"Secrets Manager holds the rotation configuration and the secret's labeled versions. Its schedule initiates the rotation workflow.",[221],{"text":252,"cards":253,"lines":254},"Secrets Manager invokes the Lambda rotation handler with the secret identifier, a rotation token, and a step name. The handler sends API requests back to read or create versions and update staging labels.",[224],[255,256],{"from":221,"to":224},{"from":224,"to":221},{"text":258,"cards":259,"lines":260},"The handler connects to the RDS database to apply the candidate password and test it. These target-side operations are separate from secret-version API requests.",[227],[261],{"from":224,"to":227},{"text":263,"cards":264,"lines":265},"The handler writes sanitized diagnostic logs to CloudWatch Logs through its execution role. Logs identify the step and outcome without exposing credential values.",[230],[266],{"from":224,"to":230},{"text":268,"cards":269},"Rotation coordinates invocation, stored versions, database changes, and diagnostics; it does not make those separate systems one atomic transaction.",[],{"kind":271,"title":272,"exercise":273},"exercise","Restore the two coordination roles",{"type":274,"diagram":218,"question":275,"hidden":276,"tray":277},"palette","Restore the service that owns scheduled rotation and labeled versions, and the service that executes the rotation handler.",[221,224],[278,279,280,282],{"component":209},{"component":205},{"component":197,"reason":281},"EventBridge schedules or routes events; it neither owns Secrets Manager's labeled versions nor executes the Lambda rotation handler.",{"component":213,"reason":283},"Step Functions orchestrates state machines; it neither owns Secrets Manager's native rotation\u002Fversion protocol nor executes the Lambda rotation handler.",{"kind":244,"title":285,"body":286,"table":287},"Prepare, apply, test, then publish","\u003Cp>Each invocation carries \u003Cstrong>SecretId\u003C\u002Fstrong>, \u003Cstrong>ClientRequestToken\u003C\u002Fstrong>, and \u003Cstrong>Step\u003C\u002Fstrong>. The token identifies the candidate version throughout one rotation attempt. \u003Cstrong>createSecret\u003C\u002Fstrong> creates that version with \u003Cstrong>AWSPENDING\u003C\u002Fstrong>, unless it already exists; \u003Cstrong>setSecret\u003C\u002Fstrong> applies its credentials to the target. Generating a password is preparation, not a database update.\u003C\u002Fp>\u003Cp>\u003Cstrong>testSecret\u003C\u002Fstrong> authenticates with the pending credentials and checks the required access, such as a safe query. Only after that succeeds does \u003Cstrong>finishSecret\u003C\u002Fstrong> move \u003Cstrong>AWSCURRENT\u003C\u002Fstrong> to the tested version. Secrets Manager assigns \u003Cstrong>AWSPREVIOUS\u003C\u002Fstrong> to the version losing AWSCURRENT. Labels are movable pointers to versions, not copies of their values.\u003C\u002Fp>\u003Cp>Retrieval without an explicit version selection returns AWSCURRENT. Keeping the candidate pending prevents normal readers from selecting an untested version, but it does not guarantee the old credential still works at the target. Publication and target-side validity are separate states.\u003C\u002Fp>",{"columns":288,"rows":292},[289,290,291],"Step","Main action","Completion condition",[293,297,301,305],[294,295,296],"createSecret","Store candidate version","Pending value exists",[298,299,300],"setSecret","Apply target credential","Target accepts candidate",[302,303,304],"testSecret","Exercise candidate access","Required access works",[306,307,308],"finishSecret","Move AWSCURRENT","Tested version published",{"kind":271,"title":310,"exercise":311},"Rehearse the rotation sequence",{"type":312,"question":313,"steps":314},"process","Put the four rotation steps in their execution order.",[315,316,317,318],"createSecret: store or reuse the pending candidate","setSecret: apply the candidate to the target","testSecret: verify the candidate's required access","finishSecret: move AWSCURRENT to the tested candidate",{"kind":244,"title":320,"body":321},"Make repeated invocations converge","\u003Cp>Secrets Manager can retry failed rotation steps, so design for \u003Cstrong>idempotency\u003C\u002Fstrong>, not exactly-once execution. Validate the supplied version token against the secret's staging metadata: if it is already AWSCURRENT, return successfully; otherwise, require the expected AWSPENDING association before doing rotation work. In createSecret, reuse an existing value for that token rather than generating a different password on every invocation.\u003C\u002Fp>\u003Cp>\u003Cstrong>setSecret\u003C\u002Fstrong> must handle an ambiguous outcome: the database may have accepted the new password even if the invocation timed out before reporting success. Check whether the pending credential already authenticates before trying to change it again. Before making a change, validate that the current and pending records identify the intended target and identity for the chosen rotation strategy; never let altered secret fields redirect privileged work to another host or user.\u003C\u002Fp>\u003Cp>A failure after the database change does not roll it back automatically. Keep the candidate available, diagnose the failed step, and resume safely with that same value. \u003Cstrong>AWSPREVIOUS\u003C\u002Fstrong> preserves the old secret value, not proof that the database still accepts it; moving a label back is not a database rollback.\u003C\u002Fp>",{"kind":271,"title":323,"exercise":324},"Keep the retry on the same candidate",{"type":325,"question":326,"text":327,"answers":328,"distractors":331},"placeholder","Complete the retry-safety rule.","Reuse the candidate identified by {}. When setSecret is retried after an ambiguous timeout, first check whether the {} credential already authenticates.",[329,330],"ClientRequestToken","AWSPENDING",[289,332,333],"AWSPREVIOUS","a newly generated",{"kind":244,"title":335,"body":336},"Operate the gap between target change and publication","\u003Cp>With \u003Cstrong>single-user rotation\u003C\u002Fstrong>, setSecret changes the same database user's password, so new connections using the old value can fail before finishSecret publishes the replacement. \u003Cstrong>Alternating-users rotation\u003C\u002Fstrong> uses two users in turn to reduce that handoff risk, but requires appropriate privileges and maintenance of equivalent access. Neither strategy makes publication update application caches or connection pools automatically.\u003C\u002Fp>\u003Cp>Successful retries also require working \u003Cstrong>permissions and connectivity\u003C\u002Fstrong>: Secrets Manager must be allowed to invoke the function; the function needs scoped secret access, applicable KMS permissions, and database privileges. For a private database, its network placement and security rules must permit the database connection and access to required AWS APIs. Log step names, version identifiers, and sanitized errors, never passwords or entire secret payloads.\u003C\u002Fp>\u003Cp>Use the four diagram connections as operational boundaries: an invocation problem, a version API failure, a target SQL failure, and a logging failure need different repairs. If testing fails after the password changed, preserve the pending value, repair the cause, and validate that candidate before publication. Do not generate a replacement merely to clear the error, and do not promote an untested candidate.\u003C\u002Fp>",{"kind":271,"title":338,"exercise":339},"Reconnect the complete rotation workflow",{"type":340,"diagram":218,"question":341,"decoys":342},"build","Rebuild the taught RDS rotation workflow, placing its components and drawing and labeling only its invocation, version-management, target-operation, and sanitized-log request paths; omit response traffic.",[343,345],{"component":197,"reason":344},"Secrets Manager owns this workflow's native rotation schedule and staging labels; EventBridge event scheduling does not replace that role.",{"component":213,"reason":346},"Lambda executes this workflow's createSecret, setSecret, testSecret, and finishSecret handler; Step Functions state-machine orchestration does not execute that Lambda handler.",{"kind":244,"title":348,"body":349,"takeaways":350},"What to remember","\u003Cp>\u003Cstrong>Safe automated rotation\u003C\u002Fstrong> prepares one candidate, applies and tests it at the target, and publishes it through staging labels while making every repeated step safe.\u003C\u002Fp>",[351,354,357],{"title":352,"text":353},"Publish after validation","createSecret, setSecret, testSecret, and finishSecret separate preparation, target change, validation, and publication. AWSCURRENT moves only after the candidate passes its test.",{"title":355,"text":356},"Retry the same candidate","Use ClientRequestToken to reuse the candidate version and detect work already completed. A timeout does not prove that the database change failed.",{"title":358,"text":359},"Labels are not rollback","Stored versions and target credentials are separate state. Preserve the pending value during recovery, and never assume AWSPREVIOUS still authenticates or that moving a label reverses a database change.","2026-10-29T23:39:09.109Z",{"pageSlug":44,"code":43,"certification":42,"certificationSlug":44},{"slug":363,"title":364},"rolling-deployment-controlling-safe-batch-progression-dop-c02","Rolling Deployment: controlling safe batch progression",1796130156419]