exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 439 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 439
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer compiles an AWS Lambda function and packages the result as a .zip file. The developer uses the Functions page on the Lambda console to attempt to upload the local packaged .zip file. When pushing the package to Lambda, the console returns the following error:

An error occurred (RequestEntityTooLargeException) when calling the UpdateFunctionCode operation

Which solutions can the developer use to publish the code? (Choose two.)

  • A. Upload the package to Amazon S3. Use the Functions page on the Lambda console to upload the package from the S3 location.
  • B. Create an AWS Support ticket to increase the maximum package size.
  • C. Use the update-function-code AWS CLI command. Pass the --publish parameter.
  • D. Repackage the Lambda function as a Docker container image. Upload the image to Amazon Elastic Container Registry (Amazon ECR). Create a new Lambda function by using the Lambda console. Reference the image that is deployed to Amazon ECR.
  • E. Sign the .zip file digitally. Create a new Lambda function by using the Lambda console. Update the configuration of the new Lambda function to include the Amazon Resource Name (ARN) of the code signing configuration.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
KT_Yu
Highly Voted 2 years, 3 months ago
Selected Answer: AD
Should be A and D. When the deployment size is too large, consider using Lambda container images because it can afford image size up to 10GB. C is wrong: Simply using the CLI upload a large package will fail the same time
upvoted 7 times
tony554556
2 years, 3 months ago
thanks so much
upvoted 1 times
...
KT_Yu
2 years, 3 months ago
Also, note that when you upload a file directly with the AWS CLI, AWS SDK, or otherwise, the binary ZIP file is converted to base64, which increases its size by about 30%. To allow for this, and the size of other parameters in the request, the actual request size limit that Lambda applies is larger.
upvoted 1 times
KT_Yu
2 years, 3 months ago
https://docs.aws.amazon.com/lambda/latest/dg/troubleshooting-deployment.html
upvoted 3 times
...
...
...
Drey
Most Recent 2 years, 3 months ago
Selected Answer: AD
It's AD
upvoted 1 times
...
breathingcloud
2 years, 3 months ago
Selected Answer: AD
Three main alternatives S3 upload Container Image EFS In our case AD seems more suitable
upvoted 1 times
...
DrCloud
2 years, 3 months ago
Selected Answer: AC
-- When you upload a deployment package or layer archive directly to Lambda, the size of the ZIP file is limited to 50 MB. To upload a larger file, store it in Amazon S3 and use the S3Bucket and S3Key parameters. https://docs.aws.amazon.com/lambda/latest/dg/troubleshooting-deployment.html#troubleshooting-deployment-updatefunctioncode https://stackoverflow.com/questions/64875438/an-error-occurred-requestentitytoolargeexception-when-calling-the-updatefuncti
upvoted 2 times
DrCloud
2 years, 2 months ago
C is not correct. My bad! Correct Ans: AD. Sorry about it!
upvoted 1 times
...
tony554556
2 years, 3 months ago
so why C?
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago