What is the format of structured notification messages sent by Amazon SNS?
A.
An XML object containing MessageId, UnsubscribeURL, Subject, Message and other
values
B.
An JSON object containing MessageId, DuplicateFlag, Message and other values
C.
An XML object containing MessageId, DuplicateFlag, Message and other values
D.
An JSON object containing MessageId, unsubscribeURL, Subject, Message and other
values
Explanation:
D
D
Answer = D
https://aws.amazon.com/sns/faqs/
Q: What is the format of structured notification messages sent by Amazon SNS?
The notification message sent by Amazon SNS for deliveries over HTTP, HTTPS, Email-JSON and SQS transport protocols will consist of a simple JSON object, which will include the following information:
MessageId: A Universally Unique Identifier, unique for each notification published.
Timestamp: The time (in GMT) at which the notification was published.
TopicArn: The topic to which this message was published
Type: The type of the delivery message, set to “Notification” for notification deliveries.
UnsubscribeURL: A link to unsubscribe the end-point from this topic, and prevent receiving any further notifications.
Message: The payload (body) of the message, as received from the publisher.
Subject: The Subject field – if one was included as an optional parameter to the publish API call along with the message.
Signature: Base64-encoded “SHA1withRSA” signature of the Message, MessageId, Subject (if present), Type, Timestamp, and Topic values.
SignatureVersion: Version of the Amazon SNS signature used.
Notification messages sent over the “Email” transport only contain the payload (message body) as received from the publisher.
D
Answer = D
https://aws.amazon.com/sns/faqs/
UnsubscribeURL is Mandatory and its a JSON so.
UnsubscribeURL: A link to unsubscribe the end-point from this topic, and prevent receiving any further notifications.