Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 290 discussion

A company runs an application on AWS. The application uses an AWS Lambda function that is configured with an Amazon Simple Queue Service (Amazon SQS) queue called high priority queue as the event source. A developer is updating the Lambda function with another SQS queue called low priority queue as the event source. The Lambda function must always read up to 10 simultaneous messages from the high priority queue before processing messages from low priority queue. The Lambda function must be limited to 100 simultaneous invocations.

Which solution will meet these requirements?

  • A. Set the event source mapping batch size to 10 for the high priority queue and to 90 for the low priority queue.
  • B. Set the delivery delay to 0 seconds for the high priority queue and to 10 seconds for the low priority queue.
  • C. Set the event source mapping maximum concurrency to 10 for the high priority queue and to 90 for the low priority queue.
  • D. Set the event source mapping batch window to 10 for the high priority queue and to 90 for the low priority queue.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
albert_kuo
1 week, 1 day ago
Selected Answer: C
Resources: HighPriorityEventSourceMapping: Type: AWS::Lambda::EventSourceMapping Properties: BatchSize: 10 MaximumConcurrency: 10 EventSourceArn: arn:aws:sqs:region:account-id:high-priority-queue FunctionName: myLambdaFunction LowPriorityEventSourceMapping: Type: AWS::Lambda::EventSourceMapping Properties: BatchSize: 10 MaximumConcurrency: 90 EventSourceArn: arn:aws:sqs:region:account-id:low-priority-queue FunctionName: myLambdaFunction
upvoted 1 times
...
preachr
2 months ago
Selected Answer: C
You can use the maximum concurrency setting to control scaling behavior for your SQS event sources. The maximum concurrency setting limits the number of concurrent instances of the function that an Amazon SQS event source can invoke. Maximum concurrency is an event source-level setting. If you have multiple Amazon SQS event sources mapped to one function, each event source can have a separate maximum concurrency setting. You can use maximum concurrency to prevent one queue from using all of the function's reserved concurrency or the rest of the account's concurrency quota. There is no charge for configuring maximum concurrency on an Amazon SQS event source.
upvoted 2 times
...
65703c1
6 months ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
KarBiswa
8 months, 3 weeks ago
Selected Answer: C
https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency
upvoted 2 times
...
monishvster
9 months ago
Selected Answer: C
Should be C
upvoted 2 times
...
CrescentShared
9 months, 1 week ago
Selected Answer: C
None of them seems to be guarantee the requirement. Set the reserved concurrency on the Lambda function to 100 to limit the total invocations across all triggers. Configure the event source mapping for the high priority queue to use a maximum concurrency that ensures its messages are processed first. This could be most of the reserved concurrency (but not all, to allow for some processing of the low priority queue). Configure the event source mapping for the low priority queue with a smaller maximum concurrency to ensure it doesn't starve the high priority queue of Lambda resources.
upvoted 2 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 ...