AWS Certified Developer Associate DVA-C02 Practice Question

A developer is deploying an application on an Amazon EC2 instance. The application requires permissions to programmatically interact with other AWS services. To adhere to security best practices, the application must not use long-term static credentials. What is the most secure method to grant the necessary permissions to the application?

  • Store static IAM user credentials in the application's source code and commit it to a version control system.

  • Configure the application to use the AWS account's root user credentials for all API calls.

  • Attach an IAM role to the EC2 instance with policies that grant the required permissions.

  • Embed a static IAM user's access keys in the environment variables of the EC2 instance.

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