You are building a cloud native, serverless travel application with multiple Oracle Functions in Java, Python and Node.js.
You need to build and deploy these functions to a single application named travel-app.
Which command will help you complete this task successfully? (Choose the best answer.)
Click on the arrows to vote for the correct answer
A. B. C. D.B.
https://blogs.oracle.com/developers/oracle-functions:-serverless-on-oracle-cloud-developers-guide-to-getting-started-quicklyThe correct answer is B. fn deploy ""app travel"" --all
.
Explanation:
The question asks about deploying multiple Oracle Functions written in different programming languages as part of a single application named travel-app
.
To deploy functions in Oracle Functions, we need to have an application first. An application is a logical container for functions and other resources, which can be used to group and manage functions based on the requirements. In this case, we need to create an application named travel-app
and then deploy our functions to this application.
The fn deploy
command is used to deploy functions to an Oracle Functions application. The syntax of the command is as follows:
cssfn deploy [OPTIONS] [app_name]
Here, app_name
is the name of the application to which we want to deploy our functions. The --all
option is used to deploy all the functions present in the current directory.
Option A: oci fn function deploy ""app travel""app ""all
This command is incorrect as it has multiple syntax errors. The correct syntax should be oci fn function deploy --application <app_name> --function <function_name>
. Also, the quotes are not placed correctly.
Option B: fn deploy ""app travel"" --all
This command is the correct answer as it deploys all the functions in the current directory to the application named travel-app
.
Option C: oci fn application ""application""name travel""app deploy ""all
This command has a syntax error. The correct syntax should be oci fn application deploy --application <app_name> --function <function_name>
. Also, the quotes are not placed correctly.
Option D: fn function deploy ""all ""application""name travel""app
This command is incorrect as the --all
option is used incorrectly. The correct syntax for this option is --all-apps
instead of --all
. Also, the quotes are not placed correctly.
In conclusion, the correct command to deploy multiple Oracle Functions in Java, Python and Node.js as part of a single application named travel-app
is fn deploy ""app travel"" --all
.