Design High-Performing Architectures

An ingestion application on Amazon EC2 must write only to the incoming/ prefix of an S3 bucket without storing long-term credentials. Which approach BEST meets these requirements?

Show the answer

Correct answerA. Attach an EC2 IAM role allowing s3:PutObject only on the incoming/ object ARN.

AWhy this is right: An EC2 role provides temporary credentials, while the object ARN restricts writes to the required prefix.

BWhy not this: Public write permission allows unauthenticated uploads and does not securely identify the ingestion application.

CWhy not this: IAM user access keys are long-term credentials, even when their permissions are narrowly scoped.

DWhy not this: The role avoids long-term credentials but permits writes outside the required prefix.

An EC2 IAM role supplies temporary credentials, and an object-prefix-scoped permission limits writes to incoming/. A bucket-wide role avoids long-term credentials but grants more access than required.