Amazon Simple Notification Service (SNS) | Worldwide SMS Flashcards
What happens to Amazon SNS messages if the subscribing endpoint is not available?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
All messages sent to SNS are processed and delivered immediately. If a message cannot be successfully delivered on the first attempt, SNS implements a 4-phase retry policy: 1) retries with no delay in between attempts, 2) retries with some minimum delay between attempts, 3) retries with some back-off model (linear or exponential), and 4) retries with some maximum delay between attempts.
The policies for each endpoint vary and are listed below.
Lambda: If Lambda is not available, SNS will retry 2 times at 1 seconds apart, then 10 times exponentially backing off from 1 seconds to 20 minutes and finally 38 times every 20 minutes for a total 50 attempts over more than 13 hours before the message is discarded from SNS.
Email: If an email endpoint is not available, SNS will retry 1 time immediately, 1 time at 10 seconds apart, then 10 times with linear back-off from 10 seconds to 5 minutes and finally 90 times every 5 minutes for a total 102 attempts over more than 7 hours before the message is discarded from SNS.
Mobile push: If the mobile endpoint is not available, SNS will retry 2 times immediately, 5 times at 20 seconds apart, then 31 times exponentially backing off from 20 seconds to 20 minutes and finally 12 times every 20 minutes for a total 50 attempts over more than 4 hours before the message is discarded from SNS.
What features are part of the new Worldwide SMS capability?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
You can use Amazon SNS to deliver SMS (text) messages to 200+ countries, and you do not require recipients to explicitly opt in as before. You must obtain prior permission from recipients to send SMS messages to their phone numbers, where required by local law and regulations. Additionally, you can now mark your SMS messages as Transactional to optimize for reliable delivery, or you can mark it as Promotional to optimize for cost savings. Furthermore, you can set account and message-level spend limits to avoid inadvertent overruns.
When should I mark an SMS message as Transactional?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
SMS messages that are of high priority to your business should be marked as Transactional. This ensures that messages such as those that contain one-time passwords (OTP) or PINs get delivered over routes with the highest delivery reliability. These routes tend to be more expensive than Promotional messaging routes in countries other than the US. You should never mark marketing messages as Transactional, because this violates the local regulatory policies in certain countries, and your account may be marked for abuse and suspended.
When should I mark an SMS message as Promotional?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
SMS messages that carry marketing messaging should be marked Promotional. Amazon SNS ensures that such messages are sent over routes that have a reasonable delivery reliability but are substantially cheaper than the most reliable routes. This also allows Amazon SNS to handle and deliver your messages in compliance with on local laws and regulation
What are account-level and message-level spend limits and how do they work?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
Spend limits can be specified for an AWS account and for individual messages, and the limits apply only to the cost of sending SMS messages.
The default spend limit per account (if not specified) is 1.00 USD per month. If you want to raise the limit, submit an SNS Limit Increase case. For New limit value, enter your desired monthly spend limit. In the Use Case Description field, explain that you are requesting an SMS monthly spend limit increase.
Amazon SNS sends SMS messages that you publish while the total cost incurred for your SMS traffic is below your spend limit for that calendar month. Once the spend limit is exceeded, Amazon SNS stops delivering messages until you either increase the spend limit or a new calendar month begins. Similarly, you can also specify a spend limit for an individual message, and Amazon SNS will send the message only if the cost is below the limit. Amazon SNS will not send your SMS messages if the account-level spend limit is exceeded, regardless of whether the message-level spend limit is exceeded.
Is two-way SMS supported?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
Amazon SNS does not currently support two-way SMS capabilities, except for opt out where required by local regulations.
Do I need to subscribe phone numbers to an SNS Topic before sending an SMS message to it?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
You no longer need to subscribe a phone number to an Amazon SNS topic before you publish messages to it. Now, you can directly publish messages to a phone number using the Amazon SNS console or the Publish request in the Amazon SNS API.
Does AWS offer short codes for purchase?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
Yes. You can reserve a dedicated short code that is assigned to your account and available exclusively to you.
To reserve a short code, create a case using the AWS Support Center. For more information, see Reserving a Dedicated Short Code for SMS Messaging in the Amazon SNS Developer Guide.
For pricing information, see Worldwide SMS Pricing.
Does AWS offer long codes for purchase?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
No. AWS does not currently offer long codes for purchase.
Will SMS notifications come from a specific number of short codes or long codes?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
Amazon SNS uses a pool of long codes or short codes to send SMS notifications. While there is a possibility that SMS notifications come from multiple numbers, Amazon SNS ensures that the messages sent from an AWS account to a specific phone number always come from the same long code or short code. This is called “Sticky Sender ID”.
You can reserve a dedicated short code to ensure that all SMS messages that you send through Amazon SNS have a persistent short code. By reserving a short code, you make it easier for your audience to recognize that your organization is the source of your messages. For more information, see Reserving a Dedicated Short Code for SMS Messaging in the Amazon SNS Developer Guide.
Which countries does Amazon SNS support for Worldwide SMS?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
Amazon SNS supports more than 200 countries, and we keep growing our reach. Please refer to the SMS Supported Country List for a comprehensive list of supported calling countries.
Which AWS regions support Worldwide SMS?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
1) US-East-1 (Virginia), 2) US-West-2 (Oregon), 3) EU-West-1 (Dublin), 4) Asia Pacific (Tokyo), 5) Asia Pacific (Singapore), and 6) Asia Pacific (Sydney).
Do the AWS phone numbers change?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
Yes. Amazon SNS uses a pool of long codes or short codes to send SMS notifications. So while there is a possibility that SMS notifications come from multiple numbers, Amazon SNS ensures that the messages sent from an AWS account to a specific phone number, always come from the same long code or short code. This is called “Sticky Sender ID”.
Why do some devices on the same carrier receive messages from different phone numbers?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
Amazon SNS uses a pool of long codes or short codes to send SMS notifications. So while there is a possibility that SMS notifications come from multiple numbers, Amazon SNS ensures that the messages sent from an AWS account to a specific phone number always come from the same long code or short code. This is called “Sticky Sender ID”.
What is the phone number format for sending messages to other countries?
Worldwide SMS
Amazon Simple Notification Service (SNS) | Application Integration
AWS strongly encourages E.164 number formatting for all phone numbers both in the ‘to’ and ‘from’ (when applicable) fields. Please refer to the SMS Supported Country List for a comprehensive list of supported countries.