exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

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

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 63 discussion

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.)

  • 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).
  • 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 task definition when a new file arrives in Amazon S3.
  • C. Create an AWS Step Functions state machine with a Parallel state to invoke the Lambda function. Increase the provisioned concurrency of the Lambda function.
  • D. Create a new Amazon Elastic Container Service (Amazon ECS) task definition with a compatibility type of Amazon EC2. 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 task definition when a new file arrives in Amazon S3.
  • E. Modify the application to store images on Amazon Elastic File System (Amazon EFS) and to store metadata on an Amazon RDS DB instance. Adjust the Lambda function to mount the EFS file share.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
zhangyu20000
Highly Voted 2 years ago
A: create Docker image and save it to ECR B: run this image on Fargate No answer should have Lambda the will be time out
upvoted 25 times
GabrielShiao
2 weeks, 4 days ago
While voting A and B, B doesn't really work because Lambda has reached the 15-minute timeout limitation.
upvoted 1 times
...
masetromain
2 years ago
You are correct, both options A and B involve creating a Docker image of the application code and running it on Amazon Elastic Container Service (ECS) using either Fargate or EC2 as the launch type. These options would allow for more control over the resources allocated to the application and potentially prevent timeout errors. Option A is necessary to create the image and store it in a registry, and option B is necessary to run the image on Fargate which is a managed container orchestration service that eliminates the need for provisioning and scaling of the underlying infrastructure.
upvoted 9 times
...
...
masetromain
Highly Voted 2 years ago
Selected Answer: AB
The correct answer is A and 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 task definition when a new file arrives in Amazon S3. - This step is necessary to run the containerized application on Fargate, which is a fully managed container orchestration service that eliminates the need to provision and scale the underlying infrastructure.
upvoted 14 times
masetromain
2 years ago
Option C and E are not correct because they don't address the problem of timeout errors. AWS Step Functions and Amazon Elastic File System (EFS) are services that can be used to coordinate and manage workflows and file storage respectively, but they don't help with the specific problem of the Lambda function timing out. Option D is not correct because AWS Fargate is a serverless compute engine for containers that eliminates the need for provisioning and scaling the underlying infrastructure. It means that the company does not have to manage the underlying infrastructure, which is what the company wants.
upvoted 6 times
...
...
amministrazione
Most Recent 5 months, 1 week ago
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). 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 task definition when a new file arrives in Amazon S3.
upvoted 1 times
...
MAZIADI
5 months, 3 weeks ago
Selected Answer: AB
To be honest, I don't trust the examtopic answers anymore, we should only rely on most voted ones
upvoted 1 times
...
gofavad926
10 months, 3 weeks ago
Selected Answer: AB
AB, ECR + ECS Margate
upvoted 1 times
...
Ak47g
1 year, 1 month ago
Selected Answer: AB
A: create Docker image and save it to ECR B: run this image on Fargate
upvoted 1 times
...
Nicoben
1 year, 1 month ago
Selected Answer: AB
A: create docker image and store in on ECR B: run it on a AWS-managed infrastructure (as required)
upvoted 1 times
...
blackgamer
1 year, 3 months ago
The correct answer is A and B. But Lambda function should be replaced with EventBridge.
upvoted 1 times
...
ggrodskiy
1 year, 3 months ago
Selected Answer: BC
B - 100% C OR E ??
upvoted 1 times
...
CuteRunRun
1 year, 6 months ago
Selected Answer: AB
I think is AB
upvoted 1 times
...
NikkyDicky
1 year, 7 months ago
Selected Answer: AB
it's AB
upvoted 1 times
...
Jonalb
1 year, 7 months ago
Selected Answer: AB
AB its correct!
upvoted 1 times
...
SkyZeroZx
1 year, 7 months ago
Selected Answer: AB
A + B A , basic dockerized the aplication and use Elastic Container Register B , deploy how serverless with fargate without overhead managament infrastructure
upvoted 1 times
...
mfsec
1 year, 10 months ago
Selected Answer: B
A + B.
upvoted 2 times
...
dev112233xx
1 year, 10 months ago
Selected Answer: AB
A+B makes sense to me
upvoted 2 times
...
God_Is_Love
1 year, 11 months ago
Selected Answer: AB
Based on Serverless solutions used, need to go with Fargate in combination with either ECS/EC2.As company does not want to manage infra, we go for because Fargate-ECS combo as Fargate-EC2 needs more maintenance .That means D is out. E is obviously out EFS does not contribute to lambda invocation timeouts. C is wrong because, increased concurrency (more lambda versions) won't solve timeouts. That leaves A and B as right answers.
upvoted 4 times
...
klog
1 year, 11 months ago
Selected Answer: AB
C is not right, question clearly said no involve infrastructure, EC2 is a infrastructure, Lamda time out 15 mins.
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago