Topic 1 Question 433
A developer uses Amazon S3 Event Notifications to invoke AWS Lambda functions. The Lambda functions process images after the images are uploaded to S3 buckets. The developer has set up a development S3 bucket, a production S3 bucket, a development Lambda function, and a production Lambda function in the same AWS account.
The developer notices that uploads to the development S3 bucket wrongly invoke the production Lambda function. The developer must prevent development data from affecting the production Lambda function.
What should the developer do to meet these requirements?
Update the execution role for the production Lambda function. Add a policy that allows the execution role to read from only the production S3 bucket.
Update the S3 bucket policy for the production S3 bucket to invoke the production Lambda function. Update the S3 bucket policy for the development S3 bucket to invoke the development Lambda function.
Separate the development environment and the production environment into their own AWS accounts. Update the execution role for each Lambda function. Add a policy that allows the execution role to read from only the S3 bucket that is in the same account.
Separate the development environment and the production environment into their own AWS accounts. Add a resource policy to the Lambda functions to allow only S3 bucket events in the same account to invoke the functions.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: D
Account Separation: By separating development and production environments into different AWS accounts, you create a strong boundary between the two. This is a best practice for security and resource management. Resource Policy: Adding a resource policy to the Lambda functions that allows only S3 bucket events from the same account to invoke them ensures that cross-account invocations cannot occur accidentally.
👍 3albert_kuo2024/10/09 - 正解だと思う選択肢: D
DDDDDDDDDDDDDDDDD
👍 2Saudis2024/11/07 - 正解だと思う選択肢: D
D is the answer. @Moderator, please correct the answer from B to D.
👍 2devmo2024/11/12
シャッフルモード