MCQs > IT & Programming > AWS Lambda MCQs > Basic AWS Lambda MCQs

Basic AWS Lambda MCQ

1. When is Lambda code stored encrypted?

Answer

Correct Answer: At rest

Note: This Question is unanswered, help us to find answer for this one

2. You need to setup a mechanism to put controls in place to notify you when you have a spike in Lambda concurrency. What should you do?

Answer

Correct Answer: Deploy a CloudWatch alarm that notifies you when function metrics exceed your threshold. Create an AWS budget to monitor costs.

Note: This Question is unanswered, help us to find answer for this one

3. What programming language does AWS Lambda support?

Answer

Correct Answer: All of these answers

Note: This Question is unanswered, help us to find answer for this one

4. What service deploys Lambdas regionally?

Answer

Correct Answer: CloudFront

Note: This Question is unanswered, help us to find answer for this one

5. When can you change the execution role of a Lambda?

Answer

Correct Answer: Anytime via configuration

Note: This Question is unanswered, help us to find answer for this one

6. What is included in an exported Lambda deployment package?

Answer

Correct Answer: Zip file of all related files

Note: This Question is unanswered, help us to find answer for this one

7. To make Lambdas more testable, it is AWS best practice to separate which of these?

Answer

Correct Answer: Lambda handler from core logic

Note: This Question is unanswered, help us to find answer for this one

8. You need to set an S3 event trigger on your Lambda to respond when data is added to your bucket from another S3 bucket. Which event type do you configure?

Answer

Correct Answer: PUT

Note: This Question is unanswered, help us to find answer for this one

9. What can trigger a Lambda function execution?

Answer

Correct Answer: An SNS topic

Note: This Question is unanswered, help us to find answer for this one

10. Lambdas are monitored by default using which service?

Answer

Correct Answer: CloudWatch

Note: This Question is unanswered, help us to find answer for this one

11. What kind of packages can you use with Node.js for Lambdas?

Answer

Correct Answer: NPM

Note: This Question is unanswered, help us to find answer for this one

12. What action is needed before you can test a Lambda?

Answer

Correct Answer: Configure a test event

Note: This Question is unanswered, help us to find answer for this one

13. You are creating a Lambda to trigger on change to files in an S3 bucket. Where should you put the bucket name?

Answer

Correct Answer: In a Lambda environment variable

Note: This Question is unanswered, help us to find answer for this one

14. You need to use a Lambda to provide backend logic to your website. Which service do you use to make your Lambda available to your website?

Answer

Correct Answer: API Gateway

Note: This Question is unanswered, help us to find answer for this one

15. How are environment variables stored?

Answer

Correct Answer: Key-value pairs

Note: This Question is unanswered, help us to find answer for this one

16. Basic Lambda permissions include permissions for what?

Answer

Correct Answer: Updating log groups

Note: This Question is unanswered, help us to find answer for this one

17. What is AWS best practice for Lambda configuration?

Answer

Correct Answer: Overprovision memory to run your functions faster and reduce your costs. Do not overprovision your function timeout settings.

Note: This Question is unanswered, help us to find answer for this one

18. How do you stop a running Lambda that is stuck in a recursive loop?

Answer

Correct Answer: Set the function concurrent execution limit to 0 while you update the code.

Note: This Question is unanswered, help us to find answer for this one

19. Where is the disk space allocated for Lambda functions?

Answer

Correct Answer: /tmp

Note: This Question is unanswered, help us to find answer for this one

20. What is the fastest way to get started with Lambda?

Answer

Correct Answer: Use a blueprint.

Note: This Question is unanswered, help us to find answer for this one

21. How is the cost associated with Lambda function calculated?

Answer

Correct Answer: Compute time

Note: This Question is unanswered, help us to find answer for this one

22. You need to make your Lambda available to services in multiple VPCs. What do you do?

Answer

Correct Answer: Configure all application VPCs to be peered.

Note: This Question is unanswered, help us to find answer for this one

