A developer is automating a new application deployment with AWS Serverless Application Model (AWS SAM) . The new application has one AWS Lambda function and one Amazon S3 bucket. The Lambda function must access the S3 bucket to only read objects. How should the developer configure AWS SAM to grant the necessary read privilege to the S3 bucket?
A) Reference a second Lambda authorizer function.
B) Add a custom S3 bucket policy to the Lambda function.
C) Create an Amazon Simple Queue Service (SQS) topic for only S3 object reads. Reference the topic in the template.
D) Add the S3ReadPolicy template to the Lambda function's execution role.
Correct Answer:
Verified
Q453: A developer is creating a serverless web
Q454: A company wants to make sure that
Q455: An AWS Lambda function accesses two Amazon
Q456: A developer is building an application that
Q457: A developer is monitoring an application running
Q459: A company requires all data that is
Q460: A developer is writing a web application
Q461: An application that is deployed to Amazon
Q462: A company's new mobile app uses Amazon
Q463: A company is using AWS CloudFormation templates
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents