[{"data":1,"prerenderedAt":371},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-solutions-architect-associate\u002Flessons\u002Faws-sts-assuming-roles-for-temporary-access-saa-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":69,"components":189,"diagrams":213,"steps":240,"dateModified":366,"course":367,"nextLesson":368},"aws-sts-assuming-roles-for-temporary-access-saa-c03","AWS STS: Assuming roles for temporary access","How AssumeRole uses caller permissions and role trust to issue temporary credentials for role switching and cross-account access, with permissions and duration bounded by the role session.",[190,196,200,204,208],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-s3","service","Amazon S3","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FArch_Amazon-Simple-Storage-Service_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"aws-command-line-interface-(aws-cli)","AWS Command Line Interface (AWS CLI)","\u002Fimages\u002Fprovider-services\u002Faws-command-line-interface-(aws-cli)\u002Fcovers\u002FArch_AWS-Command-Line-Interface_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"aws-secrets-manager","AWS Secrets Manager","\u002Fimages\u002Fprovider-services\u002Faws-secrets-manager\u002Fcovers\u002FArch_AWS-Secrets-Manager_64.png",{"key":205,"kind":192,"name":206,"icon":207,"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":209,"kind":210,"name":211,"icon":212,"provider":195},"amazon-s3-bucket","part","Amazon S3 bucket","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FRes_Amazon-Simple-Storage-Service_Bucket_48.png",[214],{"key":215,"cards":216,"groups":228,"lines":233},"assume-role-flow",[217,221,224],{"key":218,"component":197,"label":219,"group":220},"caller","Caller using Account A credentials","account-a",{"key":222,"component":205,"label":223},"sts","AssumeRole: ReportsReader in Account B",{"key":225,"component":209,"label":226,"group":227},"reports","Reports bucket","account-b",[229,231],{"key":220,"label":230},"Account A — caller identity",{"key":227,"label":232},"Account B — target role and resources",[234,236,238],{"from":218,"to":222,"label":235},"AssumeRole request",{"from":222,"to":218,"label":237},"Temporary credentials",{"from":218,"to":225,"label":239},"Signed GetObject",[241,259,278,303,315,318,331,334,348,353],{"kind":242,"title":243,"body":244,"table":245},"explanation","Permission to ask, and trust to enter","\u003Cp>\u003Cstrong>AssumeRole\u003C\u002Fstrong> lets an authenticated caller obtain temporary credentials for an IAM role. Use it to switch responsibilities within an account or access another account without sharing that account's long-term credentials.\u003C\u002Fp>\u003Cp>For \u003Cstrong>cross-account access\u003C\u002Fstrong>, both sides must authorize the request. The caller needs permission for \u003Ccode>sts:AssumeRole\u003C\u002Fcode> on the target role ARN. The target role's \u003Cstrong>trust policy\u003C\u002Fstrong> must allow that caller to assume it. Granting only one side is not enough.\u003C\u002Fp>\u003Cp>Trust conditions, such as an MFA requirement or an external ID, must also be satisfied, and applicable explicit denies still block access. Within one account, a trust policy that directly names an IAM user can grant assumption without a separate identity-policy allow; do not apply that exception to cross-account access.\u003C\u002Fp>",{"columns":246,"rows":250},[247,248,249],"Authorization","Where it applies","Question answered",[251,255],[252,253,254],"Caller permission","Calling identity","May I assume this role?",[256,257,258],"Role trust policy","Target role","May this caller enter?",{"kind":260,"title":261,"exercise":262},"exercise","Separate the two sides",{"type":263,"question":264,"groups":265,"statements":268},"versus","Sort each statement by the side of cross-account authorization it describes.",[266,267],"Caller permissions","Target role trust",[269,272,274,276],{"text":270,"group":271},"Allows sts:AssumeRole on the destination role ARN.",0,{"text":273,"group":12},"Identifies which calling principals may assume the role.",{"text":275,"group":271},"Is evaluated as permission of the calling identity.",{"text":277,"group":12},"Can require an external ID when the caller assumes this role.",{"kind":242,"title":279,"body":280,"diagram":215,"walkthrough":281},"Follow the credentials, then the resource request","\u003Cp>Here, a CLI caller authenticated in Account A assumes \u003Cstrong>ReportsReader\u003C\u002Fstrong>, a role in Account B. The caller supplies the target \u003Cstrong>role ARN\u003C\u002Fstrong> and a \u003Cstrong>role session name\u003C\u002Fstrong>, which identifies the resulting session, along with any required condition values.\u003C\u002Fp>\u003Cp>After authorization succeeds, STS returns an \u003Cstrong>access key ID\u003C\u002Fstrong>, \u003Cstrong>secret access key\u003C\u002Fstrong>, and \u003Cstrong>session token\u003C\u002Fstrong>, plus an expiration time. The caller must use all three credential values for subsequent requests. Those requests use the assumed-role identity, not the original caller's identity.\u003C\u002Fp>\u003Cp>The diagram shows the explicit request flow: STS issues credentials, then the CLI calls S3 directly. STS is not a proxy through which each S3 request passes.\u003C\u002Fp>",[282,285,290,295,300],{"text":283,"cards":284},"The CLI starts with credentials for a caller in Account A.",[218],{"text":286,"cards":287,"lines":288},"The CLI sends AssumeRole to STS for ReportsReader in Account B. STS authorizes the request against the caller's permissions, the role's trust, and applicable conditions.",[222],[289],{"from":218,"to":222},{"text":291,"cards":292,"lines":293},"STS returns temporary credentials and their expiration time to the CLI.",[],[294],{"from":222,"to":218},{"text":296,"cards":297,"lines":298},"Using the new credentials, the CLI signs a GetObject request directly to the reports bucket in Account B. Access is evaluated for the role session.",[225],[299],{"from":218,"to":225},{"text":301,"cards":302},"Role assumption obtains a temporary identity; the caller then uses that identity to access the destination resource.",[],{"kind":260,"title":304,"exercise":305},"Trace credential issuance",{"type":306,"diagram":215,"scenario":307,"path":308},"trace","The caller is authorized to assume ReportsReader and is obtaining its session credentials.",[309,311,313],{"card":218,"note":310},"Signs AssumeRole using the caller's existing credentials.",{"card":222,"note":312},"Authorizes the assumption and issues temporary role credentials.",{"card":218,"note":314},"Receives the access key ID, secret access key, session token, and expiration.",{"kind":242,"title":316,"body":317},"A role session does not add the caller's permissions","\u003Cp>After switching roles, requests made with the new credentials use the \u003Cstrong>role session's permissions\u003C\u002Fstrong>. They do not combine the original caller's permissions with the role's permissions. Permission to assume a role is separate from permission to perform work after assuming it.\u003C\u002Fp>\u003Cp>An optional \u003Cstrong>session policy\u003C\u002Fstrong> can narrow the permissions granted through the role's identity policies. For those grants, an action must be allowed by both the role policies and the supplied session policy. A session policy cannot add permissions that the role does not grant.\u003C\u002Fp>\u003Cp>For example, if the role allows reading and writing reports but the session policy allows only reading, the session cannot write through those role-policy grants. Applicable permissions boundaries, organization policies, resource policies, and explicit denies also participate in authorization; a successful AssumeRole call does not guarantee that every resource request will succeed.\u003C\u002Fp>",{"kind":260,"title":319,"exercise":320},"Narrow a session",{"type":321,"question":322,"text":323,"answers":324,"distractors":327},"placeholder","Complete the rule for permissions granted through the role's identity policies.","The role allows reading and writing, while the session policy allows only reading. Through these grants, the session has {} access. The session policy can {} the role's permissions.",[325,326],"read-only","narrow",[328,329,330],"read-and-write","expand","administrator",{"kind":242,"title":332,"body":333},"The session has an end time","\u003Cp>An AssumeRole request can include \u003Cstrong>DurationSeconds\u003C\u002Fstrong>, but the caller cannot choose an unlimited lifetime. The request must fit the role's configured \u003Cstrong>maximum session duration\u003C\u002Fstrong> and applicable STS limits. A request above an allowed limit fails rather than creating a longer session.\u003C\u002Fp>\u003Cp>\u003Cstrong>Role chaining\u003C\u002Fstrong> means using credentials from one assumed role to assume another role. It has a stricter duration limit than an ordinary AssumeRole session, even if the destination role permits longer sessions.\u003C\u002Fp>\u003Cp>When the returned \u003Cstrong>expiration time\u003C\u002Fstrong> is reached, those credentials no longer authorize requests. To continue, obtain a new session through another authorized AssumeRole call; configured SDK or CLI credential providers can do this automatically. Retrieving a stored secret is not a renewal of an expired role session.\u003C\u002Fp>",{"kind":260,"title":335,"exercise":336},"Restore the renewal path",{"type":337,"diagram":215,"requirement":338,"change":339,"tray":340,"hint":346,"explanation":347},"flaw","After expiration, the caller must obtain newly issued role credentials through an authorized AssumeRole call, with a duration within the applicable limits.",{"card":222,"component":201},[341,342,344],{"component":205},{"component":201,"reason":343},"Retrieving a stored secret does not issue a new AssumeRole session.",{"component":191,"reason":345},"The resource service receives signed requests; it does not issue AssumeRole credentials.","The expired credentials need a new role session, not retrieval from secret storage.","STS issues the new session after authorizing AssumeRole again. The new credentials have their own expiration, bounded by the role's maximum duration and applicable STS limits; the expired credentials are not extended.",{"kind":260,"title":349,"exercise":350},"Put the complete role switch together",{"type":351,"diagram":215,"question":352},"build","Rebuild the cross-account flow in which an authorized Account A caller obtains an unexpired, read-only ReportsReader session for Account B and uses it to read the reports bucket.",{"kind":242,"title":354,"body":355,"takeaways":356},"What to remember","\u003Cp>\u003Cstrong>AssumeRole\u003C\u002Fstrong> turns an authorized, trusted role switch into temporary credentials whose access and lifetime are bounded by the role session.\u003C\u002Fp>",[357,360,363],{"title":358,"text":359},"Both sides authorize","Cross-account assumption needs caller permission for sts:AssumeRole and a target role trust policy that allows the caller. Required conditions and applicable denies still matter.",{"title":361,"text":362},"Use the session identity","Use the access key ID, secret access key, and session token to call the resource directly. The session does not inherit a union of caller and role permissions, and session policies can narrow role-policy grants.",{"title":364,"text":365},"Expiration is a boundary","Session duration must fit the role and STS limits, with stricter limits for role chaining. Continued access after expiration requires a new authorized session.","2026-10-29T23:38:16.246Z",{"pageSlug":67,"code":66,"certification":65,"certificationSlug":67},{"slug":369,"title":370},"amazon-cognito-identity-pools-and-aws-credentials-saa-c03","Amazon Cognito: identity pools and AWS credentials",1796130148984]