Other AWS Services Flashcards Preview

AWS Certified Developer Associate 2018 > Other AWS Services > Flashcards

Flashcards in Other AWS Services Deck (23)
Loading flashcards...
1
Q

Which Amazon service can you use in conjunction with SQS to “fan out” SQS messages to multiple queues.

SES

ElastiCache

SNS

SWF

A

SNS

2
Q

Unlike Cloud Formation, the use of Elastic Beanstalk is not free. And, in addition, you must pay for the resources it provisions.

False

True

A

False

3
Q

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

A

Configure a FIFO SQS queue and enable long polling

4
Q

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.

A

Enable SQS Long Polling.

5
Q

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

A

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

6
Q

Elastic Beanstalk is object based storage.

False

True

A

False

7
Q

Which of these is a protocol NOT supported by SNS:

HTTP

Email-JSON

FTP

Email

A

FTP

8
Q

What is the maximum retention period for an SQS message?

14 days

1 day

12 hours

1 hour

A

14 days

9
Q

You can use SNS in conjunction with SQS to fan a single message out to multiple SQS queues.

False

True

A

True

10
Q

An SQS message can be delivered multiple times.

True

False

A

True

11
Q

SNS messages cannot be customized by protocol type.

False

True

A

False

12
Q

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.

A

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.

13
Q

What is the maximum long poll time out?

1 hour

5 minutes

20 seconds

50 seconds

A

20 Sec

14
Q

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

A topic

15
Q

SNS is pull-based rather than push-based

True

False

A

False

16
Q

SQS was the first service on the AWS platform?

True

False

A

True

17
Q

What is the maximum visibility timeout of an SQS message in a queue?

14 days

12 hours

1 day

1 hour

A

12 hours

18
Q

What is the default visibility timeout for a message in an SQS queue?

15 minutes

1 year

1 minute

30 seconds

A

30 sec

19
Q

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.

A

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.

20
Q

How large can an SQS message be?

256KB

128KB

64KB

512KB

A

256KB

21
Q

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

A

Jetty for Jbos applications

22
Q

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

A

ChangeMessageVisibility

23
Q

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

A

AWS Storage Gateway