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
- A. Configure a nightly Amazon EventBridge event to invoke an AWS Lambda function to run the RefreshCache command for Storage Gateway.
- B. Instruct the third party to put data into the S3 bucket using AWS Transfer for SFTP.
- C. Modify Storage Gateway to run in volume gateway mode.
- D. Use S3 Same-Region Replication to replicate any changes made directly in the S3 bucket to Storage Gateway.
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.