Join the discussion
Question 13/26
You have written a Node.js function and deployed it to Oracle Functions. Next, you need to call this function from a microservicewritten in Java deployed on Oracle Cloud Infrastructure (OCI) Container Engine for Kubernetes (OKE).
Which can help you to achieve this?
Which can help you to achieve this?
Correct Answer: D
Explanation
Invoking Functions
You can invoke a functionthat you've deployed to Oracle Functions in different ways:
1. Using the Fn Project CLI.
2. Using the Oracle Cloud Infrastructure CLI.
3. Using the Oracle Cloud Infrastructure SDKs.
4. Making a signed HTTP request to the function's invoke endpoint. Every function has an invoke endpoint.
Using the Fn Project CLI to Invoke Functions
To invoke a function deployed to Oracle Functions using the Fn Project CLI:
Log in to your development environment as a functions developer.
In a terminal window, enter:
$ fn invoke <app-name> <function-name>
Using SDKs to Invoke Functions:
If you're writing a program to invoke a function in a language for which an Oracle Cloud Infrastructure SDK exists, Oracle recommends you use that SDK to send API requests to invoke thefunction. Among other things, the SDK will facilitate Oracle Cloud Infrastructure authentication.
References:
https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsinvokingfunctions.htm
Invoking Functions
You can invoke a functionthat you've deployed to Oracle Functions in different ways:
1. Using the Fn Project CLI.
2. Using the Oracle Cloud Infrastructure CLI.
3. Using the Oracle Cloud Infrastructure SDKs.
4. Making a signed HTTP request to the function's invoke endpoint. Every function has an invoke endpoint.
Using the Fn Project CLI to Invoke Functions
To invoke a function deployed to Oracle Functions using the Fn Project CLI:
Log in to your development environment as a functions developer.
In a terminal window, enter:
$ fn invoke <app-name> <function-name>
Using SDKs to Invoke Functions:
If you're writing a program to invoke a function in a language for which an Oracle Cloud Infrastructure SDK exists, Oracle recommends you use that SDK to send API requests to invoke thefunction. Among other things, the SDK will facilitate Oracle Cloud Infrastructure authentication.
References:
https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsinvokingfunctions.htm
Add Comments
- Other Question (26q)
- Q1. Your organization uses a federated identity provider to login to your Oracle Cloud Infrast...
- Q2. You are developing a polyglot serverless application using Oracle Functions. Which languag...
- Q3. You are developing a serverless application with Oracle Functions. Your function needs to ...
- Q4. You are processing millions of files in an Oracle Cloud Infrastructure (OCI) Object Storag...
- Q5. Which two are benefits of distributed systems?...
- Q6. Which two arerequired to enable Oracle Cloud Infrastructure (OCI) Container Engine for Kub...
- Q7. You have been asked to create a stateful application deployed in Oracle Cloud Infrastructu...
- Q8. How can you find details of the tolerations field for the sample YAML file below? (Exhibit...
- Q9. Which two statements are true for service choreography?...
- Q10. Which is NOT a supported SDK on Oracle Cloud Infrastructure (OCI)?...
- Q11. In a Linux environment, what is the default locations of the configuration file that Oracl...
- Q12. You are building a container image and pushing it to the Oracle Cloud Infrastructure Regis...
- Q13. You have written a Node.js function and deployed it to Oracle Functions. Next, you need to...
- Q14. Which pattern can help you minimize the probability of cascading failures in your system d...
- Q15. Which statement accurately describes Oracle Cloud Infrastructure (OCI) Load Balancer integ...
- Q16. You are implementing logging in your services that will be running in Oracle Cloud Infrast...
- Q17. A pod security policy (PSP) is implemented in your Oracle Cloud Infrastructure Container E...
- Q18. Which concepthe following steps reference Console instructionsCloud Infrastructure Resourc...
- Q19. What is the minimum amount of storage that a persistent volume claim can obtain InOracle C...
- Q20. You are deploying an API via Oracle Cloud Infrastructure (OCI) API Gateway and you want to...
- Q21. What is the difference between blue/green and canary deployment strategies?...
- Q22. Which is NOT a valid option to execute a function deployed on Oracle Functions?...
- Q23. You want to push a new image in the Oracle Cloud Infrastructure (OCI) Registry. Which two ...
- Q24. Who is responsiblefor patching, upgrading and maintaining the worker nodes in Oracle Cloud...
- Q25. A service you are deploying to Oracle infrastructure (OCI) Container En9ine for Kubernetes...
- Q26. You are developing a serverless applicationwith Oracle Functions. You have created a funct...
