AWS Certified Developer - Associate

AWS Certified Developer - Associate

Get started today

Ultimate access to all questions.


A developer must apply the principle of least privilege in an IAM policy for an application that reads a specific file, doc.txt, located in the root of an S3 bucket named DOC-EXAMPLE-BUCKET. What is the appropriate IAM policy statement?




Explanation:

Option A is the correct answer because it specifies the principle of least privilege by granting only the minimum required permissions. This ensures that the application has read access to only the specific file doc.txt in the specified S3 bucket (DOC-EXAMPLE-BUCKET) without providing any additional permissions that are not necessary.