
Answer-first summary for fast verification
Answer: Create an AWS DataSync location for both the destination S3 bucket and the EFS file system. Create a task for the destination S3 bucket and the EFS file system. Set the transfer mode to transfer only data that has changed.
## Explanation **Correct Answer: A** **Why Option A is correct:** 1. **AWS DataSync** is specifically designed for automated data transfer between AWS storage services with minimal operational overhead. 2. **Transfer mode set to 'transfer only data that has changed'** meets the requirement to overwrite files only when the source file changes. 3. **Continuous copying** is achieved through scheduled DataSync tasks that can run automatically. 4. **Least operational overhead** - DataSync is a managed service that handles the infrastructure, scaling, and monitoring automatically. 5. **Supports both S3 and EFS** as source and destination locations. **Why Option B is incorrect:** - Requires custom Lambda function development and maintenance. - Lambda functions have execution time limits and may not handle large files efficiently. - Mounting EFS to Lambda adds complexity and requires proper VPC configuration. - Higher operational overhead for monitoring, error handling, and scaling. **Why Option C is incorrect:** - Setting transfer mode to 'transfer all data' would copy all files every time, not just changed files. - This violates the requirement to overwrite only if source file changes. - Inefficient and potentially costly for large datasets. **Why Option D is incorrect:** - Requires managing an EC2 instance (patching, monitoring, scaling). - Custom script development and maintenance. - Highest operational overhead among all options. - Not a serverless/managed solution. **Key AWS Services:** - **AWS DataSync**: Automates data movement between on-premises storage, AWS storage services, and edge locations. - **Amazon S3**: Object storage service. - **Amazon EFS**: Elastic File System for shared file storage. **Best Practice:** For automated, continuous data synchronization between AWS storage services with minimal operational overhead, AWS DataSync is the recommended solution.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A solutions architect needs to copy files from an Amazon S3 bucket to an Amazon Elastic File System (Amazon EFS) file system and another S3 bucket. The files must be copied continuously. New files are added to the original S3 bucket consistently. The copied files should be overwritten only if the source file changes.
Which solution will meet these requirements with the LEAST operational overhead?
A
Create an AWS DataSync location for both the destination S3 bucket and the EFS file system. Create a task for the destination S3 bucket and the EFS file system. Set the transfer mode to transfer only data that has changed.
B
Create an AWS Lambda function. Mount the file system to the function. Set up an S3 event notification to invoke the function when files are created and changed in Amazon S3. Configure the function to copy files to the file system and the destination S3 bucket.
C
Create an AWS DataSync location for both the destination S3 bucket and the EFS file system. Create a task for the destination S3 bucket and the EFS file system. Set the transfer mode to transfer all data.
D
Launch an Amazon EC2 instance in the same VPC as the file system. Mount the file system. Create a script to routinely synchronize all objects that changed in the origin S3 bucket to the destination S3 bucket and the mounted file system.