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 218 discussion

A company requires that all applications running on Amazon EC2 use IAM roles to gain access to AWS services. A developer is modifying an application that currently relies on IAM user access keys stored in environment variables to access Amazon DynamoDB tables using boto, the AWS SDK for Python.

The developer associated a role with the same permissions as the IAM user to the EC2 instance, then deleted the IAM user. When the application was restarted, the AWS AccessDeniedException messages started appearing in the application logs. The developer was able to use their personal account on the server to run DynamoDB API commands using the AWS CLI.

What is the MOST likely cause of the exception?

  • A. IAM policies might take a few minutes to propagate to resources.
  • B. Disabled environment variable credentials are still being used by the application.
  • C. The AWS SDK does not support credentials obtained using an instance role.
  • D. The instance’s security group does not allow access to http://169.254.169.254.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
didorins
Highly Voted 1 year, 8 months ago
Selected Answer: B
B is the only viable answer.
upvoted 6 times
...
wh1t4k3r
Most Recent 10 months, 1 week ago
Selected Answer: B
B is the only one that make sense, although more steps would be needed then just configuring the app.
upvoted 2 times
...
65703c1
1 year, 1 month ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
Claire_KMT
1 year, 8 months ago
B. Disabled environment variable credentials are still being used by the application.
upvoted 3 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 ...