SOA-C02 exam dumps

SOA-C02 practice question 43 of 341

AWS Certified SysOps Administrator - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

SOA-C02 Question 43

Select 3

You are managing an e-commerce application that runs on AWS. You need to set up a solution where an Amazon EventBridge rule automatically triggers a Lambda function whenever an Amazon S3 object is uploaded to a specific bucket. Which of the following steps are required to configure this solution?

  1. A

    Create an EventBridge rule with a custom event pattern that matches S3 PutObject events.

  2. B

    Grant the Lambda function permissions to invoke EventBridge.

  3. C

    Specify the Lambda function as the target for the EventBridge rule.

  4. D

    Configure an S3 bucket policy to allow EventBridge to read S3 events.

  5. E

    Grant EventBridge permissions to invoke the Lambda function.

Show answer and explanation

Correct answers: A, C, E

Explanation

To configure an EventBridge rule to invoke a Lambda function on S3 PutObject events, you need to define an event pattern that matches S3 events, specify the Lambda function as the target, and grant EventBridge permissions to invoke the Lambda function. These steps ensure the event is routed correctly and the Lambda function is executed securely. Other steps, like granting the Lambda function permissions to invoke EventBridge or modifying the S3 bucket policy, are not required for this use case.

  • A. Correct.

    Correct. You need to create an EventBridge rule with a custom event pattern that matches S3 PutObject events. This ensures the rule only triggers for specific S3 actions.

  • B. Incorrect.

    Incorrect. While permissions are important, granting the Lambda function permissions to invoke EventBridge is unnecessary. EventBridge is the service that triggers the Lambda function, not the other way around.

  • C. Correct.

    Correct. The EventBridge rule must specify the Lambda function as its target to ensure the function is invoked when a matching event occurs.

  • D. Incorrect.

    Incorrect. It is not necessary to configure an S3 bucket policy for this scenario because EventBridge is not reading events from S3 directly. S3 events are automatically sent to EventBridge as part of the service's integration.

  • E. Correct.

    Correct. EventBridge must have permissions to invoke the Lambda function. This is typically achieved by attaching an appropriate permissions policy to the Lambda function's execution role.

Timed practice exam

Take a SOA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam