A SysOps Administrator needs to retrieve a file from the GLACIER storage class of Amazon S3. The Administrator wants to receive an Amazon SNS notification when the file is available for access. What action should be taken to accomplish this?
A.
Create an Amazon CloudWatch Events event for file restoration from Amazon S3 Glacier using the GlacierJobDescription API and send the event to an SNS topic the Administrator has subscribed to.
B.
Create an AWS Lambda function that performs a HEAD request on the object being restored and checks the storage class of the object. Then send a notification to an SNS topic the Administrator has subscribed to when the storage class changes to STANDARD.
C.
Enable an Amazon S3 event notification for the s3:ObjectCreated:Post event that sends a notification to an SNS topic the Administrator has subscribed to.
D.
Enable S3 event notification for the s3:ObjectCreated:Completed event that sends a notification to an SNS topic the Administrator has subscribed to.
D. Enable S3 event notification for the s3:ObjectCreated:Completed event that sends a notification to an SNS topic the Administrator has subscribed to.
Restore object events — Amazon S3 supports the restoration of objects archived to the S3 Glacier storage class. You request to be notified of object restoration completion by using s3:ObjectRestore:Completed. You use s3:ObjectRestore:Post to request notification of the initiation of a restore.
https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
I agree that the best option is not listed here, but according to "nicat" AWS article reference, there is no such even as "s3:ObjectCreated:Completed", that's why I think "D" is not the best option here.
"A" option is not what the question asked, because it will show only the status of the job (btw the command is written incorrect, it should be something like "aws glacier describe-job".
I think the "C" answer is the most appropriate option here.
Actually all answers are wrong. Most correct is D, but the event is still wrong:
s3:ObjectRestore:Completed
You use s3:ObjectRestore:Post to request notification of object restoration initiation. You use s3:ObjectRestore:Completed to request notification of restoration completion.
Refer to https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
Yes, you're right.
Should be s3:ObjectRestore:Completed to be notified of object restoration completion
s3:ObjectRestore:Post should be used to be notified of the initiation of the restore.
https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
Agreed that the best option is not listed here...
Specifically for Glacier is:
S3 Glacier defines events specifically related to job completion (ArchiveRetrievalCompleted, InventoryRetrievalCompleted) that you can add to the vault's notification configuration. When a specific job completes, S3 Glacier publishes a notification message to the SNS topic.
https://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html
When a file in the GLACIER storage class is requested for retrieval (restore), Amazon S3 initiates a Glacier restore job to make the file accessible again in the S3 Standard storage class. Once the restoration process is completed, Amazon S3 generates an s3:ObjectCreated:Completed event, indicating that the object has been restored and is available for access.
To receive a notification when the restoration is complete and the file is accessible, you can enable S3 event notification for the s3:ObjectCreated:Completed event on the S3 bucket containing the Glacier object. The event notification can be configured to send a notification to an Amazon SNS topic that the Administrator has subscribed to.
Its D
Restore object events — Amazon S3 supports the restoration of objects archived to the S3 Glacier storage classes. You request to be notified of object restoration completion by using s3:ObjectRestore:Completed. You use s3:ObjectRestore:Post to request notification of the initiation of a restore
D. Enable S3 event notification for the s3:ObjectCreated:Completed event that sends a notification to an SNS topic the Administrator has subscribed to.
Seem correct if the notification would be : s3:ObjectRestore:Post to request notification of object restoration initiation. You use s3:ObjectRestore:Completed to request notification of restoration completion.
D. Enable S3 event notification for the s3:ObjectCreated:Completed event that sends a notification to an SNS topic the Administrator has subscribed to.
https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
https://docs.aws.amazon.com/AmazonS3/latest/user-guide/enable-event-notifications.html
Using restore object event types you can receive notifications for initiation and completion when restoring objects from the S3 Glacier storage class.
You use s3:ObjectRestore:Post to request notification of object restoration initiation. You use s3:ObjectRestore:Completed to request notification of restoration completion.
So D.
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.
nicat
Highly Voted 2 years, 9 months agoSysOps
2 years, 8 months agokung07
Highly Voted 2 years, 9 months agoPhil31
2 years, 9 months agojoe_smoe
2 years, 9 months agoGolddust
2 years, 9 months agoalbert_kuo
Most Recent 11 months, 4 weeks agoRicardoD
2 years, 8 months agonik351
2 years, 8 months agoabhishek_m_86
2 years, 8 months agojackdryan
2 years, 8 months agogilbertlelancelo
2 years, 9 months agofirstabed
2 years, 9 months agoasim1982
2 years, 9 months agoPavan403
2 years, 9 months ago