AWS LAMBDA QUIZ DESCRIPTION

How is the cost associated with Lambda function calculated?

  • number of function calls
     

  • amount of code run

  • compute time

  • amount of infrastructure used

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

  • aliases
     

  • blocks

  • handlers

  • layers

What can trigger a Lambda function execution?

  • a table definition
     

  • queue isolation

  • STS Write

  • an SNS topic

Which AWS CLI command invokes a function?

  • aws lambda invoke --function ReturnBucketName outputfile.txt
     

  • aws lambda execute --function-name ReturnBucketName outputfile.txt

  • aws lambda invoke --function-name ReturnBucketName outputfile.txt

  • aws lambda execute --function ReturnBucketName outputfile.txt

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

  • Place each subnet in a VPC. Associate all subnets to your Lambda.
     

  • Place all subnets in a VPC. Associate all subnets to your Lambda.

  • Configure your Lambda to be available to multiple VPCs.

  • Configure all application VPCs to be peered.

What may be provided for environment variables?

  • an SSL certificate
     

  • a bitmask

  • an AWS KMS key

  • an HTTP protocol

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?

  • S3
     

  • API Gateway

  • X-Ray

  • DynamoDB

What facilitates continuous delivery of Lambdas?

  • CodeStack
     

  • ElasticStack

  • Mobile Hub

  • CodeDeploy

What kind of packages can you use with Nodejs for Lambdas?

  • Fleece
     

  • NPM

  • none of these answers

  • Pod

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

  • Create configuration files and deploy them using AWS CodePipeline.
     

  • Create CloudFormation templates and deploy them using AWS CodeBuild

  • Create configuration file and deploy using AWS CodeBuild

  • Create CloudFormation templates and deploy them using AWS CodePipeline.

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

  • Create a Lambda function with a custom runtime and reference the function in your Lambda
     

  • Create a Lambda layer with a custom runtime and reference the layer in your lambda

  • You cannot use Lambda in this situation

  • Create a Lambda function with a custom runtime

How are environment variables stored?

  • DynamoDB tables
     

  • key-value pairs

  • S3 buckets

  • none of these answers

Basic Lambda permissions include permissions for what?

  • removing log groups
     

  • none of these answers

  • creating log groups

  • updating log groups

What are listed downstream resources based on?

  • the execution policy
     

  • the Lambda configuration

  • the Lambda nodes

  • the IAM user

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

  • resources and users
     

  • resources and conditions

  • events and users

  • events and conditions

What can you use to monitor function invocations?

  • API Gateway
     

  • S3

  • SAS

  • Cloud Trail

Outbound connections from Lambdas must be "\_\__"

  • neither of these answers
     

  • UDP/IP

  • TCP/IP

  • both of these answers

How is the cost associated with Lambda function calculated?

  • number of function calls
     

  • amount of code run

  • compute time

  • amount of infrastructure used

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

  • Fleece
     

  • NPM

  • none of these answers

  • Pod

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

  • stream and record sizes
     

  • stream and shard sizes

  • batch and record sizes

  • batch and shard sizes

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

  • Lambda configuration from logging code
     

  • Lambda handler from logging code

  • Lambda handler from core logic

  • Lambda configuration from core logic

How can Step Functions call Lambdas?

  • in sequence
     

  • both of these answers

  • neither of these answers

  • In parallel

What is AWS best practice for Lambda configuration?

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

  • Overprovision memory and your function timeout settings to run your functions faster and reduce your costs.

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

  • Do not overprovision memory. Do not overprovision your function timeout settings to run your functions faster and reduce costs.
     

How are computing resources allocated to Lambdas?

  • proportionally
     

  • equally

  • periodically

  • daily

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

  • CloudWatch logs
     

  • DynamoDB logs

  • 53 logs

  • Lambda logs.

How can a developer provide Lambda code?

  • by uploading a .zip file
     

  • all of thesei

  • by editing inline

  • from an S3 bucket