exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 222 discussion

A company wants to run a custom network analysis software package to inspect traffic as traffic leaves and enters a VPC. The company has deployed the solution by using AWS CloudFormation on three Amazon EC2 instances in an Auto Scaling group. All network routing has been established to direct traffic to the EC2 instances.

Whenever the analysis software stops working, the Auto Scaling group replaces an instance. The network routes are not updated when the instance replacement occurs.

Which combination of steps will resolve this issue? (Choose three.)

  • A. Create alarms based on EC2 status check metrics that will cause the Auto Scaling group to replace the failed instance.
  • B. Update the CloudFormation template to install the Amazon CloudWatch agent on the EC2 instances. Configure the CloudWatch agent to send process metrics for the application.
  • C. Update the CloudFormation template to install AWS Systems Manager Agent on the EC2 instances. Configure Systems Manager Agent to send process metrics for the application.
  • D. Create an alarm for the custom metric in Amazon CloudWatch for the failure scenarios. Configure the alarm to publish a message to an Amazon Simple Notification Service (Amazon SNS) topic.
  • E. Create an AWS Lambda function that responds to the Amazon Simple Notification Service (Amazon SNS) message to take the instance out of service. Update the network routes to point to the replacement instance.
  • F. In the CloudFormation template, write a condition that updates the network routes when a replacement instance is launched.
Show Suggested Answer Hide Answer
Suggested Answer: BDE 🗳️

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
NikkyDicky
Highly Voted 1 year, 9 months ago
Selected Answer: BDE
CW agent->CW metric->CW alarm->Lambda action
upvoted 9 times
...
bjexamprep
Highly Voted 1 year, 2 months ago
Selected Answer: BDE
This is a bad question design. The question is looking for a solution for “The network routes are not updated when the instance replacement occurs.”, which means the ASG already has the capability to detect the failure node. With this assumption, there is NO need to install a CloudWatch agent on the EC2 instance, cause the CloudWatch agent in B is doing the same thing. The correct solution is to use the ASG Lifecycle Hook to invoke the Lambda to update the route. A better solution is to create a loadbalancer targeting the ASG, and update the route to point to the loadbalancer. With this solution, there is no need to update the route anymore.
upvoted 8 times
...
chris_spencer
Most Recent 6 months, 2 weeks ago
Selected Answer: BDE
BDE.. but a professional should use ASG Lifecycle hooks https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
upvoted 1 times
...
NoDoubkevo
7 months, 2 weeks ago
you cannot update templates you can version them. ADE
upvoted 1 times
chris_spencer
6 months, 2 weeks ago
why can't you update CloudFormation templates?
upvoted 1 times
...
...
shaaam80
1 year, 4 months ago
Answer - BDE Install CW agent on all instances using CF template Configure CW to send out metrics to SNS Configure Lambda as SNS target to terminate instance and update n/w routes on the new instances
upvoted 1 times
...
career360guru
1 year, 5 months ago
Selected Answer: BDE
B, D, E
upvoted 2 times
...
Piccaso
1 year, 9 months ago
Selected Answer: BDE
A and F must be wrong.
upvoted 2 times
...
PhuocT
1 year, 10 months ago
Selected Answer: BDE
B, D and E
upvoted 3 times
...
easytoo
1 year, 10 months ago
b-d-e seems reasonable.
upvoted 2 times
...
SmileyCloud
1 year, 10 months ago
Selected Answer: BDE
A is redundant because "Whenever the analysis software stops working, the Auto Scaling group replaces an instance." C is not correct. AWS System Manager Agebt is not used "to send process metrics for the application." So, B, D and E because they make a flow.
upvoted 4 times
...
james55
1 year, 10 months ago
Selected Answer: BDE
b----d----e
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago