exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 132 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 132
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer has discovered that an application responsible for processing messages in an Amazon SQS queue is routinely falling behind. The application is capable of processing multiple messages in one invocation, but is only receiving one message at a time.
What should the developer do to increase the number of messages the application receives?

  • A. Call the ChangeMessageVisibility API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
  • B. Call the AddPermission API to set MaxNumberOfMessages for the ReceiveMessage action to a value greater than the default of 1.
  • C. Call the ReceiveMessage API to set MaxNumberOfMessages to a value greater than the default of 1.
  • D. Call the SetQueueAttributes API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RicardoD
Highly Voted 3 years, 8 months ago
C is the answer One can change the number of messages received in a queue from 1 to 10 messages ate a time, by calling the ReceiveMessage API
upvoted 20 times
...
SD_CS
Most Recent 1 year, 5 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
rcaliandro
2 years ago
Selected Answer: C
C is the correct one. We need to set the parameter "MaxNumberOfMessages" to a value greater then 1 and we can do that by using the ReceiveMessage API
upvoted 1 times
...
sichilam
2 years, 5 months ago
https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue/ ?Action=ReceiveMessage &MaxNumberOfMessages=5 &VisibilityTimeout=15 &AttributeName=All &Expires=2020-04-18T22%3A52%3A43PST &Version=2012-11-05 &AUTHPARAMS
upvoted 1 times
...
JP_PA
3 years, 5 months ago
Selected Answer: C
ANS: C
upvoted 1 times
...
Chinta
3 years, 8 months ago
C is correct
upvoted 1 times
...
requiem
3 years, 9 months ago
answer: C
upvoted 1 times
...
saeidp
3 years, 9 months ago
C is correct Use ReceiveMessage API to retrieve up to 10 messages at a time, from the specified queue.
upvoted 4 times
...
WilsonNF
3 years, 9 months ago
C. Call the ReceiveMessage API to set MaxNumberOfMessages to a value greater than the default of 1. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...