AWS Certified Data Engineer Associate DEA-C01 Practice Question
A data engineering team must deploy the same AWS CDK app to separate development and production AWS accounts. The app creates an Amazon Kinesis Data Stream, an AWS Glue crawler, and the required IAM roles. The team wants to keep a single source repository but supply different stream shard counts and crawler schedules for each environment without modifying code before every deployment. Which CDK feature should the team use to meet these requirements?
Reference AWS Secrets Manager dynamic references inside the AWS Glue crawler to override settings at deploy time.
Define environment-specific context values (for example in cdk.json) and read them in the CDK code.
Hard-code the development and production account IDs and resources in separate Git branches of the CDK app.
Use AWS CloudFormation StackSets to push the stack to each account and set per-account parameters in the StackSet.
CDK context values let you externalize environment-specific settings, such as shard counts or cron schedules, into files like cdk.json or pass them on the command line. During synthesis the app reads the context (for example by using node.try_get_context()) and configures each stack accordingly, so the same code base can be deployed to multiple accounts with differing parameters. CloudFormation StackSets, hard-coded account IDs, and Secrets Manager dynamic references do not provide this compile-time parameterization for CDK applications.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are CDK context values?
Open an interactive chat with Bash
How does try_get_context() work in AWS CDK?
Open an interactive chat with Bash
What is the difference between CDK context values and CloudFormation parameters?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Ingestion and Transformation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .