exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 210 discussion

A company has Linux-based Amazon EC2 instances. Users must access the instances by using SSH with EC2 SSH key pairs. Each machine requires a unique EC2 key pair.

The company wants to implement a key rotation policy that will, upon request, automatically rotate all the EC2 key pairs and keep the keys in a securely encrypted place. The company will accept less than 1 minute of downtime during key rotation.

Which solution will meet these requirements?

  • A. Store all the keys in AWS Secrets Manager. Define a Secrets Manager rotation schedule to invoke an AWS Lambda function to generate new key pairs. Replace public keys on EC2 instances. Update the private keys in Secrets Manager.
  • B. Store all the keys in Parameter Store, a capability of AWS Systems Manager, as a string. Define a Systems Manager maintenance window to invoke an AWS Lambda function to generate new key pairs. Replace public keys on EC2 instances. Update the private keys in Parameter Store.
  • C. Import the EC2 key pairs into AWS Key Management Service (AWS KMS). Configure automatic key rotation for these key pairs. Create an Amazon EventBridge scheduled rule to invoke an AWS Lambda function to initiate the key rotation in AWS KMS.
  • D. Add all the EC2 instances to Fleet Manager, a capability of AWS Systems Manager. Define a Systems Manager maintenance window to issue a Systems Manager Run Command document to generate new key pairs and to rotate public keys to all the instances in Fleet Manager.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
