A web service called Amazon Simple Notification
Service (Amazon SNS) makes it simple to set up, run, and transmit notifications
from the cloud. It gives developers the ability to publish messages from an
application and instantly distribute them to subscribers or other apps in a
highly scalable, flexible, and economical manner. For developers, it is
intended to make web-scale computing simpler. The "publish-subscribe"
(pub-sub) communications paradigm is used by Amazon SNS, and notifications are
sent to clients using a "push" technique to avoid the need for
recurring checks or "polls" for new data and updates. With
pay-as-you-go pricing, no maintenance or management costs, and straightforward
APIs requiring no upfront effort, Amazon SNS offers developers a simple way to
integrate a potent notification system with their apps.
AWS AppSync Interview Questions and Answers
AWS Cloud9 Interview Questions and Answers
Ques. 1): What are the key features that
distinguish Amazon SNS as a flexible choice for developing and integrating
loosely-coupled, distributed applications?
Answer:
- Push-based, immediate delivery (no polling)
- Simple APIs and straightforward application integration
- Message delivery flexibility across several transport protocols
- Pay-as-you-go strategy that is affordable and free of upfront charges
- AWS Management Console on the web offers a straightforward point-and-click user interface.
Amazon Athena Interview Questions and Answers
AWS RedShift Interview Questions and Answers
Ques. 2): How does the Amazon SNS function?
Answer:
With Amazon SNS, getting started is quite
simple. Prior to posting messages and enabling users to subscribe for alerts,
developers must first build a "topic" that serves as a "access
point" and identifies a certain subject or event type. When a topic is
formed, the subject owner can describe its policies, such as who is allowed to
publish messages or subscribe to notifications, as well as which notification
protocols (such as HTTP/HTTPS, email, or SMS) will be supported. Clients that
subscribe to a subject or are subscribed by the topic owner are interested in
getting alerts from relevant topics. The protocol and end-point (URL, email
address, etc.) where notifications should be sent are specified by subscribers.
Publishers that have information or updates for their subscribers can post a
message to the subject, which causes Amazon SNS to send the message to all
relevant subscribers right away.
AWS(Amazon Web Services) Interview Questions and Answers
AWS Cloud Interview Questions and Answers
Ques. 3): What distinguishes Amazon SNS from
Amazon MQ?
Answer:
Messaging services like Amazon MQ, Amazon SQS, and Amazon SNS are appropriate for businesses of all sizes. Consider Amazon MQ if you want to rapidly and simply migrate your messaging to the cloud while still utilising it with your current apps. You may transition from any standards-based message broker to Amazon MQ without having to completely rewrite the messaging code in your apps since it supports industry-standard APIs and protocols. We advise you to take Amazon SQS and Amazon SNS into account while developing brand-new cloud-based apps. Amazon SQS and SNS are lightweight, fully managed message queue and topic services that offer straightforward, user-friendly APIs and almost indefinite scalability. Microservices, distributed systems, and serverless applications may be scaled and decoupled using Amazon SQS and SNS, and dependability can be increased.
AWS Cloud Practitioner Essentials Questions and Answers
AWS EC2 Interview Questions and Answers
Ques. 4): What distinguishes Amazon SNS from
Amazon MQ?
Answer:
Messaging services like Amazon MQ, Amazon SQS, and Amazon SNS are appropriate for businesses of all sizes. Consider Amazon MQ if you want to rapidly and simply migrate your messaging to the cloud while still utilising it with your current apps. You may transition from any standards-based message broker to Amazon MQ without having to completely rewrite the messaging code in your apps since it supports industry-standard APIs and protocols. We advise you to take Amazon SQS and Amazon SNS into account while developing brand-new cloud-based apps. Amazon SQS and SNS are lightweight, fully managed message queue and topic services that offer straightforward, user-friendly APIs and almost indefinite scalability. The relaying of time-sensitive events to mobile applications and devices is another example of how Amazon SNS is used. Developers that create applications that depend on real-time events might benefit greatly from using Amazon SNS since it is both extremely dependable and scalable.
AWS Lambda Interview Questions and Answers
AWS Cloud Security Interview Questions and Answers
Ques. 5): What are the various notice delivery
formats and transports?
Answer:
SQS - Users have the option of specifying a FIFO queue or a SQS standard as the endpoint, and Amazon SNS will enqueue a notification message to the chosen queue (which subscribers can then process using SQS APIs such as ReceiveMessage, DeleteMessage, etc.).
HTTP, HTTPS - When registering for a subscription,
subscribers must select a URL; alerts will be sent through an HTTP POST to the
supplied URL.
Email-JSON - Messages are delivered to
registered addresses by email or email-JSON. Email delivers text-based email,
whereas Email-JSON sends alerts as a JSON object.
SQS – Users can choose "SQS" as the
endpoint, which instructs Amazon SNS to enqueue a notification message to a SQS
standard queue (which subscribers can then process using SQS APIs such as
ReceiveMessage, DeleteMessage, etc.).
SMS - Text communications are transmitted as SMS
to registered phone numbers.
AWS Simple Storage Service (S3) Interview Questions and Answers
AWS Fargate Interview Questions and Answers
Ques. 6): Can other AWS services be utilised
with Amazon SNS?
Answer:
Other AWS services like Amazon SQS, Amazon EC2, and Amazon S3 can be combined with Amazon SNS. Here is an illustration of how a workflow system for order processing employs Amazon SNS along with Amazon EC2, SQS, and SimpleDB. In this workflow system, whenever a transaction takes place or an order moves through the order processing pipeline, messages are delivered between the application components. When a consumer puts an order, the transaction is first logged in Amazon SimpleDB before being sent to a payment processor, which deducts the customer's credit card or bank account, through an application running on Amazon EC2. An order confirmation message is then sent to an Amazon SNS topic after being authorized. The merchant, the client, and the supply chain partners are all subscribers to the subject in this scenario through Email/HTTP, and alerts provided by Amazon SNS for that topic may immediately inform them all that the payment processing was successful. An order processing system running on EC2 may also be orchestrated via notifications, where alerts provided over HTTP can start real-time processing in associated components like an inventory system or a shipping service. All sent notifications are maintained in an Amazon SQS queue through the integration of Amazon SNS and Amazon SQS, where they are later analysed by an auditing application.
AWS SageMaker Interview Questions and Answers
AWS DynamoDB Interview Questions and Answers
Ques. 7): Will a certain originating number send
SMS notifications?
Answer:
Numbers will be used by Amazon SNS according to your account's settings. A dedicated short code will be used first, then one of the specialised long codes. Amazon SNS will resort to utilising a common set of numbers to send SMS notifications if you don't have dedicated numbers. While sending messages to a certain destination phone number, Amazon SNS tries to utilise the same number when utilising the shared set. Sticky Sender ID is the name for this. However, a different number could be chosen based on numerous factors including network circumstances and available throughput.
You can reserve dedicated long numbers or
dedicated short codes to manage the originating identity that Amazon SNS uses
to transmit messages. You may make it simpler for your audience to understand that
your company is the source of your communications by reserving one or more
numbers.
AWS Cloudwatch interview Questions and Answers
AWS Elastic Block Store (EBS) Interview Questions and Answers
Ques. 8): What characteristics are included in
the new Worldwide SMS capability?
Answer:
With Amazon SNS, you may send SMS (text) messages to more than 200 countries without the receivers' express consent as previously. If local law or regulations prohibit you from sending SMS messages to a recipient's phone number, you must first get their consent. Additionally, you may now label your SMS messages as Transactional or Promotional to optimise for cost-savings or dependable delivery, respectively. To prevent unintentional overruns, you may also define expenditure limitations at the account and message levels.
AWS Amplify Interview Questions and Answers
AWS Secrets Manager Interview Questions and Answers
Ques. 9): How would a developer build up an Amazon SQS queue to get alerts from Amazon SNS?
Answer:
A developer should subscribe to a topic specifying "SQS" as the transport and a valid SQS standard queue as the end-point in order to have Amazon SNS transmit notifications to a SQS queue. The owner of the SQS queue must subscribe the SQS queue to the Topic in order for Amazon SNS to correctly deliver messages to the queue and enable the SQS queue to receive alerts from Amazon SNS.
Nothing further is necessary if the user already controls the Amazon SNS topic being subscribed to and the SQS queue receiving the alerts. Any message posted to the subject will be sent automatically to the designated SQS queue. Amazon SNS will seek a clear confirmation of the subscription request if the person who owns the SQS queue is not the topic's owner.
AWS Django Interview Questions and Answers
AWS Cloud Support Engineer Interview Question and Answers
Ques. 10): How many times will each message be delivered to subscribers?
Answer:
Although each message will typically only ever be delivered once to your application, the dispersed nature of Amazon SNS and fluctuating network circumstances may occasionally cause multiple messages to be received at the subscriber end. Application designers should make sure that processing a message more than once does not result in any mistakes or inconsistencies.
AWS Solution Architect Interview Questions and Answers
AWS Glue Interview Questions and Answers
Ques. 11): Describe 10DLC.
Answer:
When delivering SMS to customers in the US, you can utilise the 10-digit long code 10DLC as your originating identification. It can handle up to 100 text messages per second in throughput (TPS). The throughput that is allotted to you is not decided by AWS. Instead, when you sign up for the 10DLC, US carriers assign you throughput. Carriers demand that you supply details about your business and its use cases in order to use 10DLC numbers (also called 10DLC campaigns).
Your business and 10DLC campaigns must be registered in the Amazon Pinpoint dashboard. Once you've successfully registered and a 10DLC is active on your account, You may send SMS using Amazon SNS using this number as the originating identification. Through The Campaign Registry (TCR), a third-party central organisation that carriers utilise to verify brand identity and 10DLC campaign specifics, Amazon assists the registration procedure.
AWS Cloud Interview Questions and Answers
AWS VPC Interview Questions and Answers
Ques. 12): What are FIFO topics on SNS?
Answer:
SNS FIFO topics allow users to publish a message to a topic such that it may be sent to a number of subscribing endpoints, just as conventional SNS topics. SNS FIFO topics are the best option when the distribution of such messages to subscribers has to happen once, in order (first-in-first-out), and you want SNS to handle it. To offer consistent end-to-end message ordering for distributed applications, Amazon SNS FIFO topics send ordered messages to Amazon Simple Queue Service (Amazon SQS) FIFO queues. You may now make your communications architecture simpler and demand less work to execute your high volume, regularly ordered transactions. Example use cases include bank transaction logs, stock tickers, flight trackers, price updates, news broadcasting, and inventory management.
AWS DevOps Cloud Interview Questions and Answers
AWS Aurora Interview Questions and Answers
Ques. 13): Does Amazon SNS comply with HIPAA?
Answer:
Amazon SNS is a HIPAA qualified Service under the AWS HIPAA compliance programme, yes. You may now utilise Amazon SNS to create HIPAA-compliant apps if your Business Associate Agreement (BAA) with AWS has been successfully completed. Contact us for additional information if you don't have a BAA or if you have any inquiries about utilising AWS for your HIPAA-compliant apps. Please be aware that the SMS and mobile push notification features of Amazon SNS are not HIPAA-compliant and cannot be used to communicate protected health information (PHI).
AWS Database Interview Questions and Answers
AWS ActiveMQ Interview Questions and Answers
Ques. 14): Can I send 10DLC messages using small URLs?
Answer:
No. The usage of short URLs offered by sites like bit.ly is not permitted by carriers. Use complete URLs that correspond to your company's domain, according to AWS. As an alternative, you may employ URL shortening providers that offer vanity or custom domains that are directly associated with the brand delivering the messages. Make sure to include these URL samples in the sample messages when registering for the 10DLC campaign.
AWS CloudFormation Interview Questions and Answers
AWS GuardDuty Questions and Answers
Ques. 15): SNS Mobile Push: What Is It?
Answer:
You may use SNS Mobile Push to send push notifications to Android smartphones in China via Baidu Cloud Push, as well as to Apple, Google, Fire OS, and Windows devices. Without launching the programme, a mobile application that has been installed can instantly alert its users to an occurrence by throwing up a notice. For instance, if you download a sports app and turn on push notifications, the app will be able to provide you the most recent score of your preferred team even while it is not open. When you respond positively to the message, the app runs and displays further information.Users’ experiences are similar to receiving an SMS, but with enhanced functionality and at a fraction of the cost.
AWS Control Tower Interview Questions and Answers
AWS Lake Formation Interview Questions and Answers
Ques. 16): How does the owner provide or
remove authorization to post or subscribe to a topic?
Answer:
Developers may easily add and remove rights for a subject using the AddPermission and RemovePermission APIs. However, users should utilise access control rules to manage permissions for conditional access and more sophisticated use cases. Using the AWS Management Console is the simplest method for managing permissions.
AWS Data Pipeline Interview Questions and Answers
Amazon CloudSearch Interview Questions and Answers
Ques. 17): How does Mobile Push interact with SNS topics?
Answer:
Any supported push notification platform as well as any other endpoint type, such as SMS or email, can allow subscriptions for SNS topics. Every endpoint that has subscribed to the subject will get identical copies of any notifications you post to it. The publish will fail if it exceeds the maximum payload size set by the relevant push notifications platform if you utilise platform-specific payloads to determine the precise payload delivered to each push platform.
AWS Transit Gateway Interview Questions and Answers
Amazon Detective Interview Questions and Answers
Ques. 18): If my SMS messages are not delivered, am I still charged?
Answer:
If the destination carrier detects that you attempted to send a message to an invalid phone number, you can be charged for unsuccessful delivery. Numerous situations can result in a phone number being invalid, including when it doesn't exist, the recipient's account doesn't have enough credit, or the destination number is a landline.
Amazon EMR Interview Questions and Answers
Amazon OpenSearch Interview Questions and Answers
Ques. 19): Direct addressing is what? How does it function?
Answer:
Instead of delivering the same message to every subscriber to a topic, direct addressing enables you to send alerts directly to a particular endpoint. If you want to send each recipient exactly focused communications, this is helpful. SNS establishes a corresponding endpoint for device tokens when you register them with it. Similar to publishing to a topic, you may publish to the token endpoint. You have the option to directly publish your notification's text or a platform-specific payload that makes use of capabilities unique to that platform, such updating your app's badge count. Only endpoints that receive push notifications are presently able to use direct addressing.
AWS FinSpace Interview Questions and Answers
AWS MSK Interview Questions and Answers
Ques. 20): Which versions of Windows Push
Notifications is Amazon SNS compatible with?
Answer:
All push notification kinds provided by Microsoft WNS and MPNS, including toast, tile, badge, and raw notifications, are supported by SNS. To select the notification type to utilise, use the TYPE message property. SNS will automatically choose toast notifications for Windows platforms when you use preset payloads to deliver the same message to all mobile platforms. When using platform-specific payloads, you must provide a notification type for Windows platforms.
AWS EventBridge Interview Questions and Answers