exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 404 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 404
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company wants to migrate applications from its on-premises servers to AWS. As a first step, the company is modifying and migrating a non-critical application to a single Amazon EC2 instance. The application will store information in an Amazon S3 bucket. The company needs to follow security best practices when deploying the application on AWS.

Which approach should the company take to allow the application to interact with Amazon S3?

  • A. Create an IAM role that has administrative access to AWS. Attach the role to the EC2 instance.
  • B. Create an IAM user. Attach the AdministratorAccess policy. Copy the generated access key and secret key. Within the application code, use the access key and secret key along with the AWS SDK to communicate with Amazon S3.
  • C. Create an IAM role that has the necessary access to Amazon S3. Attach the role to the EC2 instance.
  • D. Create an IAM user. Attach a policy that provides the necessary access to Amazon S3. Copy the generated access key and secret key. Within the application code, use the access key and secret key along with the AWS SDK to communicate with Amazon S3.
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
JagpreetLM10
2 years, 3 months ago
Selected Answer: C
Create an IAM role that has the necessary access to Amazon S3. Attach the role to the EC2 instance. It is best practice to use IAM roles instead of access keys for applications running on EC2 instances. This allows for fine-grained access control and eliminates the need to manage access keys. Additionally, attaching a role to an EC2 instance eliminates the need to include access keys in application code, which can be a security risk.
upvoted 3 times
...
Phinx
2 years, 3 months ago
Selected Answer: C
C it is
upvoted 2 times
...
KT_Yu
2 years, 3 months ago
Selected Answer: C
C. Create an IAM role that has the necessary access to Amazon S3. Attach the role to the EC2 instance.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago