Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 17 discussion

A company is implementing a new business application. The application runs on two Amazon EC2 instances and uses an Amazon S3 bucket for document storage. A solutions architect needs to ensure that the EC2 instances can access the S3 bucket.
What should the solutions architect do to meet this requirement?

  • A. Create an IAM role that grants access to the S3 bucket. Attach the role to the EC2 instances.
  • B. Create an IAM policy that grants access to the S3 bucket. Attach the policy to the EC2 instances.
  • C. Create an IAM group that grants access to the S3 bucket. Attach the group to the EC2 instances.
  • D. Create an IAM user that grants access to the S3 bucket. Attach the user account to the EC2 instances.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
sba21
Highly Voted 1 year, 8 months ago
Selected Answer: A
Always remember that you should associate IAM roles to EC2 instances
upvoted 85 times
...
Buruguduystunstugudunstuy
Highly Voted 1 year, 6 months ago
Selected Answer: A
The correct option to meet this requirement is A: Create an IAM role that grants access to the S3 bucket and attach the role to the EC2 instances. An IAM role is an AWS resource that allows you to delegate access to AWS resources and services. You can create an IAM role that grants access to the S3 bucket and then attach the role to the EC2 instances. This will allow the EC2 instances to access the S3 bucket and the documents stored within it. Option B is incorrect because an IAM policy is used to define permissions for an IAM user or group, not for an EC2 instance. Option C is incorrect because an IAM group is used to group together IAM users and policies, not to grant access to resources. Option D is incorrect because an IAM user is used to represent a person or service that interacts with AWS resources, not to grant access to resources.
upvoted 55 times
...
A_jaa
Most Recent 5 months, 3 weeks ago
Selected Answer: A
Answer-A
upvoted 2 times
...
thewalker
6 months ago
Selected Answer: A
Below is the response from Amazon Q: To access S3 from an EC2 instance, you need to create an IAM role and associate that role with the EC2 instance. Here are the basic steps: 1. Create an IAM role and attach the AmazonS3ReadOnlyAccess or AmazonS3FullAccess managed policy to grant S3 access. 2. Launch the EC2 instance and select the IAM role you created during launch. 3. The instance will now have the permissions defined in the IAM role and you can access S3 from the instance.
upvoted 1 times
thewalker
6 months ago
Some key points: 1. Attaching an IAM role is preferred over creating a resource-based policy for S3 access from EC2 as it provides centralized access management. 2. The instance will need internet access to communicate with S3. Make sure the associated security group and NACL rules allow outbound internet access. 3. Check AWS documentation for latest steps to create and associate an IAM role with an EC2 instance. The console and CLI provide options to automate this process. Sources: [1] How can I grant my Amazon EC2 instance access to an Amazon S3 bucket? (https://repost.aws/knowledge-center/ec2-instance-access-s3-bucket) [2] How can I troubleshoot access denied or unauthorized operation errors with an IAM policy? (https://repost.aws/knowledge-center/troubleshoot-iam-policy-issues)
upvoted 1 times
...
...
jjcode
7 months ago
Strangely straight forward, Almost had me confused.
upvoted 1 times
...
GabrielSGoncalves
8 months, 1 week ago
Selected Answer: A
For sure
upvoted 1 times
...
Ruffyit
8 months, 2 weeks ago
The correct option to meet this requirement is A: Create an IAM role that grants access to the S3 bucket and attach the role to the EC2 instances. An IAM role is an AWS resource that allows you to delegate access to AWS resources and services. You can create an IAM role that grants access to the S3 bucket and then attach the role to the EC2 instances. This will allow the EC2 instances to access the S3 bucket and the documents stored within it. Option B is incorrect because an IAM policy is used to define permissions for an IAM user or group, not for an EC2 instance. Option C is incorrect because an IAM group is used to group together IAM users and policies, not to grant access to resources. Option D is incorrect because an IAM user is used to represent a person or service that interacts with AWS resources, not to grant access to resources.
upvoted 1 times
...
danielpark99
9 months ago
Selected Answer: A
EC2 instances should be associated with IAM roles. Policies can be applying to users and groups can help to apply multiple roles.
upvoted 1 times
...
Abdou1604
11 months ago
Option B may work but , suggests creating an IAM policy directly and attaching it to the EC2 instances. While this might work, it's not the recommended approach. Using an IAM role is more secure and manageable.
upvoted 1 times
...
Guru4Cloud
11 months, 3 weeks ago
Selected Answer: A
Always remember that you should associate IAM roles to EC2 instances. An IAM role is an AWS resource that allows you to delegate access to AWS resources and services. You can create an IAM role that grants access to the S3 bucket and then attach the role to the EC2 instances. This will allow the EC2 instances to access the S3 bucket and the documents stored within it.
upvoted 1 times
...
Rexino
11 months, 3 weeks ago
Selected Answer: A
IAM roles should be associated to EC2 instance
upvoted 2 times
...
miki111
11 months, 4 weeks ago
Option A MET THE REQUIREMENT
upvoted 1 times
...
cookieMr
1 year ago
Selected Answer: A
Option A is the correct approach because IAM roles are designed to provide temporary credentials to AWS resources such as EC2 instances. By creating an IAM role, you can define the necessary permissions and policies that allow the EC2 instances to access the S3 bucket securely. Attaching the IAM role to the EC2 instances will automatically provide the necessary credentials to access the S3 bucket without the need for explicit access keys or secrets. Option B is not recommended in this case because IAM policies alone cannot be directly attached to EC2 instances. Policies are usually attached to IAM users, groups, or roles. Option C is not the most appropriate choice because IAM groups are used to manage collections of IAM users and their permissions, rather than granting access to specific resources like S3 buckets. Option D is not the optimal solution because IAM users are intended for individual user accounts and are not the recommended approach for granting access to resources within EC2 instances.
upvoted 3 times
...
big0007
1 year, 1 month ago
IAM Roles manage who/what has access to your AWS resources, whereas IAM policies control their permissions. Therefore, a Policy alone is useless without an active IAM Role or IAM User.
upvoted 1 times
...
cheese929
1 year, 1 month ago
Selected Answer: A
A is correct
upvoted 1 times
...
zoblazo
1 year, 2 months ago
Selected Answer: A
always role for ec2 instance
upvoted 1 times
...
PhucVuu
1 year, 3 months ago
Keywords: EC2 instances can access the S3 bucket. A: Correct - IAM role is used to grant access for AWS services like EC2, Lambda,... B: Incorrect - IAM policy only apply for users cannot attach it to EC2 (AWS service). C: Incorrect - IAM group is used to group of permission and attach to list of users. D: Incorrect - To make EC2 work we need access key and secret access key but not user account. But even when we use access key and secret access key of user it's not recommended because anyone can access EC2 instance can get your access key and secret access key and get all permission from the owner. The secure way is using IAM role which we just specify enough role for EC2 instance.
upvoted 4 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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in