Written Labs – Logging and Monitoring – ANS-C01 Study Guide

Written Labs

Written Lab 5.1: Enable CloudWatch Detailed Monitoring for an Instance That Has Already Been Enabled

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2.
  2. In the navigation pane, choose Instances.
  3. Select the instance and choose Actions, Monitoring, Manage, and Detailed Monitoring.
  4. On the Detailed Monitoring detail page, for Detailed Monitoring, select the Enable check box.
  5. Click Save.

Written Lab 5.2: Enable CloudWatch Logging from the Web Console

  1. Open the AWS Management Console (https://console.aws.amazon.com) and sign in to your AWS account.
  2. Navigate to the CloudWatch service by either searching for CloudWatch in the search bar or locating it under the Management & Governance section.
  3. In the CloudWatch dashboard, click Logs in the left navigation menu to access the CloudWatch Logs interface.
  4. Click the Actions button and select Create Log Group to create a new log group.
  5. Enter a unique name for your log group in the Log Group Name field. For example, enter MyApplicationLogs.
  6. Specify a Retention (Days) value to determine how long log data will be retained in the log group. The default retention period is indefinite, but you can set a specific number of days based on your requirements.
  7. Click the Create button to create the log group.
  8. Once the log group is created, you can click its name to access its details and configure log streams.

Written Lab 5.3: Enable CloudWatch Alarms from the Web Console

  1. Open the AWS Management Console (https://console.aws.amazon.com) and sign in to your AWS account.
  2. Navigate to the CloudWatch service by either searching for CloudWatch in the search bar or locating it under the Management & Governance section.
  3. Click Alarms in the left navigation pane.
  4. Click the Create Alarm button.
  5. Select the metric for which you want to create an alarm. You can choose from a list of available services and metrics.
  6. Specify the conditions for the alarm, such as the threshold value, comparison operator (greater than, less than, etc.), and the duration for which the condition must persist.
  7. Select the metric for the alarm.
  8. Choose the specific metric dimension for the alarm if applicable.
  9. Define any additional filters or dimensions based on your requirements.
  10. Specify the actions that should be taken when the alarm state is triggered. These actions can include sending notifications, triggering autoscaling actions, or invoking AWS Lambda functions.
  11. Configure the appropriate action settings, such as email addresses for notification or selecting specific AWS resources to act upon.
  12. Choose the notification options for the alarm. This includes specifying the Amazon SNS topic or an email address to receive the alarm notifications.
  13. Review the alarm configuration to ensure all settings are accurate.
  14. Provide a meaningful name and optional description for the alarm.
  15. Click the Create Alarm button to create the alarm.

Written Lab 5.4: Create a VPC Reachability Analyzer from the Web Console

  1. Open the AWS Management Console (https://console.aws.amazon.com) and sign in to your AWS account.
  2. Navigate to the VPC Reachability Analyzer service by either searching for Reachability Analyzer in the search bar or locating it under the Networking & Content Delivery section.
  3. Click Create Analyzer to begin the configuration process.
  4. Provide a name and description for the analyzer.
  5. Choose the AWS region where your resources are located and where you want the analyzer created.
  6. Choose the source and destination components for analysis such as a VPC, subnet, security group, or instance.
  7. Choose the traffic direction for analysis, either inbound, outbound, or bidirectional.
  8. Specify the protocol and port range you want to analyze.
  9. Select the VPC Flow Logs or AWS PrivateLink analysis method.
  10. Review the analyzer configuration and review the settings.
  11. Click Create Analyzer.