QuestionQ91

VerifiedSecurity

A company runs a payment application on Amazon EC2 instances behind an Application Load Balance. The EC2 instances run in an Auto Scaling group across multiple Availability Zones. The application needs to retrieve application secrets during the application startup and export the secrets as environment variables. These secrets must be encrypted at rest and need to be rotated every month.

Which solution will meet these requirements with the LEAST development effort?

Explanation

AWS Secrets Manager provides encrypted storage with automatic rotation via Lambda functions. EC2 user data scripts retrieve and export secrets as environment variables during instance startup. The entire lifecycle—encryption, automatic rotation every month, and programmatic access—is handled by Secrets Manager with minimal application code. S3 with Object Lambda (A) is overcomplicated; Parameter Store (B) requires manual rotation setup; hardcoding (C) eliminates security.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!