exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 35 discussion

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tartarus23
Highly Voted 1 year, 4 months ago
Selected Answer: A
Explanation: AWS Storage Gateway's file gateway mode provides a bridge between your on-premises servers and Amazon S3. File gateway caches frequently accessed files in your on-premises environment to provide low-latency access. However, if the S3 bucket's data is modified by another service, the cache does not automatically refresh. Thus, to ensure all the updated third-party files are available in the morning, you can use an AWS Lambda function triggered by Amazon EventBridge to run the RefreshCache command for Storage Gateway. This will ensure the cache is updated with the latest changes.
upvoted 16 times
...
ele
Highly Voted 1 year, 6 months ago
Selected Answer: A
A: refresh cache: https://repost.aws/knowledge-center/storage-gateway-s3-changes-not-showing
upvoted 12 times
robertohyena
11 months, 2 weeks ago
Thanks for this. Also found https://repost.aws/knowledge-center/storage-gateway-automate-refreshcache Storage Gateway allows you to automate the RefreshCache operation based on a Time To Live (TTL) value. TTL is the length of time since the last refresh. When a user accesses the file directory after the TTL value, the file gateway refreshes the directory's contents from the S3 bucket. Valid TTL values for automating the RefreshCache operation range from 300 seconds to 2,592,000 seconds (5 minutes to 30 days).
upvoted 3 times
...
...
Gomer
Most Recent 4 months, 4 weeks ago
Selected Answer: A
Read and concede: "Configure an automated cache refresh schedule using AWS Lambda with an Amazon CloudWatch rule" https://docs.aws.amazon.com/filegateway/latest/files3/refresh-cache.html#auto-refresh-lambda-procedure
upvoted 1 times
...
bhond
1 year, 2 months ago
where is it saying files are written directly to s3 ?
upvoted 1 times
yorkicurke
11 months, 1 week ago
You do make a point but if you read the phrase " When a DevOps engineer looks directly at the S3 bucket " it kinda implies besides you dont have any other better choice anyway. if you look at user "ele" comments and follow the link below it will get clear[hope that helps]; https://repost.aws/knowledge-center/storage-gateway-s3-changes-not-showing
upvoted 3 times
...
...
ixdb
1 year, 2 months ago
A is right. Storage Gateway updates the file share cache automatically when you write files to the cache locally using the file share. However, Storage Gateway doesn't automatically update the cache when you upload a file directly to Amazon S3. When you do this, you must perform a RefreshCache operation to see the changes on the file share.
upvoted 1 times
...
madperro
1 year, 4 months ago
Selected Answer: A
A is the answer.
upvoted 1 times
...
haazybanj
1 year, 5 months ago
Selected Answer: A
The issue appears to be related to the Storage Gateway cache not being updated. To ensure that all the updated third-party files are available in the morning, you can use the RefreshCache API to manually refresh the cache or configure automatic cache refresh. Option A is a possible solution to configure automatic cache refresh, but it is not necessary to run the RefreshCache command every night if you can ensure that cache refresh occurs frequently enough to meet your requirements.
upvoted 2 times
...
alce2020
1 year, 6 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
jqso234
1 year, 6 months ago
Selected Answer: B
Option B appears to be the correct choice. Configuring the third party to put data into the S3 bucket using AWS Transfer for SFTP would ensure that the data is immediately available in both the S3 bucket and Storage Gateway, avoiding any potential caching issues. Option A of configuring a nightly event to refresh the cache may not be an optimal solution as it could result in stale data being served during the day.
upvoted 1 times
bcx
1 year, 4 months ago
Transfer SFTP has the same effect in this case as adding files to S3 with PutObject. The cache in the storage gateway would not be updated, requiring the same refresh as in option A.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago