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?
Employ Layers for the shared third-party libraries, enabling their reuse across functions without redundancy.
Instruct the development team to rebuild the application’s infrastructure whenever a library update is needed.
Configure a management service intended for dynamic configuration to handle the shared library versions.
Incorporate the required libraries into the zipped deployment archive for each individual function.
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
Why is it important to reduce redundancy in serverless functions?
Open an interactive chat with Bash
What are the disadvantages of including libraries directly in each Lambda function's deployment package?
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...
IT & Cybersecurity Package Join Premium for Full Access