ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 351 - SOA-C02 discussion

Report
Export

A company has an AWS Lambda function in Account

A.
The Lambda function needs to read the objects in an Amazon S3 bucket in Account B. A SysOps administrator must create corresponding 1AM roles in both accounts. Which solution will meet these requirements?
Answers
A.
The Lambda function needs to read the objects in an Amazon S3 bucket in Account B. A SysOps administrator must create corresponding 1AM roles in both accounts. Which solution will meet these requirements?
B.
In Account A, create a Lambda execution role to assume the role in Account B. In Account B. create a role that the function can assume to gain access to the S3 bucket.
Answers
B.
In Account A, create a Lambda execution role to assume the role in Account B. In Account B. create a role that the function can assume to gain access to the S3 bucket.
C.
In Account A, create a Lambda execution role that provides access to the S3 bucket. In Account B. create a role that the function can assume.
Answers
C.
In Account A, create a Lambda execution role that provides access to the S3 bucket. In Account B. create a role that the function can assume.
D.
In Account A. create a role that the function can assume. In Account B, create a Lambda execution role that provides access to the S3 bucket.
Answers
D.
In Account A. create a role that the function can assume. In Account B, create a Lambda execution role that provides access to the S3 bucket.
E.
In Account A. create a role that the function can assume to gain access to the S3 bucket. In Account B. create a Lambda execution role to assume the role in Account A.
Answers
E.
In Account A. create a role that the function can assume to gain access to the S3 bucket. In Account B. create a Lambda execution role to assume the role in Account A.
Suggested answer: A

Explanation:

For a Lambda function in Account A to access an S3 bucket in Account B, the correct IAM roles setup includes:

A: In Account A, create a Lambda execution role that has permissions to assume another role in Account B. In Account B, create a role with permissions to access the S3 bucket and trust the Lambda execution role from Account A to assume it. This configuration allows the Lambda function to assume the cross-account role and access the S3 bucket as needed, maintaining security and proper access control. AWS documentation provides more details on setting up cross-account roles for Lambda access AWS Lambda Permissions.

asked 16/09/2024
Ksu doo Makek
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first