AWS SNS Message Attribute - Exam Question - SAA-C03

Message Attribute in AWS SNS - Exam Question - SAA-C03

Prev Question Next Question

Question

Which of the following is not an item of message attribute in AWS SNS?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer: D.

https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html
Message Attribute Items and Validation

Each message attribute consists of the following items:

* Name - The message attribute name can contain the following characters: A-Z, a-z, 0-9, underscore(_), hyphen(.), and period (.). The name must not start or end
with a period, and it should not have successive periods. The name is case-sensitive and must be unique among all attribute names for the message. The name
can be up to 256 characters long. The name cannot start with "AWS." or "Amazon." (or any variations in casing) because these prefixes are reserved for use by
Amazon Web Services.

© Type - The supported message attribute data types are String, String. Array, Number, and Binary. The data type has the same restrictions on the content as the
message body. The data type is case-sensitive, and it can be up to 256 bytes long. For more information, see the Message Attribute Data Types and Validation

section.
* Value - The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For

more information, see the Publish action in the Amazon Simple Notification Service API Reference.

Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type,
and value, are included in the message size restriction, which is 256 KB.

AWS SNS (Simple Notification Service) is a fully-managed messaging service that allows you to send and receive messages from various types of endpoints or clients. SNS uses a publish-subscribe model where publishers send messages to topics, and subscribers receive messages from topics.

When publishing a message to an SNS topic, you can include optional message attributes. These attributes provide metadata about the message, such as its format, type, and structure. The message attributes are key-value pairs that can be used to filter messages based on the attributes' values.

Let's take a look at the options provided:

A. Name: This is not an item of message attribute in AWS SNS. There is no attribute named "Name" in SNS.

B. Type: This is an item of message attribute in AWS SNS. The Type attribute specifies the data type of the message attribute value. It can be String, Number, or Binary.

C. Value: This is an item of message attribute in AWS SNS. The Value attribute is the actual value of the message attribute.

D. MessageID: This is not an item of message attribute in AWS SNS. The MessageID is a unique identifier for the message, which is generated by SNS when the message is published.

Therefore, the correct answer is A. Name.