Amazon DOP-C02 Exam - Topic 9 Question 10 Discussion
A company is using an organization in AWS Organizations to manage multiple AWS accounts. The company's development team wants to use AWS Lambda functions to meet resiliency requirements and is rewriting all applications to work with Lambda functions that are deployed in a VPC. The development team is using Amazon Elastic Pile System (Amazon EFS) as shared storage in Account A in the organization.The company wants to continue to use Amazon EPS with Lambda Company policy requires all serverless projects to be deployed in Account B.A DevOps engineer needs to reconfigure an existing EFS file system to allow Lambda functions to access the data through an existing EPS access point.Which combination of steps should the DevOps engineer take to meet these requirements? (Select THREE.)
A) Update the EFS file system policy to provide Account B with access to mount and write to the EFS file system in Account A. and E) Create a VPC peering connection to connect Account A to Account B. and F) Configure the Lambda functions in Account B to assume an existing IAM role in Account A.
A Lambda function in one account can mount a file system in a different account. For this scenario, you configure VPC peering between the function VPC and the file system VPC. https://docs.aws.amazon.com/lambda/latest/dg/services-efs.html
https://aws.amazon.com/ru/blogs/storage/mount-amazon-efs-file-systems-cross-account-from-amazon-eks/
1. Need to update the file system policy on EFS to allow mounting the file system into Account B.
## File System Policy
$ cat file-system-policy.json
{
'Statement': [
{
'Effect': 'Allow',
'Action': [
'elasticfilesystem:ClientMount',
'elasticfilesystem:ClientWrite'
],
'Principal': {
'AWS': 'arn:aws:iam:::root' # Replace with AWS account ID of EKS cluster
}
}
]
}
2. Need VPC peering between Account A and Account B as the pre-requisite
3. Need to assume cross-account IAM role to describe the mounts so that a specific mount can be chosen.
B) Create SCPs to set permission guardrails with fine-grained control for Amazon EFS.
C) Create a new EFS file system in Account B Use AWS Database Migration Service (AWS DMS) to keep data from Account A and Account B synchronized.
D) Update the Lambda execution roles with permission to access the VPC and the EFS file system.
Nilsa
6 months agoGwenn
7 months agoChristiane
7 months agoErnest
7 months agoGlendora
7 months agoAlverta
7 months agoChantell
8 months agoVeronica
8 months agoSharee
8 months agoVerda
8 months agoRolland
8 months agoShalon
8 months agoDiego
8 months ago