AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 39

A company uses AWS Storage Gateway in file gateway mode in front of an Amazon S3 bucket that is used by multiple resources. In the morning when business begins, users do not see the objects processed by a third party the previous evening. When a DevOps engineer looks directly at the S3 bucket, the data is there, but it is missing in Storage Gateway.
Which solution ensures that all the updated third-party files are available in the morning?

Answer options

Correct answer: A

Explanation

The correct answer is A because configuring a nightly Amazon EventBridge event to invoke a Lambda function that runs the RefreshCache command ensures that the Storage Gateway updates its cache with the latest files stored in the S3 bucket. Option B does not address the caching issue, while option C changes the gateway mode without solving the visibility problem. Option D involves replicating changes but does not refresh the existing cache, leaving the issue unresolved.