Infrastructure as Code with CloudFormation and CDK Flashcards
6 cards from real DevOps Engineering on AWS Certification practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 Infrastructure as Code with CloudFormation and CDK flashcards as text
Which CloudFormation resource type is used to define a custom provisioning logic using AWS Lambda?
Answer: AWS::CloudFormation::CustomResource
AWS::CloudFormation::CustomResource invokes a Lambda function (or SNS topic) during stack operations to handle resources CloudFormation doesn't natively support.
In AWS CDK, which construct type represents opinionated, multi-resource patterns for common architectural use cases?
Answer: L3 constructs
L3 constructs (also called patterns) combine multiple L2 constructs to provide opinionated, complete solutions for common architectures.
Which CloudFormation stack policy action prevents all update actions on a resource?
Answer: Deny
Setting the Effect to Deny in a stack policy prevents the specified CloudFormation update actions from being performed on protected resources.
What CloudFormation pseudo-parameter returns the current AWS region where the stack is being created?
Answer: AWS::Region
The AWS::Region pseudo-parameter returns the AWS region in which the CloudFormation stack is being created or updated.
Which CDK command shows the differences between the deployed stack and local CDK code without deploying?
Answer: cdk diff
The cdk diff command compares the currently deployed stack with the local CDK app and displays the proposed changes.
A CloudFormation template uses Fn::ImportValue. What happens if the exporting stack is deleted first?
Answer: CloudFormation prevents deletion of the exporting stack while the import exists
CloudFormation prevents you from deleting an exporting stack as long as another stack is importing its exported output values.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- docs.aws.amazon.com — Exam information · verified Oct 2026
- pearsonvue.com — Eligibility · verified Oct 2026
- aws.amazon.com — Test delivery, fees, exam format, time limit, score validity, renewal, passing score, retake policy, score release, exam information · verified Oct 2026