Security and Encryption Flashcards

1
Q

Which of the following would you identify as data sources supported by GuardDuty?

A

VPC Flow Logs, DNS logs, CloudTrail events

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

What happens if you suspend GuardDuty?

A

GuardDuty stops analyzing your data sources, but it doesn’t delete the existing findings and the configurations

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

What happens if you disable GuardDuty?

A

It will stop GuardDuty and delete all the findings, configurations and service permissions

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

How can you block the traffic to an ALB based on the country?

A

You can create a rule in the web ACL of WAF (Web Application Firewall), restricting access based on geographic locations

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

What happens if you delete a Customer Master Key (CMK) from KMS?

A

It goes in the ‘pending deletion’ status and hence you can just cancel the CMK deletion and recover the key.
The waiting period for deletion can be set between 7 days to 30

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

When you enable Automatic Rotation on your KMS Key, the backing key is rotated every ………

A

1 year

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

You have created the main Edge-Optimized API Gateway in us-west-2 AWS region. This main Edge-Optimized API Gateway forwards traffic to the second level API Gateway in ap-southeast-1. You want to secure the main API Gateway by attaching an ACM certificate to it. Which AWS region are you going to create the ACM certificate in?

A

us-east-1
Because Edge-Optimezed Gateway uses CloudFront under the hood, and CloudFront is a global service, so the certificate has to be in us-east-1

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

How to renew an imported ACM?

A

It cannot be renewed automatically since it’s imported. However, you can be notified by using a managed rule in AWS Config that send an event to EventBridge when the rule is not compliant

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

Can you modify the key rotation period of the SSE-S3 policy?

A

No, rotation can only be enabled/disabled, but the period cannot be modified

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

How can you provide SSL to different domains within a single ALB?

A

You can do it with SNI, upload all the certificates to the same ALB listener and it will choose automatically which certificate to use for each client

Another way is using a wildcard certificate (SAN) but it has a few limitations:
1. It only works for related subdomains that match a simple pattern
2. You have to reauthenticate and reprovision your certificate every time you add a new domain

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

How does encryption work for DynamoDB?

A

By default encryption is enabled in DynamoDB and cannot be disabled.
Encryption is done with a Customer Master Key which is owned by AWS. You don’t have any visibility of this key, you cannot control the rotation strategy and you’re not charged for it.

You can select an option to encrypt all or some of your tables under a customer-managed CMK or an AWS managed CMK

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

What’s the difference between Customer managed key, AWS managed key and AWS owned key?

A

Customer managed key: can view metadata, can manage KMS key, used only for your accounts, optional rotation (365 days), pay monthly fee and per-use fee

AWS managed key: can view metadata, cannot manage, used only for your account, required rotation (365 days), pay only per-use fee

AWS owned key: cannot view metadata, cannot manage, used for multiple accounts, unknown rotation, no fees

https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-mgmt

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

Which services are supported by WAF?

A

CloudFront, ALB, API Gateway, AppSyncs

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

What is most expensive between AWS Secret Manager and System Manager Parameter Store?

A

AWS Secret Manager
Parameter Store is free for storing standard parameters

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

How can you check if an imported SSL certificate in ACM is expiring?

A

Use the AWS Config managed Rule acm-certificate-expiration-check. You can configure it to trigger SNS notifications or EventBridge events

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

Can Secrets Manager and SSM Parameter Store rotate secrets?

A

Secrets Manager can, SSM cannot