Think about where you describe the actual AWS services you want to build.
The Resources section is where you list all the AWS components you want CloudFormation to create or manage. Parameters, outputs, and conditions are separate sections.
Check the exact property names and values required by AWS for enabling versioning.
The correct property to enable versioning is VersioningConfiguration with Status set to Enabled. Other options use incorrect property names or values.
Think about how CloudFormation controls creation order explicitly.
The DependsOn attribute explicitly tells CloudFormation to create one resource after another. The order of resource declaration or conditions does not enforce creation order.
Check the service principal and the actions allowed in the policy.
Option A correctly allows EC2 to assume the role and grants only read permissions to S3. Option A allows all S3 actions, C denies assume role, and D uses Lambda service principal instead of EC2.
InstanceType property of an EC2 instance resource from t2.micro to t3.micro. What will CloudFormation do when you update the stack?Consider whether changing instance type requires replacement or can be updated in place.
Changing the InstanceType property of an AWS::EC2::Instance resource causes CloudFormation to replace the instance by default, creating a new instance and deleting the old one.