Hi hit this question in the exam simulator.
You are trying to debug your Lambda function, however you notice that you are not receiving data level events from either Lambda or S3. What could be the reason for this?
A) Your function does not have permission to write data events and you need to enable cross origin resource sharing to allow S3 to send data events to CloudTrail
B) Data events are disabled by default
C) You need to enable data events in CloudWatch
D) You need to enable data events in Lambda and S3
E) Your function does not have permission to write data events to CloudWatch, or your S3 bucket is not authorized to log data events to CloudWatch
The correct answer for the simulator is B and E, but I don’t understand what permission is talking about, data events are from CloudTrail, where I’m wrong?