Serverless computing is a cloud computing model where cloud provider such as Azure, AWS, Google Cloud are responsible for managing server and the user is responsible for the function or code. Cloud provider runs the server and dynamically manages the allocation of machine resources. This means developer user can build and run applications services without having to manage infrastructure. This includes functions, event-driven architectures, and more. The term “Serverless” can be misleading, as servers are still involved in the process, but the management and provisioning of servers is abstracted away from the user.
Before taking the Serverless Cloud Computing Quiz and Answers, read about 👉Serverless Computing in Azure to get a complete overview of serverless cloud execution and its model.
Serverless Cloud Computing Quiz Question and Answers
Test your knowledge of Serverless Cloud Computing with these Serverless Computing quiz question and answers.
Which service provides serverless computing in azure?
- Virtual Machines
- VM Scale Sets
- Azure Functions
- SQL Database
AWS Lambda is a service of serverless computing in AWS. True or False?
- True
- False
It is essential to create a service principal to use Azure functions with a serverless framework.
- True
- False
Serverless Architecture never really has a server anywhere.
- True
- False
Which of the following command installs the serverless framework correctly.
- apt-get install serverless
- npm install -g serverless
- npm install sls
- npm install serverless
A serverless cost model is __________.
- Pay per line of code
- Pay per execution
- Pay per function
- Fixed Cost
_________ is not an example of serverless.
- Azure Function
- IBM OpenWhisk
- Google Cloud Functions
- IBM Cloud Code Engine
- AWS ECS
Serverless is also known as _______.
- Logic as a Service
- Server as a Service
- Function as a service
To use serverless CLI, _______ is required.
- Serverless subscription
- A Serverless account
- JavaScript runtime
- None of the options
Which of the following Azure cloud services offers serverless capabilities?
- Azure App Services
- Azure Functions
- Azure Kubernetes Service (AKS)
- All of the above
Who is responsible for setting up the environment in Serverless?
- The developer has to set up the environment
- The Ops team has to set up the environment
- The cloud provider is responsible for setting up the environment
- None of the options
Serverless Framework is open source. True or False?
- True
- False
It is essential to create a service principal to use Azure functions with a serverless framework. True or False?
- True
- False
In Serverless, ___________.
- The developer has to set up the environment
- The Ops team has to set up the environment
- The cloud provider is responsible for setting up the environment
- None of the options
Serverless takes care of Administration and Auto scaling. True or False?
- True
- False
Which is not a feature of a serverless framework?
- CLI-based
- IAC
- Provider dependent
- Simple deployment
Serverless takes care of _________.
- Administration
- Autoscaling
- Both Administration and Autoscaling
- None of the options
_______ is/are used to trigger HTTP events in serverless.
- blob storage
- endpoints
- cosmosdb http hook
- None of the options
_______ command creates Azure JavaScript service in the current directory.
- sls create -template azure-javascript
- sls create --template azure-javascript
- sls create --template azure-nodejs
- sls create -template azure-nodejs
_______ command is used to deploy function alert.
- sls deploy --function alert
- sls deploy -function alert
- sls deploy function -f alert
- sls deploy
How to search for a specific plugin in serverless?
- sls plugin --search plugin_name
- sls search --query plugin_name
- sls plugin find plugin_name
- sls plugin search --query plugin_name
You can add dynamic data to serverless.yaml file.
- True
- False
How to refer schedule defined under the custom section as the value to timer property in serverless.yaml?
- ${self:custom.schedule}
- ${this.custom.schedule}
- ${custom.schedule}
- ${this:custom.schedule}
You can add multiple function definitions under functions section. True or False?
- True
- False
How to trigger HTTP events in serverless?
- Using blob storage
- Using endpoints
- Using cosmosdb http hook
- None of the options
What is service in serverless.yaml?
- Subscription specification
- Function name
- Function grouping
- Vendor details
Which one of the following options will not be taken care of by serverless.yaml
- Function specification
- Service declaration
- Vendor details
- Business logic specification
Which subsection of functions specifies the function to be attached from handler.js?
- Events
- Function
- Provider
- Handler
Which of the following options are not a valid file type to store variables for serverless.yaml?
- json
- txt
- yaml
- js
This syntax loads cron property value from config.js file, which is in the current directory.
- ${self(../config.js):cron}
- ${file(config.js):cron}
- ${file(../config.js):cron}
- ${file(../config.js):crn}
How to refer myprop defined in file props.yaml in serverless.yaml?
- ${file(props.yaml):myprop}
- ${props.yaml:myprop}
- ${self(props.yaml):myprop}
- ${file(props.yaml.myprop)}
________ prefix is used to load data from a json text file to a serverless.yaml property.
- json
- self
- text
- file
_______ is not a valid Azure Function Event Trigger.
- cron schedules
- blob storage
- vm creations
- http
The same Azure Function can handle multiple HTTP methods.
- False
- True
You can add multiple function definitions under functions section.
- False
- True
_______ file manages IAC in a serverless framework.
- package.json
- serverless.yaml
- None of the options
- handler.js
Which section of serverless.yaml file specifies the cloud vendor details?
- Provider
- Plugins
- Vendor
- Cloud
AWS Lambda requires you to set up virtual severs.
- True
- False
_________ is not a valid argument for sls create command.
- -t
- -n
- -tp
- -p
_________ command creates Azure JavaScript service in the current directory.
- sls create --template azure-nodejs
- sls create -template azure-javascript
- sls create -template azure-nodejs
- sls create --template azure-javascript
Which of these commands stream function fresco's outputs to stdout?
- sls logs -f fresco
- Sls stream -f fresco
- Sls out -f fresco
- sls std -f fresco
How to refer a property in serverless.yaml file?
- Accessing directly with property name
- Using file
- Using self
- Using this
________ argument of sls create is used to specify the local path of the template.
- path
- template
- Template-path
- name
You can add multiple function definitions under functions section.
- False
- True
Azure functions cannot access documentDB.
- False
- True
You can add multiple plugins for a service.
- False
- True
Which of the following services is a serverless compute service in AWS?
- Amazon EC2
- AWS Lambda
_________ folder will contain artifacts for deploy command.
- .artifacts
- .serverless
- service
- .service
_________ folder will contain artifacts for deploy command.
- .artifacts
- .serverless
- service
- .service
Is Function as a service (FaaS) a Cloud Computing Service model?
- True
- False
FaaS provides on-demand services that support the execution of functions. True or False?
- True
- False