Secrets Manager Flashcards

This deck aims to help retain concepts related to the Secrets Manager service. (11 cards)

1
Q

What AWS service provides secure storage, automatic rotation, and fine-grained access control for secrets such as database credentials, API keys, and other sensitive information?

A

AWS Secrets Manager

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

How frequently can AWS Secrets Manager rotate secrets?

A

As often as every 4 hours, up to a maximum of 999 days

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

What access methods are available for managing secrets in AWS Secrets Manager?

A
  • Console
  • CLI
  • API
  • SDK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What AWS service does Secrets Manager use to perform automatic secret rotation?

A

AWS Lambda

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

What is the sequence of steps involved when an application retrieves and uses database credentials managed by AWS Secrets Manager?

A
  1. The application uses SDK to interact with Secrets Manager
  2. Secrets Manager uses IAM to authorise the Application
  3. Once authorized Secrets Manager returns database credentials to the application
  4. The application uses credentials to connect to the database
  5. At some point in time, the secret manager will rotate credentials
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What AWS service does Secrets Manager use to encrypt secrets at rest?

A

AWS KMS

KMS permissions are also required

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

What are the main features of AWS Secrets Manager?

A
  • Secure storage of secrets (passwords, API Keys)
  • Automatic rotation
  • Application integration
  • Direct integration with AWS services like RDS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which AWS Secrets Manager API is used to re-encrypt a secret with a new KMS key after rotating or modifying the Customer Master Key (CMK)?

A

 UpdateSecret

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

What happens if the old KMS CMK is deleted before calling UpdateSecret on a secret in AWS Secrets Manager?

A

The secret becomes undecryptable and its contents are permanently lost

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

Which parameter must be used with the AWS CLI DeleteSecret command to delete a Secrets Manager secret immediately without a recovery window?

A
  • --force-delete-without-recovery
  • ForceDeleteWithoutRecovery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which AWS services have built-in secret rotation support in AWS Secrets Manager?

A
  • Amazon RDS
  • Amazon DocumentDB
  • Amazon Redshift
How well did you know this?
1
Not at all
2
3
4
5
Perfectly