AWS - Identity and Access ManagementWhich of the following is the correct way to assign permissions to an AWS service using IAM?ACreate an IAM role and assign it to the AWS serviceBGenerate permanent access keys and embed them in the service codeCCreate an IAM user and attach policies directly to the userDUse root account credentials for the serviceCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand IAM roles for servicesIAM roles allow AWS services to assume permissions temporarily without permanent keys.Step 2: Identify best practiceAssigning an IAM role to the service is the recommended way to grant permissions securely.Final Answer:Create an IAM role and assign it to the AWS service -> Option AQuick Check:Use roles for services, not permanent keys [OK]Quick Trick: Use roles for AWS services, not permanent keys [OK]Common Mistakes:Attaching policies directly to users for servicesEmbedding permanent keys in codeUsing root account credentials
Master "Identity and Access Management" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS CLI - Why CLI matters for automation - Quiz 15hard AWS CLI - CLI scripting basics - Quiz 8hard AWS CLI - Installing AWS CLI - Quiz 13medium Cloud Computing Fundamentals - AWS Management Console walkthrough - Quiz 1easy Cloud Computing Fundamentals - Cloud deployment models (public, private, hybrid) - Quiz 4medium EC2 Fundamentals - Instance types and families - Quiz 13medium Identity and Access Management - IAM roles concept - Quiz 9hard S3 Fundamentals - Uploading and downloading objects - Quiz 15hard S3 Fundamentals - S3 versioning - Quiz 7medium VPC Fundamentals - Route tables configuration - Quiz 5medium