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?
Enable Cross-Origin Resource Sharing (CORS) on the S3 bucket to trigger 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.
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 S3 event notification?
Open an interactive chat with Bash
How does S3 integrate with Lambda?
Open an interactive chat with Bash
What is the ARN of a Lambda function?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .