Premium

AWS Certified Developer - Associate Questions and Answers (Dumps and Practice Questions)



Question : You have defined a SQS queue and any user can send the message in it,
and your application reads the message from the queue but before processing this message
you want to validate whether it is a valid ip or not.
So which of the following attribute from message will give you the ip address.
  : You have defined a SQS queue and any user can send the message in it,
1. ip
2. ipaddress
3. SenderId
4. allipaddress
5. SenderIds


Correct Answer : 3

Explanation: Amazon SQS provides the IP address when the AWS account ID is not available such as when an anonymous user sends a message. SenderId"
attribute value of a message in the case of anonymous access






Question : You want to read a message from the SQS queue, however you want the behaviour like blocking queue means until
the message is available in the queue, it shpuld not return. Which of the following strategy will help for above scenerio ?

 :  You want to read a message from the SQS queue, however you want the behaviour like blocking queue means until
1. SQS long polling
2. SQS short polling
3. Creating SQS blocking queue
4. 1 and 2
5. All 1,2 and 3


Correct Answer : 1

Explanation: SQS long polling is a new way to retrieve messages from your SQS queues. While the traditional SQS short polling returns immediately, even if the queue being polled is empty, SQS long polling doesnt return a response until a message arrives in the queue, or the long poll times out. SQS long polling makes it easy and inexpensive to retrieve messages from your SQS queue as soon as they are available.
In almost all cases, SQS long polling is preferable to SQS short polling. Long polling requests allow your queue consumers to receive messages as soon as they arrive in your queue, while reducing the number of empty ReceiveMessageResponses you encounter. Combined together, SQS long polling results in higher performance at reduced cost for the majority of use cases. However, if your application is written to expect an immediate response from a ReceiveMessage call, you may not be able to take advantage of long polling without some application modifications. For example, if your application has a single thread polling multiple queues, switching from short polling to long polling will likely not work, as the single thread will wait for the long poll timeout on any empty queues, delaying the processing of any queues which may contain messages. In such an application, it is recommended that a single thread be used to process only one queue, allowing for the application to take advantage of the benefits SQS long polling provides.

In general, the maximum long poll timeout of 20 seconds should be used. Higher long poll timeout values will reduce the number of empty ReceiveMessageResponses returned, so try to set your long poll timeout as high as possible. If the 20 second maximum does not work for your application, you can choose a shorter long poll timeout, down to as low as 1 second. All of the AWS SDKs work with 20 second long polls by default. If you are not using an AWS SDK to access SQS, or if youve specially configured your AWS SDK to have a shorter timeout, you may need to modify your SQS client to allow for longer requests or use a shorter long poll timeout.




Question : What are the features of the AmazonSQSBufferedAsync ?

  : What are the features of the AmazonSQSBufferedAsync ?
1. AmazonSQSBufferedAsync client supports automatic batching of multiple SendMessage, DeleteMessage
2. AmazonSQSBufferedAsync client supports prefetching of messages into a local buffer
3. AmazonSQSBufferedAsync client supports prefetching of messages into a file in your application (So its durable)
4. 1 and 2
5. 1 and 3


Correct Answer : 4


Explanation: The AmazonSQSBufferedAsync client provides a new implementation for the AmazonSQSAsync client interface that adds several important features. First, the AmazonSQSBufferedAsync client supports automatic batching of multiple SendMessage, DeleteMessage or ChangeMessageVisibility requests into batches of each type, without any changes required by the application. Second, the AmazonSQSBufferedAsync client supports prefetching of messages into a local buffer, which allows your application to immediately process messages from SQS without waiting for them to be retrieved from SQS. Combined together, automatic batching and prefetching increases the throughput and reduces the latency of your application, while saving you money by making fewer SQS requests.




Related Questions


Question : Select the correct statement regarding to get the count of messages in a queue
  : Select the correct statement regarding to get the count of messages in a queue
1. You can view the number of messages that are visible
2. you can view the number of messages that are not visible
3. you can view the total number of messages that are visible and not visible (By Single request)
4. 1 and 2
5. 1 2 and 3


Question : What is "visibility timeout" in Amazon SQS queue ?
  : What is
1. is a period of time during which Amazon SQS prevents other consuming components from receiving and processing that message, once it is processed by your component
2. is a period after submitting the message to queue will not be available to consumer because queue parse that message during this time.
3. is a period after this message will be deleted
4. is a period of till the message will remain in the queue


Question : EC instances are launched from Amazon Machine images (AMIs). A given public AMI can:
  : EC instances are launched from Amazon Machine images (AMIs). A given public AMI can:
1. be used to launch EC2 Instances in any AWS region.
2. only be used to launch EC2 instances in the same country as the AMI is stored.

3. only be used to launch EC2 instances in the same AWS region as the AMI is stored.
4. only be used to launch EC2 instances in the same AWS availability zone as the AMI is stored



Question : You are writing to a DynamoDB table and receive the following exception:"
ProvisionedThroughputExceededException". though according to your Cloudwatch metrics
for the table, you are not exceeding your provisioned throughput.
What could be an explanation for this?
  : You are writing to a DynamoDB table and receive the following exception:
1. You haven't provisioned enough DynamoDB storage instances
2. You're exceeding your capacity on a particular Range Key
3. You're exceeding your capacity on a particular Hash Key
4. You're exceeding your capacity on a particular Sort Key
5. You haven't configured DynamoDB Auto Scaling triggers





Question :

If you're executing code against AWS on an EC2 instance that is assigned an IAM role, which of the following is a true statement?
  :
1. The code will assume the same permissions as the EC2 role
2. The code must have AWS access keys in order to execute
3. Only Python code can assume
4. IAM roles None of the above




Question : Company C is currently hosting their corporate site in an Amazon S bucket with Static
Website Hosting enabled. Currently, when visitors go to http://www.companyc.com the
index.html page is returned. Company C now would like a new page welcome.html to be
returned when a visitor enters http://www.companyc.com in the browser.
Which of the following steps will allow Company C to meet this requirement? Choose 2 answers

A. Upload an html page named welcome.html to their S3 bucket
B. Create a welcome subfolder in their S3 bucket
C. Set the Index Document property to welcome.html
D. Move the index.html page to a welcome subfolder
E. Set the Error Document property to welcome.html
 : Company C is currently hosting their corporate site in an Amazon S bucket with Static
1. A,B
2. B,C
3. C,E
4. B,D
5. A,C