AWS Certified DevOps Engineer – Professional — Question 47
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 (Amazon CloudWatch Events) event to trigger 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 executing the RefreshCache command ensures that Storage Gateway updates its cache with the latest objects from the S3 bucket. Option B does not address the caching issue, and while it may streamline uploads, it doesn't ensure visibility in Storage Gateway. Option C changes the mode of operation but does not solve the cache refresh problem, and Option D is irrelevant as it only replicates changes but doesn't refresh the cache for existing files.