exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 238 discussion

A developer is working on an application that is deployed on an Amazon EC2 instance. The developer needs a solution that will securely transfer files from the application to an Amazon S3 bucket.

What should the developer do to meet these requirements in the MOST secure way?

  • A. Create an IAM user. Create an access key for the IAM user. Store the access key in the application’s environment variables.
  • B. Create an IAM role. Create an access key for the IAM role. Store the access key in the application’s environment variables.
  • C. Create an IAM role. Configure the IAM role to access the specific Amazon S3 API calls the application requires. Associate the IAM role with the EC2 instance.
  • D. Configure an S3 bucket policy for the S3 bucket. Configure the S3 bucket policy to allow access for the EC2 instance ID.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Claire_KMT
Highly Voted 10 months, 3 weeks ago
C. Create an IAM role. Configure the IAM role to access the specific Amazon S3 API calls the application requires. Associate the IAM role with the EC2 instance.
upvoted 10 times
...
SerialiDr
Highly Voted 7 months, 3 weeks ago
Selected Answer: C
This approach follows AWS best practices. An IAM role can be created with the necessary permissions to access the S3 bucket. Then, this role can be associated with the EC2 instance. Applications running on the instance can then use the role's permissions to access S3 securely, without needing to manage access keys. This method leverages AWS's built-in security mechanisms and avoids the risks associated with managing static credentials.
upvoted 8 times
...
Shamalka
Most Recent 1 week, 2 days ago
Selected Answer: C
C is the correct answer
upvoted 1 times
...
65703c1
3 months, 3 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
[Removed]
10 months, 3 weeks ago
Selected Answer: C
c!!!!!!!!!!!!!
upvoted 4 times
...
bammy
10 months, 3 weeks ago
C is the correct answer
upvoted 6 times
...
didorins
10 months, 3 weeks ago
Selected Answer: C
Create role with required permissions. Attach it to IAM as instance profile.
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago