AWS Certified Developer Associate DVA-C02 Practice Question
Your company has an application that uploads processed data to an S3 bucket. You need to design a system where an AWS Lambda function is invoked for each new object created in the bucket to perform additional processing. What combination of steps should be taken to ensure the proper integration between S3 and the Lambda function?
Apply a bucket policy to the S3 bucket to allow the Lambda function to be invoked when a new object is created.
Create an S3 lifecycle policy that invokes the Lambda function upon new object upload.
Configure an event notification on the S3 bucket to invoke the Lambda function when an object is created.
Enable Cross-Origin Resource Sharing (CORS) on the S3 bucket to trigger the Lambda function.
To trigger an AWS Lambda function on S3 object creation, an event notification should be configured on the specific S3 bucket. Each event notification can specify an event type (such as 's3:ObjectCreated:*') and the destination for the event, which would be the Lambda function's ARN (Amazon Resource Name). Thus, the correct answer is 'Configure an event notification on the S3 bucket to invoke the Lambda function when an object is created'. Bucket policies and CORS configurations on the S3 bucket do not relate to the invocation of Lambda functions based on object creation events. An S3 lifecycle policy is used for object management (such as expiration or transition) and not for event invocation of Lambda functions
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an event notification in AWS S3?
Open an interactive chat with Bash
What is the ARN (Amazon Resource Name) and why is it important?
Open an interactive chat with Bash
What is a bucket policy and how does it differ from an event notification?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access