Aws Lambda

How can you increase the CPU resources for your Lambda?

1.

`Increase the configured CPU value`

2.

`Increase the configured timeout value`

3.

`Increase the configured memory value`

4.

`Increase the configured concurrency value`

Q 1 / 45

Aws Lambda

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

1.

`blocks`

2.

`layers`

3.

`aliases`

4.

`handlers`

Q 2 / 45

Aws Lambda

How can Step Functions call Lambdas?

1.

`in sequence`

2.

`both of these answers`

3.

`neither of these answers`

4.

`in parallel`

Q 3 / 45

Aws Lambda

Which AWS CLI command invokes a function?

1.

`aws lambda invoke --function ReturnBucketName outputfile.txt`

2.

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

3.

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

4.

`aws lambda execute --function ReturnBucketName outputfile.txt`

Q 4 / 45

Aws Lambda

What adds tracing capabilities to a Lambda?

1.

`AWS Trace`

2.

`CloudStack`

3.

`CloudTrail`

4.

`AWS X-Ray`

Q 5 / 45

Aws Lambda

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

1.

`Create configuration files and deploy them using AWS CodePipeline.`

2.

`Create CloudFormation templates and deploy them using AWS CodeBuild`

3.

`Create configuration file and deploy using AWS CodeBuild`

4.

`Create CloudFormation templates and deploy them using AWS CodePipeline.`

Q 6 / 45

Aws Lambda

What can you use to monitor function invocations?

1.

`API Gateway`

2.

`S3`

3.

`SAS`

4.

`CLoudTrail`

Q 7 / 45

Aws Lambda

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

1.

`Use S3 metrics and CloudWatch alarms`

2.

`Create custom metrics within your Lambda code.`

3.

`Create custom metrics within your CloudWatch code.`

4.

`Use Lambda metrics and CloudWatch alarms.`

Q 8 / 45

Aws Lambda

What may be provided for environment variables?

1.

`an SSL certificate`

2.

`a bitmask`

3.

`an AWS KMS key`

4.

`an HTTP protocol `

Q 9 / 45

Aws Lambda

Lambdas allow for running of what other things?

1.

`binaries.`

2.

`all of these answers`

3.

`executables`

4.

`Shell scripts`

Q 10 / 45

Aws Lambda

In what style must you write Lambda code?

1.

`MVC`

2.

`virtual`

3.

`stateless`

4.

`protocol`

Q 11 / 45

Aws Lambda

How can a developer provide Lambda code?

1.

`by uploading a .zip file`

2.

`all of these answers`

3.

`by editing inline`

4.

`from an S3 bucket`

Q 12 / 45

Aws Lambda

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

1.

`CLoudWatch logs`

2.

`DynamoDB logs`

3.

`S3 logs`

4.

`Lambda logs.`

Q 13 / 45

Aws Lambda

What facilitates continuous delivery of Lambdas?

1.

`CodeStack`

2.

`ElasticStack`

3.

`Mobile Hub`

4.

`CodeDeploy`

Q 14 / 45

Aws Lambda

How are computing resources allocated to Lambdas?

1.

`proportionally`

2.

`equally`

3.

`periodically`

4.

`daily`

Q 15 / 45

Aws Lambda

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

1.

`resources and users`

2.

`resources and conditions`

3.

`events and users`

4.

`events and conditions`

Q 16 / 45

Aws Lambda

What does Lambda logging include?

1.

`logging streams`

2.

`rotating streams`

3.

`logging events`

4.

`advancing log groups`

Q 17 / 45

Aws Lambda

What can AWS Amplify NOT do for a Lambda?

1.

`create a Lambda`

2.

`be an event source`

3.

`assign an IAM role`

4.

`delete a Lambda`

Q 18 / 45

Aws Lambda

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

1.

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

2.

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

3.

`You cannot use Lambda in this situation`

4.

`Create a Lambda function with a custom runtime`

Q 19 / 45

Aws Lambda

What are listed downstream resources based on?

1.

`the execution policy`

2.

`the Lambda configuration`

3.

`the Lambda nodes`

4.

`the IAM user`

Q 20 / 45

Aws Lambda

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

1.

`department:Sales,department:Sales`

2.

`department:Sales,department:sales`

3.

`aws:demo;aws:demo`

4.

`aws:demo;aws:DEMO`

Q 21 / 45

Aws Lambda

Outbound connections from Lambdas must be `_`.

1.

`neither of these answers`

2.

`UDP/IP`

3.

`TCP/IP`

4.

`both of these answers`

Q 22 / 45

Aws Lambda

How are CloudWatch actions configured?

1.

`automatically`

