AWS Monitoring & Audit: Cloud Watch, CloudTrail & Config Flashcards

1
Q

CloudWatch Metrics

A
  • Metric is a variable to monitor (CPUUTilization, NetworkIN…)
  • Dimensions is an attribute of a metric
  • Can create CloudWatch Custom Metric (for the RAM for example)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CloudWatch Logs

A
  • Log groups: arbitrary name, usually representing and application.
  • Log stream: instances within application / log files / containers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cloud WatchLogs can send logs to:

A
  • Amazon S3
  • Kinesis Data Streams
  • Kinesis Data Firehouse
  • AWS Lambda
  • OpenSearch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

CloudWatch Logs - Sources:

A
  • SDK, CloudWatch Logs Agent, CloudWatch Unified Agent
  • Elastic Beanstalk: collection of logs from application
  • ECS: collection of containers
  • AWS Lambda: collection from function logs
  • VPC Flow Logs: VPC specific logs
  • API Gateway
  • CloudTrail based on filter
  • Route53: Log DNS queries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CloudWatch Logs for EC2

A
  • Need to install CloudWatch agent.
  • Make sure IAM permission are set.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Difference between CloudWatch Log & CloudWatch Unified Agent

A

CloudWatch Log
* Old version of the agent
* Can only send to CloudWatch Logs
CloudWatch Unified Agent
* Collect additional system-level metrics such as RAM, processes, etc.
* Collect logs to send CloudWatch Logs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Cloud Watch Unified Agent - Metrics

A
  • Collect directly on youy Linux server / EC2 instance
  • CPU
  • Disk metrics
  • RAM
  • Netstat
  • Processes
  • Swam Space
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

CloudWatch Alarms - Composite Alarms

A
  • Are on a single metric
  • Composite Alarms are monitoring the states of multiple other alarms
  • And and OR conditions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Amazon EventBridge

A
  • Schedule: Cron Jobs (schedule scripts)
  • Event Pattern: Event rules to react to a service doing something
  • Trigger Lambda functions, send SQS/SNS messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Amazon EventBridge - Schema Registry

A
  • EventBridge can analyze the events in your bus and infer the schema
  • The Schema Registry allow you to generate code for your application, that will know in advance how data is structured in the event bus
  • Schema can be versioned
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CloudWatch Container Insight

A
  • Collect, aggregate, summarize metrics and logs from containers
  • Available for containers on:
    • Amazon Elastic Container Service (Amazon ECS)
    • Amazon Elastic Kubernetes Service (Amazon EKS)
    • Kubernetes platform on EC2
    • Fargate (ECS, EKS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CloudWatch Contributor Insights

A
  • Analyze logs data an create time series that display contributor data.
    See metrics about the top-N contributores
    The total number of unique contributos, and their usage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CloudWatch Container Insight

A
  • ECS, EKS, Kubernetes on EC2, Fargate, need agent for Kubernetes
  • Metrics and Logs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

CloudWatch Lambda Insights

A
  • Detailed metrics to throubleshoot serverless applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

CloudWatch Contributors Insight

A
  • Find “Top-N” Contributors throught CloudWatch Logs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

AWS CloudTrail

A
  • Provide governance, compliand and audit for your AWS Account
  • GEt an history of events/API calls made within your AWS Account by:
    Console
    SDK
    CLI
    AWS Services