Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DVA-C02 Topic 1 Question 34 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 34
Topic #: 1
[All DVA-C02 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: D

AWS Secrets Manager:Built for managing secrets, providing encryption, automatic rotation, and access control.

Customer Master Key (CMK):Provides an extra layer of control over encryption through AWS KMS.

Automatic Rotation:Enhances security by regularly changing the secret.

User Data Script:Allows secrets retrieval at instance startup and sets them as environment variables for seamless use within the application.


AWS Secrets Manager Documentation:https://docs.aws.amazon.com/secretsmanager/

AWS KMS Documentation:https://docs.aws.amazon.com/kms/

User Data for EC2 Instances:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html

Contribute your Thoughts:

Barrett
2 months ago
Lol, Option A with the S3 text file rotation sounds like something my grandpa would come up with. 'Back in my day, we used to rotate secrets by hand, uphill both ways!'
upvoted 0 times
...
Hollis
2 months ago
Option D with Secrets Manager looks good, but I'm not a fan of provisioning a new customer master key. Why not just use the default AWS KMS key like in Option B? Keeps things simple.
upvoted 0 times
Virgilio
2 months ago
I see your point. It really depends on how much control you want over the encryption and rotation process.
upvoted 0 times
...
Lon
2 months ago
True, but with Secrets Manager, you don't have to worry about managing the rotation process yourself.
upvoted 0 times
...
Vanda
2 months ago
But using the default AWS KMS key in Option B is simpler and requires less setup.
upvoted 0 times
...
Gladis
2 months ago
Option D with Secrets Manager is more secure though. It automatically rotates the secrets for you.
upvoted 0 times
...
...
Julie
2 months ago
I'm not sure why anyone would want to manually rotate secrets as environment variables (Option C). That sounds like a maintenance nightmare waiting to happen. Option B is clearly the best choice here.
upvoted 0 times
...
Roosevelt
3 months ago
I agree, Option B is the way to go. It minimizes the development effort and still meets all the requirements. Rotating the secrets in Parameter Store is a nice and convenient feature.
upvoted 0 times
Avery
2 months ago
Using AWS Systems Manager Parameter Store and AWS KMS key for encryption is a smart move. Option B is definitely the way to go.
upvoted 0 times
...
Dottie
2 months ago
I agree, Option B seems like the most efficient solution for this scenario.
upvoted 0 times
...
Alease
2 months ago
I think Option B is the best choice. It's simple and meets all the requirements.
upvoted 0 times
...
...
Ollie
3 months ago
Option B seems like the easiest solution. Using Parameter Store and the default AWS KMS key is a straightforward way to manage the secrets, and the user data script and Lambda function for rotation are simple to set up.
upvoted 0 times
Dorathy
2 months ago
I agree, using Parameter Store and the default AWS KMS key makes it easy to manage secrets.
upvoted 0 times
...
Tresa
3 months ago
Option B is definitely the way to go. It's simple and efficient.
upvoted 0 times
...
...
Annice
3 months ago
I prefer option B. Using AWS Systems Manager Parameter Store and AWS KMS key seems simpler to me.
upvoted 0 times
...
Cordelia
3 months ago
I agree with Mitsue. Storing secrets in AWS Secrets Manager with automatic rotation is a good practice.
upvoted 0 times
...
Mitsue
4 months ago
I think option D is the best choice. It's secure and requires the least development effort.
upvoted 0 times
...

Save Cancel