Prévia do material em texto
Severless FP:-
Serverless takes care of _________. ans: both
Serverless Framework is open source. ans: yes
It is essential to create a service principal to use Azure functions with a
serverless framework. ans:true
In Serverless, _______________________.ans: The cloud provider is responsible
for setting up the environment
Which is not a feature of a serverless framework? ans: provider dependent
Serverless Architecture never really has a server anywhere. ans: false
A serverless cost model is __________. ans: Pay per execution
AWS Lambda requires you to set up virtual servers. ans: false
Which one is not an example of serverless? ans: aws ecs
To use serverless CLI, ____________. ans: none
This command installs the serverless framework correctly. ans: npm
install g serverless
Serverless is also known as _______. ans: function as a service
The serverless cost model is _____________. ans:Pay per execution
It is essential to create a service principal to use Azure functions with a
serverless framework. ans:true
You can add dynamic data to serverless.yaml file. ans:true
Serverless Framework is open source. ans:true
Which section of serverless.yaml file specifies the cloud vendor details?
Vendor
Provider
Plugins-ans
Cloud
How to search for a specific plugin in serverless?
sls search --query <plugin_name>-ans
sls plugin --search <plugin_name>
sls plugin search --query <plugin_name>
sls plugin find <plugin_name>
Serverless is also known as _______. ans: Function as a service
0 0/1 * ? * * * - This cron expression denotes to ___________.
Run every minute-ans
Run every hour
This study source was downloaded by 100000804099454 from CourseHero.com on 08-26-2021 00:15:25 GMT -05:00
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Th
is
stu
dy
re
so
ur
ce
w
as
sh
are
d v
ia
Co
ur
se
He
ro
.co
m
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Run every second
Run always
The same Azure Function can handle multiple HTTP methods. ans: True
How to trigger HTTP events in serverless? -correct
None of the options-ans
Using endpoints
Using blob storage
Using cosmosdb http hook
How to search for a specific plugin in serverless? -correct
sls search --query <plugin_name>
sls plugin --search <plugin_name>
sls plugin find <plugin_name>
sls plugin search --query <plugin_name> -ans
The same Azure Function can handle multiple HTTP methods. ans: True
-correct
Which section of serverless.yaml file specifies the cloud vendor details?
-correct
Cloud
Provider-ans
Vendor
Plugins
How to refer schedule defined under the custom section as the value to timer
property in serverless.yaml? -correct
${this:custom.schedule}
${this.custom.schedule}
${custom.schedule}
${self:custom.schedule}-ans
0 0/1 * ? * * * - This cron expression denotes to ___________. -correct
Run every hour
Run always
Run every second
Run every minute-ans
__________________ file manages IAC in a serverless framework. -correct
None of the options
package.json
handler.js
serverless.yaml-ans
Azure functions cannot access documentDB. ans:- False –correct
You can add multiple plugins for a service. ans: True -correct
This study source was downloaded by 100000804099454 from CourseHero.com on 08-26-2021 00:15:25 GMT -05:00
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Th
is
stu
dy
re
so
ur
ce
w
as
sh
are
d v
ia
Co
ur
se
He
ro
.co
m
https://www.coursehero.com/file/58061030/Severless-FPdocx/
_________ command creates Azure JavaScript service in the current directory.
sls create -template azure-javascript
sls create -template azure-nodejs
sls create --template azure-javascript
sls create --template azure-nodejs-ans
_________ folder will contain artifacts for deploy command.
service
.artifacts
.service
.serverless-ans
Which of these commands stream function fresco's outputs to stdout?
sls logs -f fresco-ans
sls std -f fresco
Sls stream -f fresco
Sls out -f fresco
How to refer myprop defined in file props.yaml in serverless.yaml?
${file(props.yaml):myprop}-ans
${props.yaml:myprop}
${file(props.yaml.myprop)}
${self(props.yaml):myprop}
_______ is not a valid Azure Function Event Trigger.
vm creations-ans
blob storage
http
cron schedules
How to refer a property in serverless.yaml file?
Using self-ans
Using this
Accessing directly with property name
Using file
_________ is not a valid argument for sls create command.
-tp -ans
-p
-n
-t
This study source was downloaded by 100000804099454 from CourseHero.com on 08-26-2021 00:15:25 GMT -05:00
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Th
is
stu
dy
re
so
ur
ce
w
as
sh
are
d v
ia
Co
ur
se
He
ro
.co
m
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Which one of the following options will not be taken care of by
serverless.yaml?
Business logic specification-ans
Vendor details
Function specification
Service declaration
________ prefix is used to load data from a json text file to a
serverless.yaml property.
text
file-ans
self
json
Which command is used to call the function in serverless framework?
sls invoke-ans
Sls call
sls start
sls create
How to trigger HTTP events in serverless?
None of the options
Using cosmosdb http hook
Using blob storage
Using endpoints-ans
Which of these argument syntaxes provide data from data.json to function
fresco?
None of the options
--path data.json-ans
--data data.json
--data ./data.json
_________ command is used to deploy function fresco.
sls deploy -function fresco
sls deploy --function fresco
sls deploy
sls deploy function -f fresco-ans
What is service in serverless.yaml?
Function name
Vendor details
Function grouping-ans
Subscription specification
Which subsection of functions specifies the function to be attached from
handler.js?
This study source was downloaded by 100000804099454 from CourseHero.com on 08-26-2021 00:15:25 GMT -05:00
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Th
is
stu
dy
re
so
ur
ce
w
as
sh
are
d v
ia
Co
ur
se
He
ro
.co
m
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Provider
Events
Function
Handler-ans
________ argument of sls create is used to specify the local path of the
template.
Template-path
name
path-ans
template
This syntax loads cron property value from config.js file, which is in the current directory.
${file(../config.js):cron}
This study source was downloaded by 100000804099454 from CourseHero.com on 08-26-2021 00:15:25 GMT -05:00
https://www.coursehero.com/file/58061030/Severless-FPdocx/
Th
is
stu
dy
re
so
ur
ce
w
as
sh
are
d v
ia
Co
ur
se
He
ro
.co
m
Powered by TCPDF (www.tcpdf.org)
https://www.coursehero.com/file/58061030/Severless-FPdocx/
http://www.tcpdf.org