System and Application Logging on EC2 Flashcards

1
Q

Cloudwatch is for…

A

Metrics

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

Cloudwatch logs is for…

A

Logging

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

Can cloudwatch and cloudwatch logs natively capture data inside an instance?

A

No, Cloudwatch agent is required for OS visible data. It sends data into CW.

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

What do you need for CW to function with EC2 instances?

A
  • CW agent installed
  • Extra configuration
  • Extra permissions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the extra configuration needed about?

A

The CW agent needs to know what information to inject into CW and CW Logs

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

What extra permissions are needed to make CW function correctly with EC2?

A

The agent also needs some permissions to interact with AWS.
This is done with an IAM role as best practice.
The IAM role has permissions to interact with CW logs.
The IAM role is attached to the instance which provides the instance and anything running on the instance, permissions to manage CW logs.

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

What can you use to store the configuration for the CW agent?

A

Parameter store

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

There is one log group for each…

A

individual log file we want to capture

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

There is one log stream for each…

A

group for each instance performing this logging

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