Practice Questions
1. A Developer wrote some Node.js code and executed the code in EC2 instance which took 200 seconds. The code calls a DynamoDB table but if the code is executed by deploying a Lambda Function with default settings, then it does not add necessary rows in the table, and it is not working same as it works in EC2.What will be the changes required to execute it in the same way as EC2 instance?
A. Change the memory assigned to function to 2 GB
B. Ensure that the Node.js is changed to Python
C. Assign IAM users to the Lambda function
D. Change the timeout for the function
2. In AWS CodeDeploy, the developer follows which sequence of hooks that get called?
A. Before install>Validate service>application stop>application start
B. Application stop> before install> after install>application start
C. Before install>application stop> validate service>application start
D. Before install>after install>application stop>application start
3. An organization has a Lambda function which is used to process the data asynchronously, but if in case of any failure in function they want to find out the issue. How will they do it?
A. Use AWS CloudTrail logs
B. Configure SNS notifications
C. Use CloudWatch metrics
D. Assign DLQ (Dead Letter Queue)
Menu