Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Advanced Networking - Specialty ANS-C01 All Questions

View all questions & answers for the AWS Certified Advanced Networking - Specialty ANS-C01 exam

Exam AWS Certified Advanced Networking - Specialty ANS-C01 topic 1 question 145 discussion

A team of infrastructure engineers wants to automate the deployment of Application Load Balancer (ALB) components by using the AWS Cloud Development Kit (AWS CDK). The CDK application must deploy an infrastructure stack that is reusable and consistent across multiple environments, AWS Regions, and AWS accounts.

The lead network architect on the project has already bootstrapped the target accounts. The lead network architect also has deployed core network components such as VPCs and Amazon Route 53 private hosted zones across the multiple environments and Regions. The infrastructure engineers must design the ALB components in the CDK application to use the existing core network components.

Which combination of steps will meet this requirement with the LEAST manual effort between environment deployments? (Choose two.)

  • A. Design the CDK application to read AWS CloudFormation parameters for the values that vary across environments and Regions. Reference these variables in the CDK stack for resources that require the variables.
  • B. Design the CDK application to read environment variables that contain account and Region details at runtime. Use these variables as properties of the CDK stack. Use context methods in the CDK stack to retrieve variable values.
  • C. Create a dedicated account for shared application services in the multi-account environment. Deploy a CDK pipeline to the dedicated account. Create stages in the pipeline that deploy the CDK application across different environments and Regions.
  • D. Write a script that automates the deployment of the CDK application across multiple environments and Regions. Distribute the script to engineers who are working on the project.
  • E. Use the CDK toolkit locally to deploy stacks to each environment and Region. Use the --context flag to pass in variables that the CDK application can reference at runtime.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Manh
Highly Voted 1 year, 3 months ago
BC. https://docs.aws.amazon.com/cdk/v2/guide/environments.html you can use environment variables to pass in values that vary across environments and Regions. You can use the --context flag when running cdk deploy to set environment variables for the CDK application. You can also use the CDK_DEFAULT_ACCOUNT and CDK_DEFAULT_REGION environment variables provided by the AWS CDK CLI to specify the target account and Region for deployment.
upvoted 6 times
...
4bed5ff
Highly Voted 1 year, 3 months ago
Selected Answer: BC
B not A: https://docs.aws.amazon.com/cdk/v2/guide/parameters.html#:~:text=In%20general,we%20recommend%20against%20using%20AWS%20CloudFormation%20parameters%20with%20the%20AWS%20CDK
upvoted 6 times
...
vikasj1in
Most Recent 8 months, 4 weeks ago
Selected Answer: AC
By utilizing AWS CloudFormation parameters for environment-specific values and setting up a CDK pipeline, you can achieve a consistent deployment across multiple environments and Regions with minimal manual effort.
upvoted 1 times
JoellaLi
7 months, 2 weeks ago
In general, we recommend AGAINST using AWS CloudFormation parameters with the AWS CDK. https://docs.aws.amazon.com/cdk/v2/guide/parameters.html
upvoted 2 times
Spaurito
5 days, 11 hours ago
Something to review for option A In general, we recommend against using AWS CloudFormation parameters with the AWS CDK. The usual ways to pass values into AWS CDK apps are context values and environment variables. Because they are not available at synthesis time, parameter values cannot be easily used for flow control and other purposes in your CDK app.
upvoted 1 times
...
...
...
Suresh108
10 months, 1 week ago
BC......
upvoted 1 times
...
habros
1 year ago
BC Multi account = AWS organization Fetch such values automatically in CDK via contexts https://docs.aws.amazon.com/cdk/v2/guide/context.html
upvoted 1 times
...
Neo00
1 year, 3 months ago
Selected Answer: AC
I think should be AC, the concern I have is A - you can use AWS CloudFormation outputs to read parameters across stacks in the same Region, but you can’t do this across Regions
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...