1Z0-1084-20 · Question #38
You are working on a serverless DevSecOps application using Oracle Functions. You have deployed a Python function that uses the Oracle Cloud Infrastructure (OCI) Python SDK to stop any OC1 Compute…
The correct answer is B. Enable function logging in the OCI console, include some print statements in your function code. Storing and Viewing Function Logs When a function you've deployed to Oracle Functions is invoked, you'll typically want to store the function's logs so that you can review them later. You specify where Oracle Functions stores a function's logs by setting a logging policy for…
Question
You are working on a serverless DevSecOps application using Oracle Functions. You have deployed a Python function that uses the Oracle Cloud Infrastructure (OCI) Python SDK to stop any OC1 Compute instance that does not comply with your corporate security standards There are 3 non compliant OCI Compute instances. However, when you invoke this function none of the instances were stopped. How should you troubleshoot this?
Options
- AThere is no way to troubleshoot a function running on Oracle Functions.
- BEnable function logging in the OCI console, include some print statements in your function code
- CEnable function remote debugging in the OCI console, and use your favorite IDE to inspect the
- DEnable function tracing in the OCI console, and go to OCI Monitoring console to see the function
How the community answered
(26 responses)- A4% (1)
- B77% (20)
- C8% (2)
- D12% (3)
Explanation
Storing and Viewing Function Logs When a function you've deployed to Oracle Functions is invoked, you'll typically want to store the function's logs so that you can review them later. You specify where Oracle Functions stores a function's logs by setting a logging policy for the application containing the function. You set application logging policies in the Console. Whenever a function is invoked in this application, its logs are stored according to the logging policy that you specified. you can view the logs for a function that have been stored in a storage bucket in Oracle Cloud Infrastructure Object Storage https://docs.cloud.oracle.com/en- us/iaas/Content/Functions/Tasks/functionsexportingfunctionlogfiles.htm
Topics
Community Discussion
No community discussion yet for this question.