Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DVA-C02 Topic 3 Question 49 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 49
Topic #: 3
[All DVA-C02 Questions]

A developer is building an ecommerce application that uses multiple AWS Lambda functions. Each function performs a specific step in a customer order workflow, such as order processing and inventory management.

The developer must ensure that the Lambda functions run in a specific order.

Which solution will meet this requirement with the LEAST operational overhead?

Show Suggested Answer Hide Answer
Suggested Answer: C

The requirement here is to ensure that Lambda functions are executed in a specific order. AWS Step Functions is a low-code workflow orchestration service that enables you to sequence AWS services, such as AWS Lambda, into workflows. It is purpose-built for situations like this, where different steps need to be executed in a strict sequence.

AWS Step Functions: Step Functions allows developers to design workflows as state machines, where each state corresponds to a particular function. In this case, the developer can create a Step Functions state machine where each step (order processing, inventory management, etc.) is represented by a Lambda function.

Operational Overhead: Step Functions have very low operational overhead because it natively handles retries, error handling, and function sequencing.

Alternatives:

Amazon SQS (Option A): While SQS can manage message ordering, it requires more manual handling of each step and the logic to sequentially invoke the Lambda functions.

Amazon SNS (Option B): SNS is a pub/sub service and is not designed to handle sequences of Lambda executions.

EventBridge (Option D): EventBridge Scheduler allows you to invoke Lambda functions based on scheduled times, but it doesn't directly support sequencing based on workflow logic. Therefore, AWS Step Functions is the most appropriate solution due to its native orchestration capabilities and minimal operational complexity.


AWS Step Functions documentation

Contribute your Thoughts:

Gracia
1 months ago
Ah, the age-old question of how to wrangle those pesky Lambda functions. Step Functions is the way to go, no doubt. Though I do sometimes wonder if the AWS team just throws darts at a board to name their services.
upvoted 0 times
...
Hui
1 months ago
Hmm, I'm not sure. Option B with SNS seems like a lot of extra work. Why not just use the built-in orchestration tool, Step Functions?
upvoted 0 times
...
Serita
1 months ago
I agree, C is the best solution. It's straightforward and provides a clear way to manage the workflow.
upvoted 0 times
Leah
19 days ago
I think C is a good choice too. It simplifies the process.
upvoted 0 times
...
Jospeh
28 days ago
C) Configure an AWS Step Functions state machine to invoke the Lambda functions in a specific order.
upvoted 0 times
...
...
Josephine
1 months ago
I prefer option A. Configuring an SQS queue seems simpler and more straightforward to me.
upvoted 0 times
...
Lauran
1 months ago
I agree with Leslie. Using Step Functions will ensure the Lambda functions run in the specific order required.
upvoted 0 times
...
Leslie
2 months ago
I think option C is the best solution.
upvoted 0 times
...
Ma
2 months ago
Option C is the way to go. AWS Step Functions makes it easy to orchestrate the Lambda functions in a specific order with minimal overhead.
upvoted 0 times
Option C is definitely the best choice. AWS Step Functions will handle the order of the Lambda functions seamlessly.
upvoted 0 times
...
Lisandra
22 hours ago
Definitely, it will streamline the process without much hassle.
upvoted 0 times
...
Frederick
11 days ago
It sounds like the most efficient solution for this scenario.
upvoted 0 times
...
Chaya
24 days ago
I agree, AWS Step Functions will help keep everything in order.
upvoted 0 times
...
Laine
29 days ago
I think option C is the best choice.
upvoted 0 times
...
...

Save Cancel