ExamQuestions.com

Register
Login
AWS Certified Security Specialty Exam Questions

Amazon

AWS Certified Security Specialty

170 / 310

Question 170:

You have a project that needs an AMI to pre-install several applications. You search for the AWS Marketplace and find a public AMI that can meet your needs. However, you are unsure if it is secure to use the AMI. For example, it may contain pre-installed public SSH keys that may allow unwanted third-party access. Which actions would you perform to prevent this?

Answer options:

A.Log in as the ec2-user and search for all the authorized_keys files. Delete any unauthorized private SSH keys.
B.Identify unauthorized public SSH keys by locating all authorized_keys files on disk. Remove any unrecognized keys.
C.Log in as the root user and check if the file in /root/.ssh/authorized_keys contains unknown public SSH keys. Disable any unrecognized keys in the file.
D.Global search the SSH private keys in the disk by checking all the PEM files. Delete the unknown keys.