exam questions

Exam AWS Certified Cloud Practitioner All Questions

View all questions & answers for the AWS Certified Cloud Practitioner exam

Exam AWS Certified Cloud Practitioner topic 1 question 279 discussion

Exam question from Amazon's AWS Certified Cloud Practitioner
Question #: 279
Topic #: 1
[All AWS Certified Cloud Practitioner Questions]

A company stores configuration files in an Amazon S3 bucket. These configuration files must be accessed by applications that are running on Amazon EC2 instances.
According to AWS security best practices, how should the company grant permissions to allow the applications for access the S3 bucket?

  • A. Use the AWS account root user access keys.
  • B. Use the AWS access key ID and the EC2 secret access key.
  • C. Use an IAM role with the necessary permissions.
  • D. Activate multi-factor authentication (MFA) and versioning on the S3 bucket.
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
Pranava_GCP
2 years ago
Selected Answer: C
C. Use an IAM role with the necessary permissions.
upvoted 2 times
...
man5484
2 years ago
Selected Answer: C
AWS security best practices recommend using IAM roles to grant permissions to AWS resources, including S3 buckets. By attaching an IAM role to the EC2 instances, applications running on those instances can securely access the S3 bucket without needing to use access keys or credentials directly. This approach provides a more secure and manageable way to grant access to AWS resources from EC2 instances.
upvoted 2 times
...
ESAJRR
2 years, 1 month ago
Selected Answer: C
C. Use an IAM role with the necessary permissions.
upvoted 1 times
...
evazaf
2 years, 4 months ago
Selected Answer: C
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html
upvoted 1 times
...
et_learner
2 years, 5 months ago
Selected Answer: C
correct
upvoted 1 times
...
Saif93
2 years, 7 months ago
Selected Answer: C
C is the answer.
upvoted 1 times
...
Zonci
2 years, 8 months ago
Selected Answer: C
"Use IAM roles for applications and AWS services that require Amazon S3 access
upvoted 2 times
...
Redes
2 years, 9 months ago
Selected Answer: C
Use IAM roles for applications and AWS services that require Amazon S3 access For applications on Amazon EC2 or other AWS services to access Amazon S3 resources, they must include valid AWS credentials in their AWS API requests. You should not store AWS credentials directly in the application or Amazon EC2 instance. These are long-term credentials that are not automatically rotated and could have a significant business impact if they are compromised. Instead, you should use an IAM role to manage temporary credentials for applications or services that need to access Amazon S3. When you use a role, you don't have to distribute long-term credentials (such as a user name and password or access keys) to an Amazon EC2 instance or AWS service such as AWS Lambda. The role supplies temporary permissions that applications can use when they make calls to other AWS resources.
upvoted 3 times
...
Nguyen25183
2 years, 9 months ago
Selected Answer: C
"Use IAM roles for applications and AWS services that require Amazon S3 access" https://docs.aws.amazon.com/AmazonS3/latest/userguide/security-best-practices.html
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 ...