Q21 — AWS SAP-C02 Ch.2

Question 21 of 75 | ← Chapter 2

Q171. A company is migrating a document processing workload to AWS. The company has updated many applications to natively use the Amazon S3 API to store, retrieve, and modify documents that a processing server generates at a rate of approximately 5 documents every second. After the document processing is finished, customers can download the documents directly from Amazon S3 During the migration, the company discovered that it could not immediately update the processing server that generates many documents to support the S3 API. The server runs on Linux and requires fast local access to the files that the server generates and modifies. When the server finishes processing, the files must be available to the public for download within 30 minutes.Which solution will meet these requirements with the LEAST amount of effort?

Correct Answer: B. Set up an Amazon S3 File Gateway and configure a file share that is linked to the document store.Mount the file share on an Amazon EC2 instance by using NFS. When changes occur in Amazon S3.initiate a RefreshCache API call to update the S3 File Gateway

Explanation

此题库争议题目,若考试碰,考想选择B就选择B,想选择C就选择C,B和C之间自己定。To determine the best solution that meets the requirements with the least amount of effort, let's evaluate each option based on the company's specific needs:A. Migrate the application to an AWS Lambda function. Use the AWS SDK for Java to generate, modify, and access the files that the company stores directly in Amazon S3:This option involves rewriting the document processing application to run as an AWS Lambda function. Although AWS Lambda can be powerful for serverless workloads, it requires a significant rewrite of the existing application, which may not be feasible with minimal effort.B. Set up an Amazon S3 File Gateway and configure a file share that is linked to the document store. Mount the file share on an Amazon EC2 instance by using NFS. When changes occur in Amazon S3, initiate a RefreshCache API call to update the S3 File Gateway:The S3 File Gateway allows on-premises or EC2-based applications to use NFS file shares that are backed by S3. This solution maintains the existing file-based workflow for the processing server while ensuring that files are eventually synchronized with S3. The server can continue to operate as usual, and the file share ensures fast local access. The RefreshCache API can be used to ensure that changes are reflected in S3 within the required 30 minutes. This option requires minimal changes to the existing application and infrastructure.C. Configure Amazon FSx for Lustre with an import and export policy. Link the new file system to an S3 bucket. Install the Lustre client and mount the document store to an Amazon EC2 instance by using NFS:Amazon FSx for Lustre is designed for high-performance computing workloads and is typically more complex to set up and manage for this use case. It also involves changing the file system the application uses, which could require significant application changes.D. Configure AWS DataSync to connect to an Amazon EC2 instance. Configure a task to synchronize the generated files to and from Amazon S3:AWS DataSync is useful for large-scale data migrations and continuous data replication, but it requires setting up tasks and schedules, which may introduce complexity and additional management overhead. It also does not provide the fast local access required by the processing server.Given the need for minimal effort and the requirement for fast local access to the files generated by the processing server, Option B is the most suitable solution. It leverages the S3 File Gateway to maintain the current file-based workflow while ensuring that files are eventually synchronized with S3, meeting the 30-minute requirement for public availability.Answer: B. Set up an Amazon S3 File Gateway and configure a file share that is linked to the document store. Mount the file share on an Amazon EC2 instance by using NFS.