nerdexam
Amazon

DVA-C02 · Question #275

A company runs an application on Amazon EC2 instances. The EC2 instances open connections to an Amazon RDS for SQL Server database. A developer needs to store and access the credentials and wants to a

Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #275. The question stem and answer options stay visible for context.

Submitted by rachelw· Mar 5, 2026Security

Question

A company runs an application on Amazon EC2 instances. The EC2 instances open connections to an Amazon RDS for SQL Server database. A developer needs to store and access the credentials and wants to automatically rotate the credentials. The developer does not want to store the credentials for the database in the code. Which solution will meet these requirements in the MOST secure way?

Options

  • ACreate an IAM role that has permissions to access the database. Attach the IAM role to the EC2
  • BStore the credentials as secrets in AWS Secrets Manager. Create an AWS Lambda function to
  • CStore the credentials in an encrypted text file in an Amazon S3 bucket. Configure the EC2
  • DStore the credentials in an Amazon DynamoDB table. Configure an Amazon CloudWatch Events

Unlock DVA-C02 to see the answer

You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full DVA-C02 Practice