AWS Lambda/AWS Lambda MCQ Sample Test,Sample questions

Question:
Basic Lambda permissions include permissions for what?

1.Removing log groups

2.None of these answers

3.Creating log groups

4.Updating log groups


Question:
How are CloudWatch actions configured?

1.Automatically

2.None of these answers

3.Manually Ad hoc

4.Manually Ad hoc


Question:
How are computing resources allocated to Lambdas?

1.Proportionally

2.Equally

3.Periodically

4.Daily


Question:
How are environment variables stored?

1.DynamoDB tables

2.Key-value pair

3.S3 buckets

4.None of these answers


Question:
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


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

1.Blocks

2.Layers

3.Aliases

4.Handlers


Question:
How can Step Functions call Lambdas?

1. In sequence

2.Both of these answers

3.Neither of these answers

4.In parallel


Question:
How can Step Functions call Lambdas?

1. In sequence

2.Both of these answers

3.Neither of these answers

4.In parallel


Question:
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


Question:
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


Question:
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.


Question:
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


Question:
In what style must you write Lambda code?

1.MVC

2.Virtual

3.Stateless

4.Protocol


Question:
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.


Question:
Lambdas allow for running of what other things?

1.Binaries.

2.All of these answers

3.Executables

4.Shell scripts


Question:
Lambdas are monitored by default using which service?

1.CloudTrail

2.CloudWatch

3.CloudFormation

4.LogWatch


Question:
Outbound connections from Lambdas must be _.

1.Neither of these answers

2.UDP/IP

3.TCP/IP

4.Both of these answers


Question:
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


Question:
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


Question:
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


Question:
What adds tracing capabilities to a Lambda?

1.AWS Trace

2.CloudStack

3.CloudTrail

4.AWS X-Ray


Question:
What are listed downstream resources based on?

1.The execution policy

2.The Lambda configuration

3.The Lambda nodes

4.The IAM user


Question:
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


Question:
What can trigger a Lambda function execution?

1.A table definition

2.Queue isolation

3.STS Write

4.An SNS topic


Question:
What can you use to monitor function invocations?

1.API Gateway

2.S3

3.SAS

4.CLoudTrail


Question:
What does Lambda logging include?

1.Logging streams

2.Rotating streams

3.Logging events

4.Advancing log groups


Question:
What facilitates continuous delivery of Lambdas?

1.CodeStack

2.ElasticStack

3.Mobile Hub

4.CodeDeploy


Question:
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.


Question:
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


Question:
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.


Question:
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.


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

1.Fleece

2.NPM

3.None of these

4.Pod


Question:
What may be provided for environment variables?

1.An SSL certificate

2.A bitmask

3.An AWS KMS key

4.An HTTP protocol


Question:
What programming language does AWS Lambda support?

1.Custom

2. All of these answers

3.Java

4.Ruby


Question:
What service deploys Lambdas regionally?

1.EdgeCloud

2.CloudEdge

3.CloudFront

4.CloudStack


Question:
When can you change the execution role of a Lambda?

1.Only at creation

2.Only before deployment

3.Never

4.Anytime via configuration


Question:
When is Lambda code stored encrypted?

1.At rest

2.At runtime

3.At deployment

4.Non of these


Question:
Where is the disk space allocated for Lambda functions?

1./tmp

2./default

3. /temp

4./ds


Question:
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


Question:
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


Question:
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


Question:
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.


Question:
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


Question:
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


Question:
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.


Question:
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.


Question:
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.


Question:
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


Question:
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?

1.Deploy a CloudTrail alarm that notifies you when function metrics exceed your threshold. Create an AWS budget to monitor costs.

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

3.Deploy a CloudWatch alarm that notifies you when function metrics exceed your threshold. Create an AWS CostMonitor to monitor costs.

4.Deploy a CloudTrail alarm that notifies you when function metrics exceed your threshold. Create an AWS CostMonitor to monitor costs.


Question:
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


More MCQS

  1. AWS Lambda MCQ
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!