ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 124 - DOP-C02 discussion

Report
Export

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.
Answers
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.
B.
Create SCPs to set permission guardrails with fine-grained control for Amazon EFS.
Answers
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.
Answers
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.
Answers
D.
Update the Lambda execution roles with permission to access the VPC and the EFS file system.
E.
Create a VPC peering connection to connect Account A to Account B.
Answers
E.
Create a VPC peering connection to connect Account A to Account B.
F.
Need to assume cross-account IAM role to describe the mounts so that a specific mount can be chosen.
Answers
F.
Need to assume cross-account IAM role to describe the mounts so that a specific mount can be chosen.
Suggested answer: A, E, F

Explanation:

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::<aws-account-id-A>: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.


asked 16/09/2024
Maria Janice Lecias
49 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first