Question 250
An S3 bucket collects application logs and server access logs. The team confirms that a log-delivery bucket must reject writes that lack the expected object ownership behavior. Which AWS architecture decision should be prioritized?
Explanation
Correct Answer
The scenario identifies this requirement: A log-delivery bucket must reject writes that lack the expected object ownership behavior. Select Configure supported ownership settings and log service delivery permissions as the specified technical mechanism. Object Ownership and service principal permissions must align. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Allow the supported log delivery principal to use the intended KMS encryption key addresses a separate condition: service logs cannot be written to a KMS-encrypted destination because the delivery role lacks key access. Log delivery requires key permissions where SSE-KMS is supported. The actual requirement is a log-delivery bucket must reject writes that lack the expected object ownership behavior. Recommended corrective action: Configure supported ownership settings and log service delivery permissions. Object Ownership and service principal permissions must align.
Restrict PutObject to the approved log-delivery principal and target prefix would help if an S3 bucket's policy grants wildcard access to PutObject but not to read. Narrow log delivery permissions avoid indiscriminate object creation. That is not the symptom described here: a log-delivery bucket must reject writes that lack the expected object ownership behavior. The matching response is Configure supported ownership settings and log service delivery permissions, because object Ownership and service principal permissions must align.
Inspect S3 object encryption metadata and associated CloudTrail/KMS events solves a different operational problem where a customer enables encryption but has no evidence of which key was used. Encryption attributes and KMS audit traces support verification. It does not directly address a log-delivery bucket must reject writes that lack the expected object ownership behavior. The case calls for Configure supported ownership settings and log service delivery permissions, since object Ownership and service principal permissions must align.