Challenge - 5 Problems
CloudFormation Stack Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate2:00remaining
Stack Creation Behavior with Missing Parameters
You create an AWS CloudFormation stack using a template that requires a parameter named
InstanceType. You run the create-stack command without specifying this parameter. What will happen?Attempts:
2 left
💡 Hint
Think about how CloudFormation handles parameters with and without default values.
✗ Incorrect
If a parameter has a default value defined in the template, CloudFormation uses it when the parameter is not provided during stack creation. Otherwise, it raises a validation error.
❓ Architecture
intermediate2:00remaining
Stack Dependency Management
You have two CloudFormation stacks:
NetworkStack creates a VPC, and AppStack creates EC2 instances inside that VPC. How should you ensure AppStack only creates resources after NetworkStack is complete?Attempts:
2 left
💡 Hint
Consider how CloudFormation stacks share information and dependencies.
✗ Incorrect
CloudFormation does not support
DependsOn between stacks. Instead, you export outputs from one stack and import them in another to create implicit dependencies.❓ security
advanced2:00remaining
IAM Role Permissions for Stack Creation
You want to automate CloudFormation stack creation using an IAM role. Which permission is required for the role to successfully create stacks?
Attempts:
2 left
💡 Hint
Focus on the permissions related to CloudFormation stack operations.
✗ Incorrect
The
cloudformation:CreateStack permission allows creating stacks. Other permissions may be needed depending on resources, but this is essential.✅ Best Practice
advanced2:00remaining
Stack Update Strategy to Avoid Downtime
You need to update a CloudFormation stack that runs a web application. What is the best practice to avoid downtime during the update?
Attempts:
2 left
💡 Hint
Look for CloudFormation features that help update resources without downtime.
✗ Incorrect
The
UpdatePolicy attribute allows rolling updates for resources like Auto Scaling groups, minimizing downtime.🧠 Conceptual
expert2:00remaining
Stack Drift Detection Outcome
You run drift detection on a CloudFormation stack and it reports drift on one resource. What does this mean?
Attempts:
2 left
💡 Hint
Think about what drift detection compares.
✗ Incorrect
Drift detection compares the actual resource configuration with the expected configuration defined in the stack template. Drift means they differ.