SAP-C02 exam dumps

SAP-C02 practice question 677 of 678

AWS Certified Solutions Architect - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAP-C02 Question 677

Select 2

A video streaming company processes incoming video uploads and uses a workflow to transcode videos into multiple formats. The workflow is triggered whenever a video file is uploaded to an Amazon S3 bucket. The architecture must ensure that transcoding jobs are processed in sequence, and a notification is sent to the user once the transcoding is complete. Which solution should you implement to meet these requirements?

  1. A

    Use Amazon S3 Event Notifications to trigger an AWS Lambda function that initiates an Amazon SQS FIFO queue. Use AWS Step Functions to process the transcoding workflow sequentially, and send notifications using Amazon SNS after the workflow is complete.

  2. B

    Use Amazon S3 Event Notifications to directly trigger an AWS Step Functions workflow. Configure the workflow to handle the transcoding and send notifications using Amazon SNS.

  3. C

    Use Amazon S3 Event Notifications to trigger an Amazon EventBridge rule, which sends a message to an Amazon SQS FIFO queue. Use AWS Lambda to poll the queue and trigger Amazon SNS for notifying users after processing.

  4. D

    Use Amazon S3 Event Notifications to trigger an AWS Lambda function that directly processes the transcoding workflow. Use the same Lambda function to send notifications using Amazon SNS after transcoding completes.

Show answer and explanation

Correct answers: A, B

Explanation

Both Option 1 and Option 2 are correct. Option 1 uses Amazon SQS FIFO and AWS Step Functions to ensure sequential processing and orchestration, while Option 2 directly uses AWS Step Functions triggered by Amazon S3. Both approaches satisfy the requirements of sequential processing, workflow orchestration, and user notification. Option 3 introduces unnecessary complexity, and Option 4 does not meet the requirement for job sequence handling.

  • A. Correct.

    This is a valid solution. Amazon SQS FIFO ensures the order of transcoding jobs, and AWS Step Functions can handle the sequential workflow. Amazon SNS is an appropriate choice for sending notifications.

  • B. Correct.

    This is a valid solution. Amazon S3 Event Notifications can directly trigger AWS Step Functions, which can orchestrate the workflow and use Amazon SNS for notifications. However, this assumes the workflow doesn't require strict FIFO ordering managed by SQS.

  • C. Incorrect.

    This solution is overly complex and doesn't leverage AWS Step Functions for workflow orchestration. Using EventBridge here adds unnecessary complexity without addressing the need for sequential processing.

  • D. Incorrect.

    This solution doesn't ensure the sequential processing of transcoding jobs. While Lambda can handle the workflow, it doesn't guarantee job order, which is a requirement.

Timed practice exam

Take a SAP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam