Test Questions & Answers
1.AWS SQS long polling allows the SQS service to wait until a message
is available in the queue before sending a response?
ANS true
2.A visibility timeout is a period of time during which AWS SQS prevents
other consuming components from receiving and processing the message?
ANS true
3.What AWS service can you use to "fan out" SQS messages to
multiple queues?
ANS SNS
4.(SQS) What is the maximum long poll timeout?
ANS 20 seconds
5.You have a fleet of EC2 instances that are constantly polling empty SQS
queues which is burning CPU complete cycles. What should you do?
ANS Enable SQS long polling
6.What is the default SQS visibility time out?
, ANS 30 seconds
7.EC2 instances download jobs from SQS queue, but are taking too long
to process. What api call can you use to the length of time to process
jobs?
ANS – Change-Message-Visibility
8.(SQS) You are designing a new app which processes payments and
delivers promotional emails to customers. Your need to ensure that the
payment process takes priority over the creation of emails. What is the
best way to achieve this?
ANS Use 2 SQS queues. Poll that payment queue first.
9.An SQS message can NOT be delivered multiple times?
ANS False, SQS mes- sages can be delivered multiple times
10.What is the default visibility timeout for SQS?
ANS 30 seconds
11.How long can SQS messages be?
ANS Messages can contain up to 256 KB of text in any format
12.SQS was the second service on AWS?
ANS False, SQS was the first
,13.Dynoma-DB writes are measured in 2 KB per write?
ANS False, they are mea- sured in 1 KB per write.
14.What are the two consistency models used when reading data from
Dy- namoDB?
ANS Eventually Consistent and Strongly consistent
15.DynamoDB is a NoSQL database by AWS?
ANS True
16.You have an app that needs 25 items of 13KB per second. Your app
uses STRONGLY consistent reads. What should the throughput be set to?
(Math problem)
ANS Calculate read capacity units (items up to 4 KB in size)
Multiply number of items by read capacity
units Do NOT divide by 2 because strongly
consistent Answer; 100
17.One read capacity unit represents one strongly consistent read per
sec- ond, or two eventually consistent reads per second, for items up to 4
KB in size?
ANS True
18.When you create a table, you specify how much provisioned
throughput capacity you want to reserve for reads and writes?
, ANS True
19.In DynamoDB, you specify provisioned throughput requirements in
terms of capacity units?
ANS True
20.One read capacity unit represents one X type of read per second, or two
Y type of read per second?
ANS One strongly consistent read per second. Two eventually consistent
reads per second. For items up to 4 KB in size.
21.Application needs to read 25 items of 13KB per second. App uses EVEN-
TUALLY consistent reads. What should you set read throughput to?
ANS Calculate read capacity units (items up to 4 KB in size).
Multiply number of items by read capacity
units. Divide by two because EVENTUALLY
consistent. Answer
ANS 50
22.A global secondary index contains a selection of attributes from the
table, but are organized by a primary key that is different from the table's?
(T/F)
ANS True
23.DynamoDB local secondary indexes are fixed at 10 per table?