exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 554 discussion

A company is planning to run a group of Amazon EC2 instances that connect to an Amazon Aurora database. The company has built an AWS CloudFormation template to deploy the EC2 instances and the Aurora DB cluster. The company wants to allow the instances to authenticate to the database in a secure way. The company does not want to maintain static database credentials.
Which solution meets these requirements with the LEAST operational effort?

  • A. Create a database user with a user name and password. Add parameters for the database user name and password to the CloudFormation template. Pass the parameters to the EC2 instances when the instances are launched.
  • B. Create a database user with a user name and password. Store the user name and password in AWS Systems Manager Parameter Store. Configure the EC2 instances to retrieve the database credentials from Parameter Store.
  • C. Configure the DB cluster to use IAM database authentication. Create a database user to use with IAM authentication. Associate a role with the EC2 instances to allow applications on the instances to access the database.
  • D. Configure the DB cluster to use IAM database authentication with an IAM user. Create a database user that has a name that matches the IAM user. Associate the IAM user with the EC2 instances to allow applications on the instances to access the database.
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
AdrianKaczmarczyk
Highly Voted 3 years, 4 months ago
Selected Answer: C
The answer is C A - you simply don't do that. No credentials in templates B - for such sensitive data you should use Secrets Manager not Parameters Store C - looks right, aside of everything else, EC2 can assume a role D - it is possible to associate EC2 instance with role but not with the user
upvoted 23 times
...
kelmryan1
Most Recent 1 year ago
The company does not want to maintain static DB credentials so both A and B are out
upvoted 1 times
...
slcheng
2 years, 10 months ago
Selected Answer: A
Key word "To deploy the EC2 instances and Aurora DB cluster, the business used an AWS Cloud Formation template". "The business does not want to keep track of static database credentials", "LEAST amount of operational effort" Answer A: Meet the requirement. The rest need additional effort and support.
upvoted 3 times
...
naveenagurjara
2 years, 10 months ago
Selected Answer: C
Not B coz it uses username and password.
upvoted 2 times
...
DriVen
3 years, 1 month ago
Selected Answer: C
First, Automatically exclude A,B - no reason to use username/password when you can use IAM, and forget what anyone says, we CAN indeed use IAM for DB, even if the exact DB is not specified in this question https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html And it is not D, cause it doesnt sound logical to associate a user with an instance. So the only correct option for me here is C
upvoted 3 times
...
DriVen
3 years, 1 month ago
First, Automatically exclude A,B - no reason to use username/password when you can use IAM, and forget what anyone says, we CAN indeed use IAM for DB, even if the exact DB is not specified in this question https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html And it is not D, cause it doesnt sound logical to associate a user with an instance. So the only correct option for me here is C
upvoted 2 times
...
Venki_dev
3 years, 1 month ago
Selected Answer: C
Answer is C : IAM database authentication method With IAM database authentication method, you don't need to use a password when you connect to a DB cluster. Instead, you use an authentication token. You don't need to store user credentials in the database, because authentication is managed externally using IAM. For applications running on Amazon EC2, you can use profile credentials specific to your EC2 instance to access your database instead of a password, for greater security. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html
upvoted 3 times
...
done7
3 years, 2 months ago
Selected Answer: B
Answer is B, You can NOT use IAM for data base AUTHENTICATION
upvoted 2 times
drimdrim2002
3 years, 2 months ago
I agree with you. token is needed. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html
upvoted 1 times
...
DriVen
3 years, 1 month ago
REally? https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html
upvoted 2 times
...
...
AWSequalsPromotion
3 years, 3 months ago
Selected Answer: C
"You can use the SecureString parameter type for textual data that you want to encrypt, such as passwords, application secrets, confidential configuration data, or any other types of data that you want to protect." https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html
upvoted 2 times
AWSequalsPromotion
3 years, 3 months ago
Answer is B.
upvoted 1 times
...
...
sayed
3 years, 3 months ago
Selected Answer: C
https://aws.amazon.com/premiumsupport/knowledge-center/users-connect-rds-iam/
upvoted 3 times
...
marszalekm
3 years, 3 months ago
IAM is always safer option than using some kind of credentials.
upvoted 2 times
...
kdelgado
3 years, 3 months ago
C Obviously
upvoted 1 times
...
dolefi
3 years, 3 months ago
this should be B, as directly stated in AWS docs SSM parameter store can be used for passwords (and can be encrypted) and is usable with DB connections. C is for me out because it describes the process of using roles directly attached to EC2, but at the same time describing using IAM user for DB connection (which can be done) which are 2 completely different approaches.
upvoted 2 times
...
FF11
3 years, 4 months ago
Selected Answer: A
A is correct. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/deploying.applications.html
upvoted 2 times
...
Vcskgp
3 years, 4 months ago
Should be B
upvoted 2 times
...
Guqnn
3 years, 4 months ago
Selected Answer: C
C, here is why https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html For applications running on Amazon EC2, you can use profile credentials specific to your EC2 instance to access your database instead of a password, for greater security. Since the you can only associate roles to the EC2 instances, D is out. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.IAMPolicy.html
upvoted 3 times
...
jimmyk2001
3 years, 4 months ago
We gathered ABCD... I am not sure about this, maybe C?
upvoted 2 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