Serverless FP Interview Question and Answers from 2022 [updated]

Serverless FP Framework is deploying your code to a cloud provider like AWS, Microsoft Azure, Google Cloud Platform, Apache OpenWhisk, Cloudflare Workers, or a Kubernetes-based solution like Kubeless

Serverless FP

Q.1 This command installs the serverless framework correctly.

1)npm install -g serverless

2)apt-get install serverless

3)npm install serverless

4)npm install sls

Ans : npm install -g serverless

Q.2 AWS Lambda requires you to set up virtual servers.

1)True

2)False

Ans : False

Q.3 Serverless Framework is open source.

1)True

2)False

Ans : True

Q.4 Serverless Architecture never really has a server anywhere.

1)True

2)False

Ans : False

Q.5 Which one is not an example of serverless?

1)IBM OpenWhisk

2)Azure Function

3)AWS ECS

4)Google Cloud Functions

Ans : AWS ECS

Q.6 In Serverless, ___.

1)The Ops team has to set up the environment

2)The cloud provider is responsible for setting up the environment

3)None of the options

4)The developer has to set up the environment

Ans : The cloud provider is responsible for setting up the environment

Q.7 To use serverless CLI, __.

1)JavaScript runtime is required

2)Serverless subscription is required

3)A Serverless account is required

4)None of the options

Ans : Serverless subscription is required

Q.8 A serverless cost model is __.

1)Fixed

2)Pay per execution

3)Pay per line of code

4)Pay per function

Ans : Pay per execution

Q.9 Which is not a feature of a serverless framework?

1)CLI-based

2)Simple deployment

3)Provider dependent

4)IAC

Ans : Provider dependent

Q.10 Serverless takes care of _.

1)Administration

2)Autoscaling

3)Both the options

4)None of the options

Ans : Both the options

Q.11 _ is not a valid Azure Function Event Trigger.

1)http

2)cron schedules

3)blob storage

4)vm creations

Ans : vm creations

Q.12 0 0/1 * ? * * * – This cron expression denotes to _.

1)Run always

2)Run every minute

3)Run every hour

4)Run every second

Ans : Run every minute

Q.13 _ is not a valid argument for sls create command.

1)-tp

2)-t

3)-p

4)-n

Ans : -tp

Q.14 Which of these commands stream function fresco’s outputs to stdout?

1)Sls out -f fresco

2)sls logs -f fresco

3)Sls stream -f fresco

4)sls std -f fresco

Ans : sls logs -f fresco

Q.15 __ argument of sls create is used to specify the local path of the template.

1)path

2)template

3)Template-path

4)name

Ans : path

Q.16 This command installs the serverless framework correctly.

Ans : npm

Q.17 Serverless is also known as _.

1)Function as a service

2)Server as a Service

3)Logic as a Service

Ans : Function as a service

Q.18 How to refer a property in serverless.yaml file?

1)Accessing directly with property name

2)Using self

3)Using this

4)Using file

Ans : Using this

Q.19 Which of these argument syntaxes provide data from data.json to function fresco?

1)–path data.json

2)–data ./data.json

3)–data data.json

4)None of the options

Ans : –path data.json

Q.20 _ command is used to deploy function fresco.

1)sls deploy function -f fresco

2)sls deploy

3)sls deploy -function fresco

4)sls deploy –function fresco

Ans : sls deploy function -f fresco

Q.21 ______ file manages IAC in a serverless framework.

1)package.json

2)handler.js

3)serverless.yaml

4)None of the options

Ans : serverless.yaml

Q.22 The same Azure Function can handle multiple HTTP methods.

1)True

2)False

Ans : True

Q.23 You can add multiple function definitions under functions section.

1)True

2)False

Ans : True

Q.24 Which subsection of functions specifies the function to be attached from handler.js?

1)Handler

2)Provider

3)Events

4)Function

Ans : Handler

Q.25 Which one of the following options will not be taken care of by serverless.yaml?

1)Function specification

2)Service declaration

3)Vendor details

4)Business logic specification

Ans : Business logic specification

About Author


After years of Technical Work, I feel like an expert when it comes to Develop wordpress website. Check out How to Create a Wordpress Website in 5 Mins, and Earn Money Online Follow me on Facebook for all the latest updates.