A developer converted an existing program to an AWS Lambda function in the console. The program runs properly on a local laptop, but shows an "Unable to import module" error when tested in the Lambda console. Which of the following can fix the error?
A) Install the missing module and specify the current directory as the target. Create a ZIP file to include all files under the current directory, and upload the ZIP file.
B) Install the missing module in a lib directory. Create a ZIP file to include all files under the lib directory, and upload the ZIP file as dependency file.
C) In the Lambda code, invoke a Linux command to install the missing modules under the /usr/lib directory.
D) In the Lambda console, create a LB_LIBRARY_PATH environment and specify the value for the system library path.
Correct Answer:
Verified
Q354: A development team is designing a mobile
Q355: A Developer needs to deploy an application
Q356: A company requires that AWS Lambda functions
Q357: A development team is working on a
Q358: What is required to trace Lambda-based applications
Q360: A developer is provided with an HTTPS
Q361: During non-peak hours, a Developer wants to
Q362: A developer is planning to use an
Q363: The Lambda function below is being called
Q364: A company is running a custom application
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents