Running Events on a Schedule – CloudWatch and CloudWatch Metrics – SCS-C02 Study Guide

Running Events on a Schedule

With the scheduling capabilities of EventBridge, you have the opportunity to create, run, and manage tasks that you schedule to run at a later date for a singular event or on a recurring basis.

These tasks can be as simple as sending out weekly notifications to your team to logging timesheets every Friday via SMS. In a different type of task, to optimize cost savings, you could scale down all of your non-essential instances on Friday afternoons and then have another scale-up event happen early on Monday mornings so that all necessary instances are up and ready to take traffic by the time it starts to come in.

Before the EventBridge scheduler, teams had to either create their own scheduling capabilities or use a third-party tool to perform their scheduling capabilities.

Summary

In this chapter, you looked at AWS’s CloudWatch service and its multiple functionalities. You saw how it can gather logs for many of the other services running in AWS and store them for the specified period. You also saw how the CloudWatch service provides monitoring and metrics for the different services running in AWS. You looked at both predefined metrics and custom ones.

With the metric capabilities of CloudWatch, you can track your resources and create alarms and dashboards to monitor and keep track of services within your purview.

The chapter concluded with a discussion of Amazon EventBridge, the event bus service. You saw how EventBridge can take events from multiple sources, both internal to AWS and external, and use rules to process the events and then send the events to one or more specified targets for proper processing. You also learned how EventBridge can help you build a decoupled EDA in AWS.

In Chapter 9, Parsing Logs and Events with AWS Native Tools, you will look at using cloud-native services to sort through a mountain of log files when looking for a particular item. This can be done using services such as Kinesis Data Firehose and Amazon Athena.

Further Reading

For additional information on the AWS Shared Responsibility Model and the underlying principles of AWS security, please check out the following resources:

Exam Readiness Drill – Chapter Review Questions

Apart from a solid understanding of key concepts, being able to think quickly under time pressure is a skill that will help you ace your certification exam. That is why working on these skills early on in your learning journey is key.

Chapter review questions are designed to improve your test-taking skills progressively with each chapter you learn and review your understanding of key concepts in the chapter at the same time. You’ll find these at the end of each chapter.

How To Access These Resources

To learn how to access these resources, head over to the chapter titled Chapter 21, Accessing the Online Practice Resources.

To open the Chapter Review Questions for this chapter, perform the following steps:

  1. Click the link – https://packt.link/SCSC02E2_CH08

Alternatively, you can scan the following QR code (Figure 8.23):

Figure 8.23: QR code that opens Chapter Review Questions for logged-in users

  • Once you log in, you’ll see a page similar to the one shown in Figure 8.24:

Figure 8.24: Chapter Review Questions for Chapter 8

  • Once ready, start the following practice drills, re-attempting the quiz multiple times.

Exam Readiness Drill

For the first three attempts, don’t worry about the time limit.

ATTEMPT 1

The first time, aim for at least 40%. Look at the answers you got wrong and read the relevant sections in the chapter again to fix your learning gaps.

ATTEMPT 2

The second time, aim for at least 60%. Look at the answers you got wrong and read the relevant sections in the chapter again to fix any remaining learning gaps.

ATTEMPT 3

The third time, aim for at least 75%. Once you score 75% or more, you start working on your timing.

Tip

You may take more than three attempts to reach 75%. That’s okay. Just review the relevant sections in the chapter till you get there.

Working On Timing

Target: Your aim is to keep the score the same while trying to answer these questions as quickly as possible. Here’s an example of how your next attempts should look like:

AttemptScoreTime Taken
Attempt 577%21 mins 30 seconds
Attempt 678%18 mins 34 seconds
Attempt 776%14 mins 44 seconds

Table 8.1: Sample timing practice drills on the online platform

Note

The time limits shown in the above table are just examples. Set your own time limits with each attempt based on the time limit of the quiz on the website.

With each new attempt, your score should stay above 75% while your time taken to complete should decrease. Repeat as many attempts as you want till you feel confident dealing with the time pressure.