2.

`none of these answers`

3.

`manually`

4.

`ad hoc`

Q 23 / 45

Aws Lambda

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

1.

`stream and record sizes`

2.

`stream and shard sizes`

3.

`batch and record sizes`

4.

`batch and shard sizes`

Q 24 / 45

Aws Lambda

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

1.

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

2.

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

3.

`Configure your Lambda to be available to multiple VPCs.`

4.

`Configure all application VPCs to be peered.`

Q 25 / 45

Aws Lambda

How is the cost associated with Lambda function calculated?

1.

`number of function calls`

2.

`amount of code run`

3.

`compute time`

4.

`amount of infrastructure used`

Q 26 / 45

Aws Lambda

What is the fastest way to get started with Lambda?

1.

`Author a Lambda from scratch.`

2.

`Use a blueprint.`

3.

`Use a .zip deployment package.`

4.

`Use the serverless app repository.`

Q 27 / 45

Aws Lambda

Where is the disk space allocated for Lambda functions?

1.

`/tmp`

2.

`/default`

3.

`/temp`

4.

`/ds`

Q 28 / 45

Aws Lambda

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

1.

`Delete the function.`

2.

`Set the function concurrent execution limit to 0 while you update the code.`

3.

`Reset the function.`

4.

`Set the function concurrent execution limit to 100 while you update the code.`

Q 29 / 45

Aws Lambda

What is AWS best practice for Lambda configuration?

1.

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

2.

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

3.

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

4.

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

Q 30 / 45

Aws Lambda

Basic Lambda permissions include permissions for what?

1.

`removing log groups`

2.

`none of these answers`

3.

`creating log groups`

4.

`updating log groups`

Q 31 / 45

Aws Lambda

How are environment variables stored?

1.

`DynamoDB tables`

2.

`key-value pairs`

3.

`S3 buckets`

4.

`none of these answers`

Q 32 / 45

Aws Lambda

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?

1.

`S3`

2.

`API Gateway`

3.

`X-Ray`

4.

`DynamoDB`

Q 33 / 45

Aws Lambda

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

1.

`in the Lambda function code`

2.

`in a Lambda environment variable`

3.

`in the Lambda tags`

4.

`in another S3 bucket`

Q 34 / 45

Aws Lambda

What action is needed before you can test a Lambda?

1.

`Deploy the Lambda`

2.

`Export the function`

3.

`none of these answers`

4.

`Configure a test event`

Q 35 / 45

Aws Lambda

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

1.

`Fleece`

2.

`NPM`

3.

`none of these answers`

4.

`Pod`

Q 36 / 45

Aws Lambda

Lambdas are monitored by default using which service?

1.

`CloudTrail`

2.

`CloudWatch`

3.

`CloudFormation`

4.

`LogWatch`

Q 37 / 45

Aws Lambda

What can trigger a Lambda function execution?

1.

`a table definition`

2.

`queue isolation`

3.

`STS Write`

4.

`an SNS topic`

Q 38 / 45

Aws Lambda

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?

1.

`POST`

2.

`"All object create events"`

3.

`PUT`

4.

`COPY`

Q 39 / 45

Aws Lambda

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

1.

`Lambda configuration from logging code`

2.

`Lambda handler from logging code`

3.

`Lambda handler from core logic`

4.

`Lambda configuration from core logic`

Q 40 / 45

Aws Lambda

What is included in an exported Lambda deployment package?

1.

`YAML definition`

2.

`CloudFormation stack configuration`

3.

`SAML deployment stack`

4.

`Zip file of all related files`

Q 41 / 45

Aws Lambda

When can you change the execution role of a Lambda?

1.

`only at creation`

2.

`only before deployment`

3.

`never`

4.

`anytime via configuration`

Q 42 / 45

Aws Lambda

What is the relationship between SAM template and CloudFormation template files?

1.

SAM templates are a superset of CloudFormation templates. SAM templates include additional resource types.

2.

SAM templates have some overlap with CloudFormation templates. Both SAM and CloudFormation templates include resource types that are not in the other type of template.

3.

CloudFormation templates are a superset of SAM templates. CloudFormation templates include additional resource types.

4.

SAM templates are a different name for CloudFormation templates. Both template types include the same resource types.

Q 43 / 45

Aws Lambda

What service deploys Lambdas regionally?

1.

`EdgeCloud`

2.

`CloudEdge`

3.

`CloudFront`

4.

`CloudStack`

Q 44 / 45

Aws Lambda

What programming language does AWS Lambda support?

1.

`custom`

2.

`all of these answers`

3.

`Java`

4.

`Ruby`

Q 45 / 45