AWS Security & Monitoring Flashcards
What type of keys do AWS services integrated with KMS use, symmetric or asymmetric?
Symmetric (AES-256)
How do asymmetric keys work?
A public key encrypts the data and a private key decrypts the data
True or false: The same KMS key can live in two regions
False. We can however, use KMS Multi-Region Keys, which creates replicas in different regions
We would like global client-side encryption for our AWS Service/s implemented. What could we use?
KMS Multi-Region keys. We can use the same encryption/decryption across regions because we are using replica keys
True or False: Unencrypted objects and objects encrypted with SSE-S3 are replicated by default
True
Which service allows you to force rotation of secrets every X days, Secrets Manager or Parameter Store?
Secrets Manager
Which service allows seamless integration with RDS: Secrets Manager or Parameter Store?
Secrets Manager
We want to protect our application from DDoS attacks? What service can we use?
AWS Shield
What is a metric and dimension in CloudWatch?
A metric is a time-ordered series of data points. Could be the CPU usage of EC2 or IO of EBS
A dimension is a name/value pair that is part of the identity of a metric. For example, we can use the InstanceId dimension to filter down to specific instance metrics in EC2, or the timestamp of the data point
How long can CloudWatch log data take to be available for export?
Up to 12 hours
We want to stream logs from CloudWatch logs to other services, what can we use?
CloudWatch subscriptions. We create the receiving resource and then define a CloudWatch subscription filter to filter which logs get delivered
We want to log to CloudWatch from EC2. What do we need?
CloudWatch Unified Agent
What is the difference between the CloudWatch Logs Agent and the Unified Agent?
The Unified Agent can collect more details on the system it runs on, such as CPU, memory, processes
What are the three main targets of CloudWatch alarms?
EC2, ASG and SNS
We want to monitor multiple CloudWatch alarms. What can we use?
CloudWatch Composite Alarms. CloudWatch Alarms are on a single metric
True or False: CloudWatch Alarms can trigger an EC2 restart?
True. We can define what actions to take for an EC2 instance when we define the alarm like stop, recover, reboot or terminate
We want to schedule a service action (Lambda function) every hour. What service can we use?
EventBridge
What is the EventBridge schema registry?
The schema registry defines default and custom schemas for events that allow services receiving events to understand the event structure
We want to collect logs to send to CloudWatch from container services. What can we use?
CloudWatch Container Insights
How does the CloudWatch Container Insights work?
CloudWatch uses a containerized version of the CloudWatch Agent to discover containers
We want to see which AWS services are impacting system performance the most. What can we use?
CloudWatch Contributor Insights. They use the standard CloudWatch logs to understand usage by different services
We want to figure out which AWS services are the heaviest network users. What can we use?
CloudWatch Contributor Insights
We want to monitor history of events and API calls made within an AWS Account. What can we use?
AWS CloudTrail
True or False: A CloudTrail trail can only be used within a single region
False. It can be all regions or a single
We want to detect unusual activity in our AWS account/s. What can we use?
CloudTrail Insights