Q.1 This command installs the serverless framework correctly.
A. npm install -g serverless
B. apt-get install serverless
C. npm install serverless
D. npm install sls
Ans : npm install -g serverless
Q.2 AWS Lambda requires you to set up virtual servers.
A. True
B. False
Ans : False
Q.3 Serverless Framework is open source.
A. True
B. False
Ans : True
Q.4 Serverless Architecture never really has a server anywhere.
A. True
B. False
Ans : False
Q.5 Which one is not an example of serverless?
A. IBM OpenWhisk
B. Azure Function
C. AWS ECS
D. Google Cloud Functions
Ans : AWS ECS
Q.6 In Serverless, _______________.
A. The Ops team has to set up the environment
B. The cloud provider is responsible for setting up the environment
C. None of the options
D. 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, ____________.
A. JavaScript runtime is required
B. Serverless subscription is required
C. A Serverless account is required
D. None of the options
Ans : Serverless subscription is required
Q.8 A serverless cost model is __________.
A. Fixed
B. Pay per execution
C. Pay per line of code
D. Pay per function
Ans : Pay per execution
Q.9 Which is not a feature of a serverless framework?
A. CLI-based
B. Simple deployment
C. Provider dependent
D. IAC
Ans : Provider dependent
Q.10 Serverless takes care of _________.
A. Administration
B. Autoscaling
C. Both the options
D. None of the options
Ans : Both the options
Q.11 _______ is not a valid Azure Function Event Trigger.
A. http
B. cron schedules
C. blob storage
D. vm creations
Ans : vm creations
Q.12 0 0/1 * ? * * * – This cron expression denotes to ___________.
A. Run always
B. Run every minute
C. Run every hour
D. Run every second
Ans : Run every minute
Q.13 _________ is not a valid argument for sls create command.
A. -tp
B. -t
C. -p
D. -n
Ans : -tp
Q.14 Which of these commands stream function fresco’s outputs to stdout?
A. Sls out -f fresco
B. sls logs -f fresco
C. Sls stream -f fresco
D. 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.
A. path
B. template
C. Template-path
D. name
Ans : path
Q.16 This command installs the serverless framework correctly.
Ans : npm
Q.17 Serverless is also known as _______.
A. Function as a service
B. Server as a Service
C. Logic as a Service
Ans : Function as a service
Q.18 How to refer a property in serverless.yaml file?
A. Accessing directly with property name
B. Using self
C. Using this
D. Using file
Ans : Using this
Q.19 Which of these argument syntaxes provide data from data.json to function fresco?
A. –path data.json
B. –data ./data.json
C. –data data.json
D. None of the options
Ans : –path data.json
Q.20 _________ command is used to deploy function fresco.
A. sls deploy function -f fresco
B. sls deploy
C. sls deploy -function fresco
D. sls deploy –function fresco
Ans : sls deploy function -f fresco
Q.21 __________________ file manages IAC in a serverless framework.
A. package.json
B. handler.js
C. serverless.yaml
D. None of the options
Ans : serverless.yaml
Q.22 The same Azure Function can handle multiple HTTP methods.
A. True
B. False
Ans : True
Q.23 You can add multiple function definitions under functions section.
A. True
B. False
Ans : True
Q.24 Which subsection of functions specifies the function to be attached from handler.js?
A. Handler
B. Provider
C. Events
D. Function
Ans : Handler
Q.25 Which one of the following options will not be taken care of by serverless.yaml?
A. Function specification
B. Service declaration
C. Vendor details
D. Business logic specification
Ans : Business logic specification