AWS Certified Developer Associate DVA-C02 Practice Question

A developer is launching an Amazon EC2 instance that runs a batch application needing read access to several Amazon S3 buckets in the same AWS account. The solution must follow AWS best practices by eliminating long-lived credentials, minimizing operational overhead, and granting only the permissions the application requires. Which approach should the developer use to meet these requirements?

  • Attach an IAM role with the required S3 permissions to the EC2 instance profile.

  • Create a dedicated IAM user, store its access key on the instance, and rotate the key manually.

  • Generate access keys for the AWS account root user and save them as encrypted environment variables.

  • Configure the application to authenticate with Amazon Cognito user pools and exchange the tokens for AWS credentials.

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