[{"data":1,"prerenderedAt":336},["ShallowReactive",2],{"practiceExams":3,"studies":186,"free-lesson-\u002Fcourses\u002Faws-certified-developer-associate\u002Flessons\u002Fapis-the-aws-service-operation-contract-dva-c03":187},[4,22,37,51,63,75,87,98,111,123,134,144,155,168,177],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},23,"aws-certified-developer-associate-dva-c03","Prepare for the AWS Certified Developer - Associate (DVA-C03) exam with realistic practice questions on developing, securing, testing, deploying and troubleshooting applications on AWS, AI-assisted development included, with detailed explanations.",655,true,"2026-12-03T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png","associate",{"slug":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"DVA-C03",null,"2026-12-01",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},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,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"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":24,"code":35,"dateBetaStart":20,"dateReleased":36,"pageSlug":31},"SAP-C03","2026-11-17",{"id":38,"slug":39,"description":40,"questionCount":41,"isActive":9,"datePublicModified":42,"difficulty":43,"examVersion":49},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":44,"subtitle":45,"slug":46,"coverImageUrl":47,"level":48},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":39,"code":45,"dateBetaStart":20,"dateReleased":50,"pageSlug":46},"2023-09-19",{"id":52,"slug":53,"description":54,"questionCount":55,"isActive":9,"datePublicModified":42,"difficulty":56,"examVersion":61},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":57,"subtitle":58,"slug":59,"coverImageUrl":60,"level":33},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":53,"code":58,"dateBetaStart":20,"dateReleased":62,"pageSlug":59},"2023-03-07",{"id":64,"slug":65,"description":66,"questionCount":67,"isActive":9,"datePublicModified":42,"difficulty":68,"examVersion":72},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":69,"subtitle":70,"slug":71,"coverImageUrl":60,"level":48},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":65,"code":70,"dateBetaStart":73,"dateReleased":74,"pageSlug":71},"2024-08-13","2024-10-22",{"id":76,"slug":77,"description":78,"questionCount":79,"isActive":9,"datePublicModified":42,"difficulty":80,"examVersion":84},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":81,"subtitle":82,"slug":83,"coverImageUrl":60,"level":17},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":77,"code":82,"dateBetaStart":85,"dateReleased":86,"pageSlug":83},"2023-11-27","2024-03-12",{"id":12,"slug":88,"description":89,"questionCount":90,"isActive":9,"datePublicModified":42,"difficulty":91,"examVersion":96},"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":92,"subtitle":93,"slug":94,"coverImageUrl":95,"level":17},"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",{"slug":88,"code":93,"dateBetaStart":20,"dateReleased":97,"pageSlug":94},"2022-08-30",{"id":99,"slug":100,"description":101,"questionCount":102,"isActive":9,"datePublicModified":103,"difficulty":104,"examVersion":108},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":105,"subtitle":106,"slug":107,"coverImageUrl":60,"level":33},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":100,"code":106,"dateBetaStart":109,"dateReleased":110,"pageSlug":107},"2025-11-28","2026-03-17",{"id":112,"slug":113,"description":114,"questionCount":115,"isActive":9,"datePublicModified":103,"difficulty":116,"examVersion":121},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":117,"subtitle":118,"slug":119,"coverImageUrl":120,"level":33},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":113,"code":118,"dateBetaStart":20,"dateReleased":122,"pageSlug":119},"2025-12-01",{"id":124,"slug":125,"description":126,"questionCount":127,"isActive":9,"datePublicModified":103,"difficulty":128,"examVersion":132},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":129,"subtitle":130,"slug":131,"coverImageUrl":60,"level":17},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":125,"code":130,"dateBetaStart":133,"dateReleased":20,"pageSlug":131},"2026-09-29",{"id":135,"slug":136,"description":137,"questionCount":138,"isActive":9,"datePublicModified":103,"difficulty":139,"examVersion":143},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":140,"subtitle":141,"slug":142,"coverImageUrl":60,"level":48},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":136,"code":141,"dateBetaStart":133,"dateReleased":20,"pageSlug":142},{"id":145,"slug":146,"description":147,"questionCount":148,"isActive":9,"datePublicModified":103,"difficulty":149,"examVersion":153},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":150,"subtitle":151,"slug":152,"coverImageUrl":60,"level":17},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":146,"code":151,"dateBetaStart":20,"dateReleased":154,"pageSlug":152},"2025-09-30",{"id":156,"slug":157,"description":158,"questionCount":159,"isActive":9,"datePublicModified":160,"difficulty":161,"examVersion":165},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":162,"subtitle":163,"slug":164,"coverImageUrl":60,"level":33},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":157,"code":163,"dateBetaStart":166,"dateReleased":167,"pageSlug":164},"2022-01-01","2022-07-12",{"id":169,"slug":170,"description":171,"questionCount":172,"isActive":9,"datePublicModified":173,"difficulty":174,"examVersion":175},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":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},{"slug":170,"code":30,"dateBetaStart":20,"dateReleased":176,"pageSlug":20},"2022-11-15",{"id":178,"slug":179,"description":180,"questionCount":181,"isActive":9,"datePublicModified":173,"difficulty":182,"examVersion":183},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":117,"subtitle":118,"slug":119,"coverImageUrl":120,"level":33},{"slug":179,"code":184,"dateBetaStart":20,"dateReleased":185,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":188,"title":189,"focus":190,"level":17,"components":191,"diagrams":214,"steps":237,"dateModified":331,"course":332,"nextLesson":333},"apis-the-aws-service-operation-contract-dva-c03","APIs: The AWS service operation contract","How application code uses an SDK to call an IAM API operation with the required inputs and handle the response or service error.",[192,198,202,206,210],{"key":193,"kind":194,"name":195,"icon":196,"provider":197},"amazon-ec2","service","Amazon EC2","\u002Fimages\u002Fprovider-services\u002Famazon-ec2\u002Fcovers\u002FArch_Amazon-EC2_64.png","AWS",{"key":199,"kind":194,"name":200,"icon":201,"provider":197},"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":203,"kind":194,"name":204,"icon":205,"provider":197},"aws-identity-and-access-management-(iam)","AWS Identity and Access Management (IAM)","\u002Fimages\u002Fprovider-services\u002Faws-identity-and-access-management-(iam)\u002Fcovers\u002FArch_AWS-Identity-and-Access-Management_64.png",{"key":207,"kind":194,"name":208,"icon":209,"provider":197},"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":211,"kind":194,"name":212,"icon":213,"provider":197},"aws-tools-and-sdks","AWS Tools and SDKs","\u002Fimages\u002Fprovider-services\u002Faws-tools-and-sdks\u002Fcovers\u002FArch_AWS-Tools-and-SDKs_64.png",[215],{"key":216,"cards":217,"groups":227,"lines":228},"iam-get-role",[218,221,224],{"key":219,"component":193,"label":220},"app","Python application on EC2",{"key":222,"component":211,"label":223},"sdk","Boto3 IAM client (in the application)",{"key":225,"component":203,"label":226},"iam","IAM GetRole operation",[],[229,231,233,235],{"from":219,"to":222,"label":230},"get_role(RoleName)",{"from":222,"to":225,"label":232},"Signed GetRole request",{"from":225,"to":222,"label":234},"Role or error",{"from":222,"to":219,"label":236},"Dictionary or exception",[238,261,274,277,289,292,310,313,318],{"kind":239,"title":240,"body":241,"diagram":216,"walkthrough":242},"explanation","Start with the operation contract","\u003Cp>An \u003Cstrong>API operation\u003C\u002Fstrong> is a named action a service exposes. Its contract tells you what inputs to send and what success and error responses to expect. IAM’s \u003Cstrong>GetRole\u003C\u002Fstrong> operation reads information about an existing IAM role; it does not assume the role or return credentials.\u003C\u002Fp>\u003Cp>AWS offers \u003Cstrong>SDKs\u003C\u002Fstrong> for many programming languages, with examples and documentation for each SDK. Here a Python application uses the Boto3 SDK to call IAM. The SDK client runs inside the application; it is not a separate network service.\u003C\u002Fp>",[243,246,252,258],{"text":244,"cards":245},"The application starts with the name of an IAM role it wants to look up.",[219],{"text":247,"cards":248,"lines":249},"The application calls the Boto3 IAM client’s get_role method with RoleName. Back at the call site, a successful call returns a dictionary, while a service error raises an exception.",[222],[250,251],{"from":219,"to":222},{"from":222,"to":219},{"text":253,"cards":254,"lines":255},"The client signs the GetRole request with the caller’s AWS credentials and sends it to IAM. IAM checks authorization and returns role information or a service error.",[225],[256,257],{"from":222,"to":225},{"from":225,"to":222},{"text":259,"cards":260},"The application supplies the role name, the SDK handles the request and response, and IAM decides what the operation returns.",[],{"kind":262,"title":263,"exercise":264},"exercise","Identify who handles GetRole",{"type":265,"diagram":216,"question":266,"hidden":267,"tray":268},"palette","Fill the empty slot with the service that receives the signed GetRole request.",[225],[269,270,272],{"component":203},{"component":207,"reason":271},"STS issues temporary credentials; the GetRole request reads role information from IAM.",{"component":199,"reason":273},"IAM Identity Center manages workforce access; it does not expose the IAM GetRole operation.",{"kind":239,"title":275,"body":276},"Pass the role name, not the role ARN","\u003Cp>GetRole requires \u003Cstrong>RoleName\u003C\u002Fstrong>, the role’s name, not its ARN or path. If the role is named \u003Ccode>ReportReader\u003C\u002Fcode>, create the IAM client with \u003Ccode>boto3.client(\"iam\")\u003C\u002Fcode> and call \u003Ccode>iam.get_role(RoleName=\"ReportReader\")\u003C\u002Fcode>. The SDK uses that argument to build the service request.\u003C\u002Fp>\u003Cp>The \u003Cstrong>caller identity\u003C\u002Fstrong> and the role being looked up are separate. The SDK signs with the application’s credentials, which can come from an IAM role attached to its EC2 instance. The caller needs \u003Ccode>iam:GetRole\u003C\u002Fcode> permission for the target role; passing a valid role name does not grant that permission.\u003C\u002Fp>",{"kind":262,"title":278,"exercise":279},"Follow the required input",{"type":280,"diagram":216,"scenario":281,"path":282},"trace","Follow the application’s lookup of ReportReader until the request reaches IAM.",[283,285,287],{"card":219,"note":284},"Pass ReportReader as RoleName, without its ARN or path.",{"card":222,"note":286},"Build and sign the GetRole request using the caller’s AWS credentials.",{"card":225,"note":288},"Check the caller’s permission to read the named role.",{"kind":239,"title":290,"body":291},"Read what IAM sends back","\u003Cp>On success, IAM returns a \u003Cstrong>Role\u003C\u002Fstrong> result. Boto3 puts it under the \u003Ccode>Role\u003C\u002Fcode> key in the response dictionary. For example, \u003Ccode>response[\"Role\"][\"Arn\"]\u003C\u002Fcode> reads the role’s ARN. The request takes a role name, but the response can contain the full ARN.\u003C\u002Fp>\u003Cp>If IAM cannot find the named role, it returns \u003Cstrong>NoSuchEntity\u003C\u002Fstrong>. If IAM denies the caller’s request, it can return \u003Cstrong>AccessDenied\u003C\u002Fstrong>. Neither is a successful response with an empty \u003Ccode>Role\u003C\u002Fcode> value: each is a service error with a code that tells the application why the request failed.\u003C\u002Fp>",{"kind":262,"title":293,"exercise":294},"Separate role data from error codes",{"type":295,"question":296,"groups":297,"statements":300},"versus","Sort each item by what IAM sends back for GetRole.",[298,299],"Successful result","Service error",[301,304,306,308],{"text":302,"group":303},"A Role result containing the role’s ARN",0,{"text":305,"group":12},"A NoSuchEntity code for a role IAM cannot find",{"text":307,"group":12},"An AccessDenied code for a denied request",{"text":309,"group":303},"Role details returned after an authorized lookup finds the role",{"kind":239,"title":311,"body":312},"Handle the result at the call site","\u003Cp>Put the \u003Cstrong>SDK call\u003C\u002Fstrong> in a \u003Ccode>try\u003C\u002Fcode> block and read the \u003Ccode>Role\u003C\u002Fcode> field only when the call returns normally. For an IAM service error, catch \u003Ccode>botocore.exceptions.ClientError\u003C\u002Fcode> and read the code at \u003Ccode>error.response[\"Error\"][\"Code\"]\u003C\u002Fcode> rather than matching the wording of the error message.\u003C\u002Fp>\u003Cp>Handle \u003Cstrong>NoSuchEntity\u003C\u002Fstrong> as a missing role if your application expects that case. Keep \u003Cstrong>AccessDenied\u003C\u002Fstrong> distinct: a denied request does not tell you that the role is absent. Let service errors your code does not recognize propagate rather than treating them all as missing roles. A local connection failure is a separate case: there is no IAM error response to inspect.\u003C\u002Fp>",{"kind":262,"title":314,"exercise":315},"Build the GetRole round trip",{"type":316,"diagram":216,"question":317},"build","Draw the full GetRole round trip, showing how the required input reaches IAM and how a successful result or service error reaches the Python application.",{"kind":239,"title":319,"body":320,"takeaways":321},"What to remember","\u003Cp>Use the \u003Cstrong>operation contract\u003C\u002Fstrong> to choose the input and the SDK’s documentation to handle the result in your language.\u003C\u002Fp>",[322,325,328],{"title":323,"text":324},"Send the role name","Call Boto3’s get_role with RoleName set to the name, not the ARN or path.",{"title":326,"text":327},"Authorize the caller","The SDK signs with the application’s credentials. The caller needs iam:GetRole permission for the target role.",{"title":329,"text":330},"Keep outcomes distinct","Read Role from the successful response dictionary. On a service error, inspect the ClientError code so you do not confuse a missing role with denied access.","2026-12-02T21:32:15.861Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":334,"title":335},"credential-provider-chain-aws-sdk-credential-resolution-dva-c03","Credential Provider Chain: AWS SDK credential resolution",1796288615595]