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

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

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 2 years, 1 month ago
Selected Answer: A
Always remember that you should associate IAM roles to EC2 instances
upvoted 95 times
...
Buruguduystunstugudunstuy
Highly Voted 1 year, 10 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 61 times
...
EzKkk
Most Recent 1 week ago
Selected Answer: A
IAM Role + EC2 instance = go-to solution
upvoted 1 times
...
PaulGa
3 months, 1 week ago
Selected Answer: A
Ans A - as per "Buruguduystunstugudunstuy" response.
upvoted 1 times
...
A_jaa
10 months, 1 week ago
Selected Answer: A
Answer-A
upvoted 2 times
...
thewalker
10 months, 2 weeks 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 2 times
thewalker
10 months, 2 weeks 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.
upvoted 1 times
...
...
jjcode
11 months, 2 weeks ago
Strangely straight forward, Almost had me confused.
upvoted 1 times
...
Selected Answer: A
For sure
upvoted 1 times
...
Ruffyit
1 year 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
1 year, 1 month 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
1 year, 3 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
1 year, 4 months 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
1 year, 4 months ago
Selected Answer: A
IAM roles should be associated to EC2 instance
upvoted 2 times
...
miki111
1 year, 4 months ago
Option A MET THE REQUIREMENT
upvoted 1 times
...
cookieMr
1 year, 5 months 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, 6 months 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, 6 months ago
Selected Answer: A
A is correct
upvoted 1 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 ...