Section 20: AWS Monitoring & Audit, CloudWatch, X-Ray and CloudTrail: OpenTelemetry, CloudTrail and Quiz Flashcards
What is OpenTelemetry?
With OpenTelemetry, you can collect telemetry data from different sources and send it to multiple platforms without significant configuration changes.
https://www.datadoghq.com/knowledge-center/opentelemetry/#:~:text=With%20OpenTelemetry%2C%20you%20can%20collect,that%20work%20best%20for%20them.
What does AWS Distro for OpenTelemetry provide? (one of these answers is very general, the other is specific)
- Secure, production ready AWS-supported distribution of the open-source project OpenTelemetry project.
- a single set of apis, libraries, agents and collector services.
What does aws distro for OpenTelemetry collect?
- It collects distributed traces and metrics from your apps
- it collects metadata from your aws resources and services
- traces without changing your code (via auto instrumention agents)
who can aws distro for OpenTelemetry send traces and metrics to?
multiple aws services and partner solutions including xray, cloudwatch, and prometheus
aws distro for OpenTelemetry can be used to instrument apps running on which aws services? Can it be used to instrument apps running on-premesis?
- ec2, ecs, eks, fargate, lambda. Maybe more, but at least those.
- yes, it can be used to instrument apps running on-premesis.
When might you want to migrate from aws xray to aws distro for Telemetry (I assume he means OpenTelemetry)
when you want to standardize with open-source APIs from Telemetry (again, I assume he means OpenTelemetry but I should check) or send traces to multiple destinations simultaneously.
- What does aws distro for OpenTelemetry collect?
- To what services/solutions can aws distro for OpenTelemetry send data?
- everything the flowchart says it collects to
- all the places the flowcharts says you can send data to.
What does AWS CloudTrail provide? (super general)
CloudTrail provides governance, compliance and audit (i assume he means audit prep) for your aws account.
Is aws CloudTrail enabled by default for your aws account?
yes
- What does aws CloudTrail get you (more specific)
A history of events/api calls made within your aws account by console, sdk, cli, and aws services
Where does it seem like people store logs CloudTrail (think other aws services)?
CloudWatch Logs or S3
about CloudTrail: Can you setup a trail so it’s applied to either all regions or a single region? Which is the default?
Yes, you can have a trail apply to all regions or a single region. The default is all regions.
If a resource in deleted in AWS, what should you check first to see what happened?
CloudTrail!
What’s the cloudtrail diagram? (like, from where can you setup/access/probably configure, at least to some degree cloudtrail behavior, and to where can logs be sent?)
Do you need to consider/configure IAM permissions when you want to adjust a CloudTrail configuration?
yes. add some more details about that or read more about it or something.
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_service-with-iam.html
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_id-based-policy-examples.html
What are the three different types of CloudTrail events? (just names)
Management events, data events, cloudtrail insights events
- What are CloudTrail Management events?
- What are some examples?
- When an operation is performed on resourced in your aws account, that’s considered a management event.
- Configuring security (IAM AttachRolePolicy)
- Configuring rules for routing data (EC2 CreateSubnet)
- setting up logging (aws CloudTrail CreateTrail)
Are CloudTrail trails configured to log management events by default?
Yes
Regarding CloudTrail Management Events events, can you separate read events (events that don’t modify resources) from write events (events that may modify resources)
yes
1What are CloudTrail Data events? (This is probably going to be easiest by just giving a general example.)
- GetObject, PutObject, DeleteObject api requests, things like that
by default, are data events logged in CloudTrail?
No. By default, trails and event data stores do not log data events, because of the high volume of operations (like all the api requests that might get used to update a table that’s frequently used). Additional charges apply for data events.
About CloudTrail Data Events: Does logging data events with CloudTrail cost money?
Yes, i think so. I did skim that pretty lightly though, you might want to double check.
- Can CloudTrail Data Events be used to log object-level activity? What are some example apis
- Can you separate the logging of Read events and Write events?
- Yes. GetObject, DeleteOBject, PutObject.
- yes
Can CloudTrail Data Events be used to log aws lambda function execution activity? Through what api?
yes. the Invoke API.
you want to detect unusual activity in your account. How might you do this using CloudTrail?
Enable CloudTrail Insights.