exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 412 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 412
Topic #: 1
[All AWS Certified Developer Associate Questions]

A security review for a software company’s application infrastructure shows that there is no test coverage in any of the company’s deployment pipelines. A developer must fix this issue as soon as possible. The company has been integrating the AWS Cloud Development Kit (AWS CDK) into the deployment process. However, much of the pipeline still uses AWS CloudFormation templates. The developer needs to add test coverage to all the deployment code.

Which solution will meet these requirements with the LEAST amount of configuration?

  • A. Write unit tests by using the AWS CDK assertions module. Create CloudFormation template instances by using the module's Template class for the existing CloudFormation templates and the module’s Capture class for the CDK stacks.
  • B. Write unit tests by using the AWS CDK assertions module. Create CloudFormation template instances by using the module’s Template.fromString() method for the existing CloudFormation templates and the module's Template.fromStack{} method for the CDK stacks.
  • C. Convert the CloudFormation templates into CDK stacks by using the AWS CDK CfnInciude construct. Write unit tests against the templates by using CloudFormation rule assertions.
  • D. Convert the CDK stacks into CloudFormation templates by using the AWS CDK CfnInclude construct. Write unit tests against the templates by using CloudFormation rule assertions.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RBKBCT
1 year, 8 months ago
Selected Answer: B
It's B
upvoted 1 times
...
breadops
1 year, 8 months ago
Selected Answer: B
It's B https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.assertions-readme.html First thing in the link
upvoted 1 times
...
AWSdeveloper08
1 year, 9 months ago
Selected Answer: B
First I thought option C, While this option provides an alternative approach, it involves additional steps and potentially more configuration compared to option B. Converting existing CloudFormation templates into CDK stacks using the CfnInclude construct may require modifying the existing infrastructure code and adapting it to the CDK framework. Hence, its B
upvoted 1 times
...
rlnd2000
1 year, 11 months ago
Selected Answer: B
I think writing unit tests using the AWS CDK assertions module and creating CloudFormation template instances by using the module's Template.fromString() method for the existing CloudFormation templates and the module's Template.fromStack() method for the CDK stacks is the best option with the least amount of configuration.
upvoted 1 times
...
clarksu
2 years, 1 month ago
Selected Answer: B
significant changes are prohibited..
upvoted 2 times
...
Drey
2 years, 2 months ago
It's A. Thought t'was C but it requires converting CF templates into CDK stacks, which would show unnecessary complexity and potential migration issues.
upvoted 2 times
...
tieyua
2 years, 2 months ago
Selected Answer: C
Have to agree with our resident expert here. Not sure how many people are actually doing this in real life though. It's like those C# spitting out javascript creating SPA kind of library, works great in hello world ^_^
upvoted 1 times
...
KT_Yu
2 years, 3 months ago
Selected Answer: C
https://aws.amazon.com/blogs/developer/migrating-cloudformation-templates-to-the-aws-cloud-development-kit/
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago