AWS Certified DevOps Engineer – Professional — Question 192
A DevOps engineer sets up two Amazon S3 event notifications for an S3 bucket from the S3 console. Both event notifications will be invoked when an object PUT action occurs. One event notification will invoke an AWS Lambda function if the file suffix is .csv. Another event notification will invoke an Amazon Simple
Notification Service (Amazon SNS) topic if the file suffix is .xlsx
The DevOps engineer notices that files with the .csv suffix can invoke the Lambda function successfully. However, files with the .xlsx suffix cannot invoke the SNS topic.
Which reason explains why the SNS topic is not invoked when .xlsx files are added to the S3 bucket?
Answer options
- A. Only one event notification is allowed from the S3 console.
- B. Amazon S3 needs proper permissions to publish an event notification to Amazon SNS.
- C. Lambda has precedence over Amazon SNS in handling the event notification.
- D. Amazon SNS is not a valid destination for some S3 event notifications, including object PUT.
Correct answer: B
Explanation
The correct answer is B because Amazon S3 must have the right permissions to publish messages to the Amazon SNS topic. If these permissions are not correctly configured, the SNS topic will not receive notifications for .xlsx files. The other options are incorrect as they either misstate the capabilities of S3 event notifications or the relationship between SNS and Lambda.