Which solution ensures that all the updated third-party files are available in the morning?
Configure a nightly Amazon EventBridge event to invoke an AWS Lambda function to run the RefreshCache command for Storage Gateway.
Instruct the third party to put data into the S3 bucket using AWS Transfer for SFTP.
Modify Storage Gateway to run in volume gateway mode.
Use S3 Same-Region Replication to replicate any changes made directly in the S3 bucket to Storage Gateway.
Explanations:
Configuring a nightly Amazon EventBridge event to invoke a Lambda function that runs the RefreshCache command for Storage Gateway will ensure that the Storage Gateway refreshes its cache and updates the file list, making all third-party files available in the morning.
Instructing the third party to use AWS Transfer for SFTP to put data directly into the S3 bucket does not address the issue of the Storage Gateway cache not reflecting the latest files. The files would still need to be refreshed in the gateway.
Modifying the Storage Gateway to run in volume gateway mode is not a valid solution, as the current requirement is to access S3 objects through a file interface, and volume gateway does not provide file access. Additionally, this would not resolve the caching issue.
S3 Same-Region Replication is not applicable in this scenario, as it is used for replicating objects between S3 buckets, not for syncing data with a Storage Gateway. The gateway operates with its own cache and requires a refresh to update its contents.