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

A team is developing an application that is deployed on Amazon EC2 instances. During testing, the team receives an error. The EC2 instances are unable to access an Amazon S3 bucket.

Which steps should the team take to troubleshoot this issue? (Choose two.)

  • A. Check whether the policy that is assigned to the IAM role that is attached to the EC2 instances grants access to Amazon S3.
  • B. Check the S3 bucket policy to validate the access permissions for the S3 bucket.
  • C. Check whether the policy that is assigned to the IAM user that is attached to the EC2 instances grants access to Amazon S3.
  • D. Check the S3 Lifecycle policy to validate the permissions that are assigned to the S3 bucket.
  • E. Check the security groups that are assigned to the EC2 instances. Make sure that a rule is not blocking the access to Amazon S3.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
MrTee
Highly Voted 1 year, 6 months ago
Selected Answer: AB
Option A is correct because IAM roles are used to grant permissions to AWS services, such as EC2 instances, to access other AWS services, such as S3 buckets. The policy assigned to the IAM role attached to the EC2 instances should be checked to ensure that it grants access to the S3 bucket. Option B is also correct because the S3 bucket policy controls access to the S3 bucket. The S3 bucket policy should be checked to ensure that the access permissions are correctly configured.
upvoted 17 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: AB
EC2 instances typically assume an IAM role to interact with AWS services like S3. If the attached IAM role does not have the correct permissions, the EC2 instance will not be able to access the S3 bucket. Even if the IAM role grants S3 permissions, the bucket policy might explicitly deny access or restrict access to certain principals (users or roles). C) Eliminated - EC2 instances do not use IAM users to access AWS services. D) Eliminated - An S3 Lifecycle policy is used for managing object lifecycles (e.g., moving objects to Glacier or deleting old versions). It does not control access permissions. E) Eliminated - Security groups control inbound and outbound traffic at the network level
upvoted 1 times
...
65703c1
5 months ago
Selected Answer: AB
AB is the correct answer.
upvoted 1 times
...
65703c1
5 months ago
AB is the correct answer.
upvoted 1 times
...
konieczny69
8 months, 4 weeks ago
Selected Answer: AB
Incorrectly stated question. Its not mentioned how does the application us IAM, that is wether its STS or user credentials. AC is as well perfectly correct answer.
upvoted 1 times
...
SerialiDr
9 months, 2 weeks ago
Selected Answer: AB
The two steps most relevant to troubleshooting the issue are: A. Check whether the policy that is assigned to the IAM role that is attached to the EC2 instances grants access to Amazon S3. B. Check the S3 bucket policy to validate the access permissions for the S3 bucket.
upvoted 2 times
...
Nagasoracle
1 year ago
Selected Answer: AB
https://repost.aws/knowledge-center/ec2-instance-access-s3-bucket
upvoted 4 times
...
love777
1 year, 2 months ago
Selected Answer: AE
Explanation: A. IAM Role Policy: EC2 instances are typically associated with IAM roles. These roles have policies attached to them that define the permissions the instances have. If the instances are unable to access an S3 bucket, it's essential to verify that the IAM role assigned to the EC2 instances has the necessary permissions to interact with S3. E. Security Groups: Security groups act as virtual firewalls for EC2 instances. They control inbound and outbound traffic. If the EC2 instances are unable to access S3, it's possible that the associated security group is blocking outbound traffic to the S3 service. Make sure the security group rules allow outbound traffic to the S3 service.
upvoted 3 times
...
love777
1 year, 2 months ago
The correct steps to troubleshoot the issue are: A. Check whether the policy that is assigned to the IAM role that is attached to the EC2 instances grants access to Amazon S3. E. Check the security groups that are assigned to the EC2 instances. Make sure that a rule is not blocking the access to Amazon S3. Explanation: E. Security Groups: Security groups act as virtual firewalls for EC2 instances. They control inbound and outbound traffic. If the EC2 instances are unable to access S3, it's possible that the associated security group is blocking outbound traffic to the S3 service. Make sure the security group rules allow outbound traffic to the S3 service.
upvoted 2 times
...
awsazedevsh
1 year, 3 months ago
Why not E ?
upvoted 2 times
remynick
1 year, 2 months ago
access to S3 is controlled by IAM, not security groups.
upvoted 3 times
maurice2005
7 months, 1 week ago
Security group is like a firewall, can block any inbound/outbound traffic.
upvoted 1 times
...
...
...
indirasubbaraj
1 year, 4 months ago
AB https://repost.aws/knowledge-center/ec2-instance-access-s3-bucket
upvoted 1 times
...
Prem28
1 year, 4 months ago
AE B. Check the S3 bucket policy to validate the access permissions for the S3 bucket. The S3 bucket policy controls who has access to the bucket, but it does not control how they can access it. The IAM role or user that is attached to the EC2 instances must have the appropriate permissions to access the bucket, regardless of what the S3 bucket policy says. C. Check whether the policy that is assigned to the IAM user that is attached to the EC2 instances grants access to Amazon S3. This is unlikely to be the cause of the issue, as the IAM role is what is typically used to control access to AWS resources. D. Check the S3 Lifecycle policy to validate the permissions that are assigned to the S3 bucket. The S3 Lifecycle policy controls how objects are stored and moved in Amazon S3. It does not control who has access to the bucket.
upvoted 2 times
...
vic614
1 year, 6 months ago
Selected Answer: AB
A: Make sure EC2 instance profile has permission to access s3 B: Make sure S3 resource policy allows the access from 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago