exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 664 discussion

A company has a media catalog with metadata for each item in the catalog. Different types of metadata are extracted from the media items by an application running on AWS Lambda. Metadata is extracted according to a number of rules with the output stored in an Amazon ElastiCache for Redis cluster. The extraction process is done in batches and takes around 40 minutes to complete.
The update process is triggered manually whenever the metadata extraction rules change.
The company wants to reduce the amount of time it takes to extract metadata from its media catalog. To achieve this, a solutions architect has split the single metadata extraction Lambda function into a Lambda function for each type of metadata.
Which additional steps should the solutions architect take to meet the requirements?

  • A. Create an AWS Step Functions workflow to run the Lambda functions in parallel. Create another Step Functions workflow that retrieves a list of media items and executes a metadata extraction workflow for each one.
  • B. Create an AWS Batch compute environment for each Lambda function. Configure an AWS Batch job queue for the compute environment. Create a Lambda function to retrieve a list of media items and write each item to the job queue.
  • C. Create an AWS Step Functions workflow to run the Lambda functions in parallel. Create a Lambda function to retrieve a list of media items and write each item to an Amazon SQS queue. Configure the SQS queue as an input to the Step Functions workflow.
  • D. Create a Lambda function to retrieve a list of media items and write each item to an Amazon SQS queue. Subscribe the metadata extraction Lambda functions to the SQS queue with a large batch size.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
avland
Highly Voted 3 years, 8 months ago
A. B is nearly nonsensical with how it uses Batch. C wouldn't work since Step Functions operate with JSON inputs/outputs. SQS wouldn't work as an input quite like that. D wouldn't work because the metadata extraction Lambda functions are non-identical workers, so one function will pull a message containing the media item and process it, but then the other functions won't see that item and process their part of the metadata for it. For something like that to work, you'd actually want a separate SQS queue for each type of metadata function, and use an SNS topic to publish each item to each queue.
upvoted 18 times
alexmena1981
3 years, 8 months ago
You are incorrect,check https://www.youtube.com/watch?v=tPYa1r_cZ2E , Ans. C
upvoted 1 times
MrCarter
3 years, 7 months ago
Ans AAAAAAAA
upvoted 1 times
...
gbrnq
3 years, 8 months ago
That video shows how to trigger SQS from SF.. so it’s not relevant. Ans A
upvoted 4 times
...
MrCarter
3 years, 7 months ago
No, you are incorrect, SQS cannot be the input of an AWS Step Functions workflow.
upvoted 5 times
...
...
dmscountera
2 years, 7 months ago
https://docs.aws.amazon.com/step-functions/latest/dg/concepts-invoke-sfn.html Points to A
upvoted 1 times
...
Jesuisleon
2 years ago
SQS can trigger aws step function, see https://serverlessland.com/patterns/eventbridge-pipes-sqs-to-step-functions-cdk-dotnet
upvoted 1 times
...
...
liono
Highly Voted 3 years, 8 months ago
C seems to be correct answer
upvoted 12 times
keos
3 years, 8 months ago
SQS queue cannot trigger Step function
upvoted 9 times
...
...
hwhap
Most Recent 2 years ago
Think it's C. Step Functio Call Pack Pattern. https://aws.amazon.com/getting-started/hands-on/orchestrate-microservices-with-message-queues-on-step-functions/
upvoted 1 times
marszalekm
1 year, 3 months ago
but in the questions says "Configure the SQS queue as an input to the Step Functions workflow.", in your example you have opposite situation
upvoted 1 times
...
...
TonySu
2 years, 6 months ago
I go with C
upvoted 1 times
...
[Removed]
2 years, 7 months ago
Selected Answer: A
Workflow task can trigger other workflows: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-nested-workflows.html
upvoted 1 times
...
Enigmaaaaaa
2 years, 11 months ago
Selected Answer: A
Only A and C are valid but Answer is A since SQS cannot trigger SFW ... https://docs.aws.amazon.com/step-functions/latest/dg/concepts-invoke-sfn.html Only lambda and another SF can do it (as described in A)
upvoted 3 times
...
Dohecadi
3 years, 2 months ago
Selected Answer: A
C is wrong. SQS has to start a Lambda funtion first, which in turn will start Step Function.
upvoted 1 times
...
frankzeng
3 years, 4 months ago
C. when there are new items in the media catalog, a lambda function retrieve the list of media items and write the item information into SQS. The step function workflow read the item from SQS and run the LAMBDA functions in parallel.
upvoted 2 times
...
wem
3 years, 5 months ago
Ans C https://www.youtube.com/watch?v=tPYa1r_cZ2E
upvoted 2 times
wassb
2 years, 7 months ago
this step function does broadcast to SQS ... Useless LINK
upvoted 1 times
...
...
AzureDP900
3 years, 6 months ago
C The best solution presented is to use a combination of AWS Step Functions and Amazon SQS. This results in each Lambda function being able to run in parallel and use a queue for buffering the jobs. CORRECT: “Create an AWS Step Functions workflow to run the Lambda functions in parallel. Create a Lambda function to retrieve a list of files and write each item to an Amazon SQS queue. Configure the SQS queue as an input to the Step Functions workflow” is the correct answer
upvoted 2 times
...
AzureDP900
3 years, 6 months ago
c is correct
upvoted 1 times
...
tiana528
3 years, 6 months ago
D. It is simple, straightforward. Stepfunctions is not needed here. lambda triggered by SQS can run in parallel pretty well.
upvoted 1 times
...
acloudguru
3 years, 6 months ago
Selected Answer: A
SQS needs lambda to trigger step function, can not do it directly. So C is not right.
upvoted 2 times
...
StelSen
3 years, 7 months ago
Option-C. Taken from AWS Website. https://docs.aws.amazon.com/step-functions/latest/dg/sample-project-express-high-volume-sqs.html (We can process items from SQS).
upvoted 2 times
...
andylogan
3 years, 7 months ago
It's A - SQS queue is not an input to the Step Functions workflow
upvoted 2 times
...
tgv
3 years, 7 months ago
AAA ---
upvoted 2 times
...
blackgamer
3 years, 7 months ago
I will go with A.
upvoted 1 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 ...