A CloudFormation template provisions an S3 bucket. A user signs in to the corporate AWS account using Active Directory credentials and attempts to deploy the template but the stack creation fails. Which of the following could cause the failure? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: The user’s IAM policy does not permit the cloudformation:CreateStack action., The user’s IAM policy does not permit the s3:CreateBucket action..
Why this is the answer
For a CloudFormation stack to be created, the user initiating the deployment must have permissions for the cloudformation:CreateStack action. Without this, the CloudFormation service itself cannot be invoked to begin the stack creation process. Additionally, since the template provisions an S3 bucket, the user must also have permissions for the s3:CreateBucket action. CloudFormation operates on behalf of the user, so the user needs permissions for all resources being created by the template. cloudformation:CreateStackSet is incorrect because stack sets are a different CloudFormation feature for deploying stacks across multiple accounts and regions, not for creating a single stack. s3:ListBucket and s3:PutObject are incorrect because while these actions are common for S3, they are not necessary for the creation of the bucket itself. The failure occurs during creation, not during subsequent operations on the bucket.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed