exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 43 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 43
Topic #: 1
[All AWS Certified Security - Specialty Questions]

A Developer's laptop was stolen. The laptop was not encrypted, and it contained the SSH key used to access multiple Amazon EC2 instances. A Security
Engineer has verified that the key has not been used, and has blocked port 22 to all EC2 instances while developing a response plan.
How can the Security Engineer further protect currently running instances?

  • A. Delete the key-pair key from the EC2 console, then create a new key pair.
  • B. Use the modify-instance-attribute API to change the key on any EC2 instance that is using the key.
  • C. Use the EC2 RunCommand to modify the authorized_keys file on any EC2 instance that is using the key.
  • D. Update the key pair in any AMI used to launch the EC2 instances, then restart the EC2 instances.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
DP15
Highly Voted 3 years, 7 months ago
Yes C is correct - Modify authorized_keys with new key. It will save lot of time and there will be no need to stop the running instance. After can login again only with new key and old key will not work anymore.
upvoted 41 times
BillyC
3 years, 7 months ago
thanks!!
upvoted 2 times
...
Bach999
3 years, 6 months ago
https://aws.amazon.com/premiumsupport/knowledge-center/new-user-accounts-linux-instance/
upvoted 1 times
...
...
madcloud
Highly Voted 2 years, 6 months ago
C for sure, the reason is that, for a rogue user/admin, using his Access/Secure Keys, he can generate STS session tokens that last for 3 days. The session token will allow him to access EC2 instances even if the Access key/secret key is deleted or updated . you will see a new profile under the authorized_key directory for the STS tokens. hope this helps
upvoted 7 times
MikeDuB
2 years, 4 months ago
Thanks boss
upvoted 2 times
...
...
habros
Most Recent 4 months, 1 week ago
Selected Answer: C
The key pair specified in the initial setup is for cloud-init to configure the public key in .ssh, does not imply anything beyond that.
upvoted 1 times
...
liuyomz
1 year, 8 months ago
Selected Answer: C
C, the thing is you could never change the key_pair manually if you could not log into the instance (since you don't have the key anymore), but SSM uses a role to access it, so it's still possible.
upvoted 2 times
...
diego1984
1 year, 10 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
Manikandan997
2 years, 11 months ago
What’s the answer for this C or d
upvoted 1 times
...
CollinsWolf
3 years, 1 month ago
The answer is the D. Create a new AMI of the existing instance and then launch a new instance. link is here https://aws.amazon.com/premiumsupport/knowledge-center/ec2-windows-replace-lost-key-pair/
upvoted 1 times
Appsec977
2 years, 10 months ago
No, The access won't be revoked by doing so. The key must be deleted from authorized_keys.
upvoted 2 times
...
...
Radhaghosh
3 years, 3 months ago
C is Correct Answer
upvoted 1 times
...
sanjaym
3 years, 5 months ago
Ans: C 100%
upvoted 2 times
...
NANDY666
3 years, 6 months ago
C is Correct
upvoted 1 times
...
mvsnogueira
3 years, 6 months ago
C "You can't launch a new instance using a deleted key pair, but you can continue to connect to any instances that you launched using a deleted key pair, as long as you still have the private key (.pem) file.", So letter A will not solve the question.
upvoted 3 times
...
devjava
3 years, 6 months ago
Ans > C
upvoted 1 times
...
AfricanCloudGuru
3 years, 6 months ago
Ans (C) https://aws.amazon.com/premiumsupport/knowledge-center/new-user-accounts-linux-instance/
upvoted 2 times
...
AfricanCloudGuru
3 years, 6 months ago
Ans (C) https://aws.amazon.com/premiumsupport/knowledge-center/new-user-accounts-linux-instance/
upvoted 1 times
...
Ivandrago
3 years, 6 months ago
C is Correct...even if you delete the key pair the backup key will remain in EC2
upvoted 1 times
...
RaySmith
3 years, 6 months ago
C is correct
upvoted 1 times
...
Zhongkai
3 years, 6 months ago
But the doc is pointing to A
upvoted 1 times
Moid
3 years, 6 months ago
I think the correct answer is A + C
upvoted 1 times
...
SHoKMaSTeR
3 years, 6 months ago
"How can the Security Engineer further protect currently running instances?" If you don't delete the key from authorized_keys although you have created a new one you will be able to access using the old one. Then you can create a new one and add it to the authorized_keys file. In addition, SSH could be exposed to a different port than 22 in the EC2 instances.
upvoted 4 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