AWS DevOps Engineer - Professional Exam: Trusted Advisor Notifications with AWS Services

Trusted Advisor Notifications with AWS Services

Prev Question Next Question

Question

A large IT company just hired you as a senior AWS DevOps engineer.

You are supposed to provide a solution to notify the team appropriately when the status of Trusted Advisor checks has changed.

For example, if the Cost Optimization checks in Trusted Advisor have just found a Low Utilization Amazon EC2 Instance, there should be a notification to a Slack channel so that the operation team can react to the status change and potentially optimize the cost.

Which combinations of services should you use to meet this requirement? (Select TWO.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer - C, E.

For this case, the best way is to monitor Trusted Advisor check results with a new Amazon CloudWatch Events rule.

And the target for this rule would be a Lambda function that can design when and how to send notifications to the Slack channel.

Details can be checked in https://docs.aws.amazon.com/awssupport/latest/user/cloudwatch-events-ta.html.

Option A is incorrect: Because there is no way to configure notifications in the Trusted Advisor Cost Optimization dashboard.

Option B is incorrect: Because Trusted Advisor does not provide logs to CloudWatch Logs.

CloudWatch Events or Metrics should be considered instead.

Option C is CORRECT: Because CloudWatch Events can be used to detect and react to changes in the status of Trusted Advisor checks:

Option D is incorrect: Because SNS is not needed in this scenario.

Besides, SNS cannot integrate with Slack directly.

A Lambda function is still required.

Refer to Option.

E.Option E is CORRECT: Because a Lambda function can be configured as the target of the new CloudWatch Events rule:

Step 1: Create rule

Create rules to invoke Targets based on Events happening in your AWS environment.

Event Source Targets
Build or customize an Event Pattern or set a Schedule to invoke Targets. Select Target to invoke when an event matches your Event Pattern or when schedule is triggered.
@® Event Pattern @ Schedule @ © Add target*
Build event pattern to match events by service Bd
Service Name Trusted Advisor v
Event Type Check Item Refresh Status v
@ Anystatus Specific status(es)
v
@ Anycheck Specific check(s)
v

@ Any resource ID Specific resource ID(s)

To meet the requirement of notifying the team appropriately when the status of Trusted Advisor checks has changed, you should use the combination of AWS services as follows:

  1. In the Cost Optimization dashboard of Trusted Advisor, configure a notification to an SNS topic when the status check has found a new event: The Trusted Advisor service provides checks that help you optimize your AWS infrastructure in different areas, including cost optimization. By configuring a notification to an SNS topic, you can get notified when there is a new event related to cost optimization. This SNS topic will act as a channel that delivers the notification to the team.

  2. Create a new CloudWatch Events rule. Add event source as "Trusted Advisor" and event type as "Check Item Refresh Status": CloudWatch Events is a service that helps you detect and respond to events in your AWS environment. By creating a new CloudWatch Events rule and specifying Trusted Advisor as the event source and Check Item Refresh Status as the event type, you can detect changes in Trusted Advisor's check status.

  3. Use a Lambda function to pass a customized notification to the Slack channel when check status in CloudWatch Event has changed: By using a Lambda function, you can customize the notification message that will be sent to the Slack channel. You can specify the message content, format, and recipients. The Lambda function will be triggered by the CloudWatch Events rule that you have created earlier, which means that whenever the check status in Trusted Advisor changes, the Lambda function will be executed, and a notification message will be sent to the Slack channel.

Therefore, the correct combinations of services to meet the requirement are A and E. In summary, the Trusted Advisor service will provide the data for the check status, SNS topic will deliver the notification to the team, CloudWatch Events will detect the changes, and Lambda function will customize and pass the notification to the Slack channel.