PrepAway - Latest Free Exam Questions & Answers

How should you securely store these credentials?

You are using a configuration management system to manage your Amazon EC2 instances. On your Amazon EC2
Instances, you want to store credentials for connecting to an Amazon RDS DB instance. How should you securely store
these credentials?

PrepAway - Latest Free Exam Questions & Answers

A.
Give the Amazon EC2 instances an IAM role that allows read access to a private Amazon S3 bucket.
Store a file with database credentials in the Amazon S3 bucket.
Have your configuration management system pull the file from the bucket when it is needed.

B.
Launch an Amazon EC2 instance and use the configuration management system to bootstrap the instance with the Amazon RDS DB
credentials.
Create an AMI from this instance.

C.
Store the Amazon RDS DB credentials in Amazon EC2 user data.
Import the credentials into the Instance on boot.

D.
Assign an IAM role to your Amazon RDS instance, and use this IAM role to access the Amazon RDS DB from your Amazon EC2
instances.

E.
Store your credentials in your version control system, in plaintext.
Check out a copy of your credentials from the version control system on boot.
Use Amazon EBS encryption on the volume storing the Amazon RDS DB credentials.

17 Comments on “How should you securely store these credentials?

    1. BT says:

      D is wrong, you cannot assign IAM Role for RDS instance.
      B and C wrong because not secure.
      A and E, both are OK but A use IAM role for EC2 instance, pull from S3 so it seems the best with AWS.
      I choose A




      1



      1
        1. James says:

          D is correct.
          AWS has its own authentication/authorization architect that is different from that working in AD/LDAP environment.




          2



          0
    1. gabrielwu says:

      and the questions is “you want to store credentials for connecting to an Amazon RDS DB instance”, A is credentials managed by user, d is credentials through role and managed by aws.




      0



      0
  1. pz says:

    Vote A.

    D guys, please tell me how to “use this IAM role to access the Amazon RDS DB from your Amazon EC2”.
    Role is used for AWS service API call.
    RDS is only accessed by database port (3306, 1521, etc).




    0



    1
  2. dickloveqdd says:

    A

    D is wrong. Assign an IAM role to your “Amazon RDS instance” ?
    I think you should assign an IAM role to your “Amazon EC2 instances”




    1



    1

Leave a Reply

Your email address will not be published. Required fields are marked *