AWS Certified Developer Associate DVA-C02 Practice Question
Your team is working on an application with several serverless functions that require the same third-party libraries. To reduce redundancy and streamline the function update process, what method should be adopted to handle these shared resources?
Instruct the development team to rebuild the application’s infrastructure whenever a library update is needed.
Incorporate the required libraries into the zipped deployment archive for each individual function.
Employ Layers for the shared third-party libraries, enabling their reuse across functions without redundancy.
Configure a management service intended for dynamic configuration to handle the shared library versions.
The best method to manage shared dependencies in serverless functions is to utilize Layers. By doing so, developers can deploy common libraries and dependencies as a distinct layer that multiple functions can then reference. This approach centralizes dependency management and decreases the size of each function's deployment package, simplifying updates and maintenance. Adding shared dependencies directly to each function’s deployment package unnecessarily increases the size of the packages, which can result in longer deployment times and challenges in maintaining consistency across functions. Rebuilding the entire application for shared dependency updates is both inefficient and not directly related to the deployment of the serverless functions. Using a configuration management service like AppConfig is not suitable for code dependencies, as its purpose is adjusting application behavior without requiring code updates.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are AWS Lambda Layers?
Open an interactive chat with Bash
How does using Layers improve serverless application management?
Open an interactive chat with Bash
What are the best practices for using AWS Lambda Layers?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .