Course menuDVA-C03

Exams / DVA-C03 / Packaging and application configuration / Question 2

DVA-C03 practice question: Packaging and application configuration (2 of 3)

Testing and Deployment A free question from our original DVA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A data science team has a Python Lambda function whose dependencies (NumPy, SciPy and a compiled model library) total about 1.4 GB when unzipped, so the .zip deployment fails.

The function must not be attached to a VPC, and the team wants the dependencies delivered with the function, not fetched over the network during cold starts.

What should the developer do?

Choose one answer.

  1. A. Build a container image with the code and dependencies, push it to Amazon ECR, and create the function from the image.
  2. B. Split the dependencies across the maximum number of Lambda layers and attach all of them to the function for more room.
  3. C. Upload the .zip to Amazon S3 and create the function from the S3 object, which removes the package size limit.
  4. D. Place the dependencies on an Amazon EFS file system mounted under /mnt/libs, and load them from there at cold start.
Show the answer and explanation

Answer: A

Explanation

Zip packages are limited to 250 MB unzipped, layers included, and S3 uploads do not change that. Container images can be up to 10 GB, ship the dependencies with the function and need no VPC. EFS would meet the size need but requires a VPC and loads files over the network.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Packaging and application configuration? The 5 full-length practice sets have 15 more Packaging and application configuration questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets