Other AWS Services Flashcards
Which Amazon service can you use in conjunction with SQS to “fan out” SQS messages to multiple queues.
SES
ElastiCache
SNS
SWF
SNS
Unlike Cloud Formation, the use of Elastic Beanstalk is not free. And, in addition, you must pay for the resources it provisions.
False
True
False
You have been asked to decouple an application by utilising SQS. The application dictates that messages on the queue can be delivered more than once, but must be delivered in the order that they have arrived, and also must allow for efficient, repeated polling of the queue. Which of the following options are most suitable?
Configure a standard SQS queue and use long polling
Configure a FIFO SQS queue and enable long polling
Configure a FIFO SQS queue and enable short polling
Configure a standard SQS queue and use default polling
Configure a FIFO SQS queue and enable long polling
You have a fleet of EC2 instances that are constantly polling empty SQS queues, burning CPU cycles and costing your company money. What should you do?
Delete the entire EC2 fleet so that they no longer poll the queue.
Enable SQS Long Polling.
Consider using ElastiCache to cache the messages, rather than SQS.
Enable SQS Short Polling.
Enable SQS Long Polling.
AWS provides a number of security related managed services. From the options below, select which AWS service is related to protecting your infrastructure from which security issue. (Choose 4)
AWS Shield protects from SQL Injection attacks
AWS WAF blocks IP addresses based on rules
AWS WAF protects from Cross Site Scripting attacks
AWS Shield protects from Distributed Denial of Service attacks
Amazon Macie uses Machine Learning to protect sensitive data
AWS WAF blocks IP addresses based on rules
AWS WAF protects from Cross Site Scripting attacks
AWS Shield protects from Distributed Denial of Service attacks
Amazon Macie uses Machine Learning to protect sensitive data
Elastic Beanstalk is object based storage.
False
True
False
Which of these is a protocol NOT supported by SNS:
HTTP
Email-JSON
FTP
FTP
What is the maximum retention period for an SQS message?
14 days
1 day
12 hours
1 hour
14 days
You can use SNS in conjunction with SQS to fan a single message out to multiple SQS queues.
False
True
True
An SQS message can be delivered multiple times.
True
False
True
SNS messages cannot be customized by protocol type.
False
True
False
You are designing a new application that processes payments and delivers promotional emails to customers. You need to ensure that the payment process takes priority over the creation and delivery of emails. How might you use SQS to achieve this.
Use 2 SQS queues for the platform. Have the EC2 fleet poll the promotional emails SQS queue first. If this queue is empty, then poll the payment emails queue.
Use 1 SQS queue for the platform. Use the SetPriority API call to ensure that all payment SQS messages take priority over the promotional email messages.
Use 2 SQS queues for the platform. Have the EC2 fleet poll the payment SQS queue first. If this queue is empty, then poll the promotional emails queue.
Use 1 SQS queue for the platform. Use the HighPriority API call to ensure that all payment SQS messages take priority over the promotional email messages.
Use 2 SQS queues for the platform. Have the EC2 fleet poll the payment SQS queue first. If this queue is empty, then poll the promotional emails queue.
What is the maximum long poll time out?
1 hour
5 minutes
20 seconds
50 seconds
20 Sec
You have a list of email addresses to which you need to push emails on a periodic basis. What do you subscribe them to?
A Subreddit
A Subject
A Message
A topic
A topic
SNS is pull-based rather than push-based
True
False
False
SQS was the first service on the AWS platform?
True
False
True
What is the maximum visibility timeout of an SQS message in a queue?
14 days
12 hours
1 day
1 hour
12 hours
What is the default visibility timeout for a message in an SQS queue?
15 minutes
1 year
1 minute
30 seconds
30 sec
You run a video-hosting website with two types of members: premium, fee-paying members; and free members. Each video that is uploaded is processed by a fleet of EC2 instances, which poll an SQS queue as videos are uploaded. However, you need to ensure that the videos uploaded by your premium, fee-paying members have a higher priority than those of your free members. How might you work with SQS to endure priority treatment of the premium members’ videos?
SQS allows you to set priorities on individual items within the queue, so simply set the fee paying members at a higher priority than your free members.
SQS would not be suitable for this scenario. It would be much better to use SNS to encode the videos.
Create two SQS queues — one for premium members, and one for free members. Program your EC2 fleet to poll the premium queue first and, if empty, to then poll your free members SQS queue.
Create two SQS queues — one for premium members, and one for free members. Program your EC2 fleet to poll the premium queue first and, if empty, to then poll your free members SQS queue.
How large can an SQS message be?
256KB
128KB
64KB
512KB
256KB
What languages and development stacks are not currently supported by AWS Elastic Beanstalk?
Jetty for Jbos applications
Apache HTTP Server for PHP applications
Passenger for Ruby applications
Apache Tomcat for Java applications
Jetty for Jbos applications
Your EC2 instances download jobs from an SQS queue. However, they are taking too long to process the messages. What API call can you use to extend the length of time to process the jobs?
ChangeMessageVisibility
ExtendMessageTime
AlterMessageTime
SetMessageVisibility
ChangeMessageVisibility
Which native AWS service will act as a file system mounted on an S3 bucket?
Amazon Elastic File System
AWS Storage Gateway
Amazon S3
Amazon Elastic Block Store
AWS Storage Gateway