0
0
AWScloud~20 mins

Creating stacks in AWS - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CloudFormation Stack Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2: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?
AThe stack creation fails immediately with a validation error about the missing parameter.
BThe stack creation waits indefinitely for the parameter to be provided.
CThe stack creation succeeds but the resource using <code>InstanceType</code> is skipped.
DThe stack is created with a default value for <code>InstanceType</code> if defined in the template.
Attempts:
2 left
💡 Hint
Think about how CloudFormation handles parameters with and without default values.
Architecture
intermediate
2: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?
ACreate <code>AppStack</code> first, then create <code>NetworkStack</code> after.
BManually wait for <code>NetworkStack</code> to complete before creating <code>AppStack</code>.
CUse the <code>DependsOn</code> attribute in <code>AppStack</code> to depend on <code>NetworkStack</code>.
DUse stack outputs and import values from <code>NetworkStack</code> in <code>AppStack</code>.
Attempts:
2 left
💡 Hint
Consider how CloudFormation stacks share information and dependencies.
security
advanced
2: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?
Acloudformation:CreateStack
Bec2:CreateInstance
Ciam:PassRole
Ds3:PutObject
Attempts:
2 left
💡 Hint
Focus on the permissions related to CloudFormation stack operations.
Best Practice
advanced
2: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?
ADelete the stack and create a new one with updated resources.
BUse stack update with <code>UpdatePolicy</code> to perform rolling updates.
CManually stop the application, update the stack, then start the application.
DUpdate the stack and immediately rollback if errors occur.
Attempts:
2 left
💡 Hint
Look for CloudFormation features that help update resources without downtime.
🧠 Conceptual
expert
2:00remaining
Stack Drift Detection Outcome
You run drift detection on a CloudFormation stack and it reports drift on one resource. What does this mean?
AThe stack has pending updates waiting to be applied.
BThe resource was deleted outside CloudFormation.
CThe resource's actual configuration differs from the stack template.
DThe stack is in rollback state due to an error.
Attempts:
2 left
💡 Hint
Think about what drift detection compares.