23. You are testing your stream-based application and the associated Lambda. AWS best practice advises you to test by varying what?

Answer

Correct Answer: Batch and record sizes

Note: This Question is unanswered, help us to find answer for this one

24. How are CloudWatch actions configured?

Answer

Correct Answer: Manually

Note: This Question is unanswered, help us to find answer for this one

25. Outbound connections from Lambdas must be _.

Answer

Correct Answer: Both of these answers

Note: This Question is unanswered, help us to find answer for this one

26. Which is an equivalent and valid tag for a pair of Lambdas?

Answer

Correct Answer: Department:Sales,department:sales

Note: This Question is unanswered, help us to find answer for this one

27. What are listed downstream resources based on?

Answer

Correct Answer: The Lambda configuration

Note: This Question is unanswered, help us to find answer for this one

28. How do you author a Lambda in a programming language that AWS does not support?

Answer

Correct Answer: Create a Lambda layer with a custom runtime and reference the layer in your lambda

Note: This Question is unanswered, help us to find answer for this one

29. What can AWS Amplify NOT do for a Lambda?

Answer

Correct Answer: Be an event source

Note: This Question is unanswered, help us to find answer for this one

30. What does Lambda logging include?

Answer

Correct Answer: Logging streams

Note: This Question is unanswered, help us to find answer for this one

31. You can restrict the scope of a user's permissions by specifying which two items in an IAM policy?

Answer

Correct Answer: Resources and conditions

Note: This Question is unanswered, help us to find answer for this one

32. How are computing resources allocated to Lambdas?

Answer

Correct Answer: Proportionally

Note: This Question is unanswered, help us to find answer for this one

33. What facilitates continuous delivery of Lambdas?

Answer

Correct Answer: CodeDeploy

Note: This Question is unanswered, help us to find answer for this one

34. You are performance-testing your Lambda to verify that you set the memory size adequately. Where do you verify the execution overhead?

Answer

Correct Answer: Lambda logs.

Note: This Question is unanswered, help us to find answer for this one

35. How can a developer provide Lambda code?

Answer

Correct Answer: All of these answers

Note: This Question is unanswered, help us to find answer for this one

36. Lambdas allow for running of what other things?

Answer

Correct Answer: All of these answers

Note: This Question is unanswered, help us to find answer for this one

37. What may be provided for environment variables?

Answer

Correct Answer: An AWS KMS key

Note: This Question is unanswered, help us to find answer for this one

38. It is AWS best practice to enable Lambda logging by which of these methods.

Answer

Correct Answer: Use Lambda metrics and CloudWatch alarms.

Note: This Question is unanswered, help us to find answer for this one

39. What can you use to monitor function invocations?

Answer

Correct Answer: CLoudTrail

Note: This Question is unanswered, help us to find answer for this one

40. You need to build a continuous integration/deployment pipeline for a set of Lambdas. What should you do?

Answer

Correct Answer: Create CloudFormation templates and deploy them using AWS CodePipeline.

Note: This Question is unanswered, help us to find answer for this one

41. What adds tracing capabilities to a Lambda?

Answer

Correct Answer: AWS X-Ray

Note: This Question is unanswered, help us to find answer for this one

42. Which AWS CLI command invokes a function?

Answer

Correct Answer: Aws lambda invoke --function-name ReturnBucketName outputfile.txt

Note: This Question is unanswered, help us to find answer for this one

43. How can Step Functions call Lambdas?

Answer

Correct Answer: Both of these answers

Note: This Question is unanswered, help us to find answer for this one

44. How can additional code or content be provided for your Lambda?

Answer

Correct Answer: Layers

Note: This Question is unanswered, help us to find answer for this one

45. How can you increase the CPU resources for your Lambda?

Answer

Correct Answer: Increase the configured memory value

Note: This Question is unanswered, help us to find answer for this one

46. How can you increase the CPU resources for your Lambda?

Answer

Correct Answer: Increase the configured memory value

Note: This Question is unanswered, help us to find answer for this one

search
AWS Lambda Subjects