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 SAP-C02 Topic 1 Question 60 Discussion

Actual exam question for Amazon's SAP-C02 exam
Question #: 60
Topic #: 1
[All SAP-C02 Questions]

A video processing company has an application that downloads images from an Amazon S3 bucket, processes the images, stores a transformed image in a second S3 bucket, and updates metadata about the image in an Amazon DynamoDB table. The application is written in Node.js and runs by using an AWS Lambda function. The Lambda function is invoked when a new image is uploaded to Amazon S3.

The application ran without incident for a while. However, the size of the images has grown significantly. The Lambda function is now failing frequently with timeout errors. The function timeout is set to its maximum value. A solutions architect needs to refactor the application's architecture to prevent invocation failures. The company does not want to manage the underlying infrastructure.

Which combination of steps should the solutions architect take to meet these requirements? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

A . Modify the application deployment by building a Docker image that contains the application code. Publish the image to Amazon Elastic Container Registry (Amazon ECR). - This step is necessary to package the application code in a container and make it available for running on ECS. B. Create a new Amazon Elastic Container Service (Amazon ECS) task definition with a compatibility type of AWS Fargate. Configure the task definition to use the new image in Amazon Elastic Container Registry (Amazon ECR). Adjust the Lambda function to invoke an ECS task by using the ECS taskdefinition when a new file arrives in Amazon S3.


Contribute your Thoughts:

Lawrence
2 days ago
Hmm, this is an interesting one. I think the key is to find a way to scale the application without having to manage the underlying infrastructure. The options that involve using Fargate or ECS seem promising, since those are managed services. I'll need to weigh the pros and cons of each approach.
upvoted 0 times
...
Kassandra
8 days ago
I'm a bit confused by this question. It seems like we need to refactor the application's architecture to prevent invocation failures, but the requirements are a bit unclear to me. I'll need to read through the question carefully and think about the different options.
upvoted 0 times
...
Dean
13 days ago
I vaguely remember that using Docker images with ECS could help with scaling, but I’m uncertain if it’s necessary to switch from Lambda altogether.
upvoted 0 times
...
Twanna
19 days ago
I practiced a similar question where we had to refactor a Lambda function. I feel like using EFS could help with large image processing, but I’m not confident about the RDS part.
upvoted 0 times
...
Jacob
24 days ago
I think using AWS Step Functions could help manage the workflow better, but I can't recall if it would actually solve the timeout issue.
upvoted 0 times
...
Michell
1 month ago
I remember we discussed how Lambda has limitations on execution time, so moving to ECS might be a good option. I'm just not sure if Fargate is the best choice here.
upvoted 0 times
...

Save Cancel