xerxersxu
1 day, 21 hours ago
Selected Answer: A
https://aws.amazon.com/cn/blogs/security/how-to-use-aws-secrets-manager-securely-store-rotate-ssh-key-pairs/
upvoted 1 times
...
pk0619
3 months, 3 weeks ago
Selected Answer: D
SSM RunCommand is the only solution that can actually replace the keys on EC2 instances.
upvoted 1 times
...
dankositzke
8 months ago
Selected Answer: A
Not sure why you would need to “invoke an AWS Lambda function to generate new key pairs” when Secrets Manager natively supports automatic key rotation? Anyways, A seems to be the least worst answer.
upvoted 3 times
sat2008
7 months, 3 weeks ago
Lambda is part of the key creation and rotation see the link https://aws.amazon.com/blogs/security/how-to-use-aws-secrets-manager-securely-store-rotate-ssh-key-pairs/
upvoted 4 times
...
...
Maygam
9 months, 2 weeks ago
Selected Answer: A
https://aws.amazon.com/blogs/security/how-to-use-aws-secrets-manager-securely-store-rotate-ssh-key-pairs/
upvoted 3 times
pk0619
3 months, 3 weeks ago
this is a 5 years old solution, currently the answer should be either B or best D, also Lambda cannot replace the public keys on EC2 instances, you need SSM RunCommand for that.
upvoted 1 times
...
...
CProgrammer
9 months, 3 weeks ago
@duriselvan ==> How did you arrive at "Automatic key rotation" from "key rotation policy that will, upon request B. Parameter Store: While Parameter Store can store keys, it's not designed for automated key rotation. It would require manual configuration and orchestration. C. AWS KMS: KMS is designed for managing encryption keys, not SSH key pairs. It doesn't support the rotation of SSH key pairs on EC2 instances. D. Fleet Manager: Fleet Manager, while facilitating management tasks on EC2 instances, doesn't intrinsically handle key rotation. It would require integration with other services and custom scripts.
upvoted 1 times
...
duriselvan
10 months, 1 week ago
C ans Automatic key rotation: AWS KMS automatically rotates keys according to the configured schedule, eliminating the need for manual intervention and ensuring timely key updates. Less than 1 minute downtime: AWS KMS allows for seamless key rotation with minimal downtime. The old key remains active until the new key is generated and propagated, ensuring uninterrupted access to instances. Secure storage: AWS KMS provides a highly secure and encrypted environment for storing cryptographic keys, exceeding the security offered by Parameter Store. Lambda function integration: The EventBridge rule can trigger a Lambda function to perform additional tasks during key rotation, such as updating user access controls or notifying administrators.
upvoted 3 times
...
Jay_2pt0_1
10 months, 3 weeks ago
Torn between A and D. I don't like the do-it-yourself nature (Lambda) of A, but I understand what everyone is saying about the unique key requirement, which would seem to imply that D is wrong. Don't know tbh.
upvoted 1 times
...
career360guru
10 months, 3 weeks ago
Selected Answer: A
Option A
upvoted 1 times
...
severlight
11 months ago
Selected Answer: A
A will work, don't overthink, you can request secret rotation in the Secrets manager, and secrets will be stored in a safe place
upvoted 2 times
...
Sab
11 months, 2 weeks ago
Selected Answer: A
D is best option if we need to rotate for all Ec2 with same key pair. Since each EC2 to have a different Key pair, will be better to store in Secrets Manager and have that rotated using lambda.
upvoted 1 times
...
wahaha2023
1 year, 1 month ago
Selected Answer: A
I think the Systems Manager maintenance window is to perform some potentially disruptive actions, which means the duration of the window is equal to system downtime. and I check the white paper, I seems the duration of system maintenance window should be longer than 1 hour.
upvoted 3 times
...
chico2023
1 year, 1 month ago
Selected Answer: D
Seriously, all. While it can be done in A, it's better to do that with D. Here is why: Question says: "A company has Linux-based Amazon EC2 instances." and "Each machine requires a unique EC2 key pair." We might be talking about thousands of EC2 instances. But let's continue. Option A says: "Store all the keys in AWS Secrets Manager." which is OK, you can store up to 500,000 apparently but, seriously, think about. Instances are generated and deleted all the time. This would be cumbersome, even if you do that programmatically. Not convinced? Let me continue.
upvoted 1 times
vn_thanhtung
1 year, 1 month ago
With D how to "keep the keys in a securely encrypted place" ? Should be A
upvoted 1 times
...
chico2023
1 year, 1 month ago
Same option A, says the following: "Define a Secrets Manager rotation schedule to invoke an AWS Lambda function to generate new key pairs. Replace public keys on EC2 instances." Now, this is A lot, but how are we going to replace the public keys on EC2 instances? Answer doesn't say. Finally, for those who are supporting their answer on an AWS blog showing how to use SM to rotate SSH key to manage servers, pay attention to this part: "A secret is created in AWS Secrets Manager. The secret holds the SSH keypair that the master node will use to connect to the other nodes in the cluster." Their design is "one to many", that is not part of what question says, and I would like to remind you "Each machine requires a unique EC2 key pair."
upvoted 1 times
wahaha2023
1 year, 1 month ago
I am curious about how we can define a 1-minute Systems Manager maintenance window.
upvoted 2 times
...
...
...
easytoo
1 year, 2 months ago
a-a-a-a-a-a-a-a
upvoted 1 times
...
Just_Ninja
1 year, 2 months ago
Selected Answer: A
A: Based on the Well Architecting Framework for best Practices and that tutorial :) https://aws.amazon.com/de/blogs/security/how-to-use-aws-secrets-manager-securely-store-rotate-ssh-key-pairs/
upvoted 1 times
...
nicecurls
1 year, 3 months ago
Selected Answer: D
Why A? Select D
upvoted 2 times
Just_Ninja
1 year, 2 months ago
D is wrong, Parameter Store is a good practice to store Parameters but not the Secrets. I know you can use KMS to encrypt the Parameters, but you need a secure store für Secrets and here we have for exmaple the secret manager with FIPS 140-2 Standard.
upvoted 2 times
...
...
YodaMaster
1 year, 3 months ago
Selected Answer: A
going with A
upvoted 1 times
...
NikkyDicky
1 year, 3 months ago
Selected Answer: A
as someone pointed out D breaks the requirement for unique keys
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago