exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 262 discussion

A company wants to test its web application more frequently. The company deploys the application by using a separate AWS CloudFormation stack for each environment. The company deploys the same CloudFormation template to each stack as the application progresses through the development lifecycle.

A developer needs to build in notifications for the quality assurance (QA) team. The developer wants the notifications to occur for new deployments in the final preproduction environment.

Which solution will meet these requirements?

  • A. Create an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the QA team to the Amazon SNS topic. Update the CloudFormation stack options to point to the SNS topic in the pre-production environment.
  • B. Create an AWS Lambda function that notifies the QA team. Create an Amazon EventBridge rule to invoke the Lambda function on the default event bus. Filter the events on the CloudFormation service and on the CloudFormation stack Amazon Resource Name (ARN).
  • C. Create an Amazon CloudWatch alarm that monitors the metrics from CloudFormation. Filter the metrics on the stack name and the stack status. Configure the CloudWatch alarm to notify the QA team.
  • D. Create an AWS Lambda function that notifies the QA team. Configure the event source mapping to receive events from CloudFormation. Specify the filtering values to limit invocations to the desired CloudFormation stack.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
albert_kuo
9 months, 2 weeks ago
Selected Answer: B
B is the correct answer. Here's why: It uses EventBridge to capture CloudFormation stack events. It allows filtering based on the CloudFormation service and the specific stack ARN, which can be used to identify the pre-production environment. The Lambda function can be customized to send notifications to the QA team in any desired format (email, Slack, etc.). This setup will automatically trigger for new deployments in the specified environment.
upvoted 1 times
albert_kuo
7 months ago
{ "source": ["aws.cloudformation"], "detail-type": ["CloudFormation Stack Status Change"], "detail": { "stack-id": ["arn:aws:cloudformation:your-region:your-account-id:stack/your-stack-name/*"], "status": ["CREATE_COMPLETE", "UPDATE_COMPLETE"] } }
upvoted 1 times
...
...
65703c1
11 months, 2 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 2 times
...
ethanluvsbooks
1 year, 1 month ago
Answer: A So I was also confused about this. But you can add an SNS topic to cloud formation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html (The AWS::SNS::Topic resource creates a topic to which notifications can be published.) https://stackoverflow.com/questions/34792724/adding-cloudformation-stack-events-to-sns
upvoted 3 times
...
SerialiDr
1 year, 2 months ago
Selected Answer: A
A. This option involves creating an SNS topic to which the QA team subscribes. CloudFormation can indeed integrate with SNS to send notifications about stack events, making this a viable way to notify the QA team of deployment updates specifically in the pre-production environment if the CloudFormation stack in that environment is configured to publish events to this SNS topic. Based on these considerations, options A and B are the most directly relevant and practical solutions for the given requirements, with option A (SNS topic for direct CloudFormation notifications) being the most straightforward to implement for notifying the QA team of new deployments in the pre-production environment, and option B (Lambda and EventBridge) offering a more customizable solution that can filter and handle notifications based on specific criteria related to CloudFormation events.
upvoted 4 times
...
KarBiswa
1 year, 2 months ago
Selected Answer: B
https://aws.amazon.com/about-aws/whats-new/2022/07/aws-cloudformation-event-notifications-amazon-eventbridge-event-driven-applications/
upvoted 3 times
...
CrescentShared
1 year, 2 months ago
Selected Answer: A
A is correct.
upvoted 2 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