Labor Day Flash Sale: 30% off Today Only!

7 hours, 45 minutes remaining!

AWS Certified Developer Associate DVA-C02 Practice Question

A developer needs to securely manage the storage and retrieval of database login credentials for an application hosted on Amazon EC2 instances. The application code requires these credentials to establish database connections at runtime. Which method is the recommended best practice for handling these credentials securely?

  • Create an IAM policy that grants the EC2 instance profile the necessary permissions to connect to the database without needing to store explicit credentials.

  • Use a secret management service like AWS Secrets Manager to store the database credentials, allowing the application to retrieve them securely at runtime.

  • Configure environment variables on the EC2 instances to hold the login details, and read them directly within the application when needed.

  • Embed the database credentials directly in the source code of the application after encrypting them with a basic encryption algorithm.

AWS Certified Developer Associate DVA-C02
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot