AWS Certified Solutions Architect – Associate (SAA-C02) — Question 519

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?

Answer options

Correct answer: C

Explanation

Option C is correct because enabling IAM database authentication allows EC2 instances to securely connect to Amazon Aurora without managing static database credentials, using short-lived credentials generated automatically via an IAM role associated with the EC2 instances. Options A and B are incorrect because they rely on static credentials, which require rotation and manual management. Option D is incorrect because IAM users cannot be directly attached to EC2 instances; instead, IAM roles must be used to delegate permissions to applications running on EC2.