AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
A CloudOps engineer is deploying a CloudFormation template from the AWS CLI. The template creates an AWS Systems Manager (SSM) Automation document that specifies the IAM role CloudOpsAutomationRole in the AssumeRole property. The stack fails with the error "AccessDenied: iam:PassRole is not authorized for arn:aws:iam::123456789012:role/CloudOpsAutomationRole." What is the MOST appropriate fix to allow the stack to succeed without granting excessive permissions?
Add an inline policy that allows iam:PassRole on the CloudOpsAutomationRole ARN to the IAM role that CloudFormation assumes during stack creation.
Create a new CloudFormation StackSet administrator role and rerun the deployment.
Include the CAPABILITY_NAMED_IAM flag when running the aws cloudformation create-stack command.
Attach the AmazonSSMFullAccess managed policy to the CloudOpsAutomationRole so that it can perform additional SSM actions.
When a CloudFormation template references an IAM role in the AssumeRole property of an SSM Automation document, CloudFormation must call iam:PassRole so that Systems Manager can assume that role. The principal that CloudFormation uses during the deployment (the execution role) therefore needs iam:PassRole permission for the specific role ARN. Granting that narrowly scoped permission to the CloudFormation execution role follows the principle of least privilege and resolves the failure. Attaching AmazonSSMFullAccess to the target role, creating a StackSet administrator role, or simply adding CAPABILITY_NAMED_IAM do not give CloudFormation the missing iam:PassRole permission, so the stack would still fail.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is iam:PassRole, and why is it important for the CloudFormation stack creation process?
Open an interactive chat with Bash
What is the principle of least privilege, and how does it apply to AWS IAM roles?
Open an interactive chat with Bash
What is the CAPABILITY_NAMED_IAM flag, and why doesn't it resolve the issue in this case?
Open an interactive chat with Bash
What does the iam:PassRole permission do?
Open an interactive chat with Bash
Why does CloudFormation need iam:PassRole for the CloudOpsAutomationRole?
Open an interactive chat with Bash
What is the principle of least privilege and how does it apply here?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Deployment, Provisioning, and Automation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .