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 DVA-C02 Exam - Topic 3 Question 49 Discussion

Posted by Reiko on Apr 09, 2025 at 12:19 PM

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?

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

Get Premium DVA-C02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
JE
Jeannine 10 months ago
Totally agree with C, Step Functions are super reliable!
DO
Dorian 10 months ago
Wait, can EventBridge really handle this? Sounds iffy.
CA
Catherin 11 months ago
B seems like a stretch for sequential tasks.
LO
Lottie 11 months ago
I think A could work too, but it feels more complex.
FE
Felix 11 months ago
Option C is the best choice for order control.
MA
Mammie 11 months ago
EventBridge Scheduler sounds interesting, but I think it might not be the best fit for sequential execution. I’d probably go with Step Functions.
LA
Lashaun 11 months ago
I feel like SNS is more for broadcasting messages rather than ensuring order. So, I’m leaning away from option B.
LA
Lashandra 12 months ago
I’m not entirely sure, but I think using SQS could work too. It’s just that it might add more complexity with message handling.
JI
Jina 12 months ago
I remember studying about AWS Step Functions and how they can manage workflows. I think option C might be the best choice for ensuring the functions run in order.
SH
Shenika 1 year ago
I'm a bit confused by all these AWS service options. Can we just use a simple scheduler (option D) to run the Lambda functions in order? That seems like the easiest approach to me, but I'm not sure if it's the most robust solution.
TE
Tenesha 1 year ago
Okay, I think I've got it. The Step Functions state machine (option C) is definitely the cleanest solution here. It will let us define the exact order of the Lambda function invocations, and it's built for this kind of workflow orchestration use case. I'm going with that one.
RO
Rossana 1 year ago
Hmm, I'm a bit unsure about this one. The SQS queue solution (option A) seems like it could work, but I'm not sure how easy it would be to manage the message order. The SNS topic (option B) also seems like a possibility, but the subscription filters might get a bit tricky.
DE
Delisa 1 year ago
This looks like a classic workflow orchestration problem. I think the AWS Step Functions state machine solution (option C) is the way to go here. It's designed specifically for this type of use case and will give us the most control over the order of execution.
GR
Gracia 1 year 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.
BE
Bettina 1 year ago
↳ replying to Gracia
Yeah, Step Functions seem like the most efficient solution for managing the order of Lambda functions.
CR
Cristy 1 year ago
↳ replying to Gracia
I think using Amazon SQS queue to run Lambda functions sequentially would be the best option.
RY
Ryan 1 year ago
↳ replying to Gracia
I agree, Step Functions is definitely the way to go for ordering Lambda functions.
HU
Hui 1 year 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?
SE
Serita 1 year ago
I agree, C is the best solution. It's straightforward and provides a clear way to manage the workflow.
DO
Dolores 1 year ago
↳ replying to Serita
Agreed, C is straightforward and easy to understand.
LE
Lettie 1 year ago
↳ replying to Serita
Definitely, C seems like the most efficient option for managing the workflow.
LE
Leah 1 year ago
↳ replying to Serita
I think C is a good choice too. It simplifies the process.
JO
Jospeh 1 year ago
↳ replying to Serita
C) Configure an AWS Step Functions state machine to invoke the Lambda functions in a specific order.
JO
Josephine 2 years ago
I prefer option A. Configuring an SQS queue seems simpler and more straightforward to me.
LA
Lauran 2 years ago
I agree with Leslie. Using Step Functions will ensure the Lambda functions run in the specific order required.
LE
Leslie 2 years ago
I think option C is the best solution.
MA
Ma 2 years 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.
GE
Geraldo 1 year ago
↳ replying to Ma
Definitely, Step Functions take care of the orchestration for you, making it a great solution for this scenario.
EM
Emelda 1 year ago
↳ replying to Ma
It's a more efficient way to ensure the functions run in the correct order without much manual intervention.
NE
Nettie 1 year ago
↳ replying to Ma
I agree, using Step Functions simplifies the process and reduces operational overhead.
FL
Florinda 1 year ago
↳ replying to Ma
Option C is definitely the best choice. AWS Step Functions will handle the order of the Lambda functions seamlessly.
LI
Lisandra 1 year ago
↳ replying to Ma
Definitely, it will streamline the process without much hassle.
FR
Frederick 1 year ago
↳ replying to Ma
It sounds like the most efficient solution for this scenario.
CH
Chaya 1 year ago
↳ replying to Ma
I agree, AWS Step Functions will help keep everything in order.
LA
Laine 1 year ago
↳ replying to Ma
I think option C is the best choice.
0/2000 characters

Save Cancel