Oracle Cloud Platform Data Integration 2020 Specialist — Question 13
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 OCI 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? (Choose the best answer.)
Answer options
- A. There is no way to troubleshoot a function running on Oracle Functions.
- B. Enable function logging in the OCI console, include some print statements in your function code and use logs to troubleshoot this.
- C. Enable function remote debugging in the OCI console, and use your favorite IDE to inspect the function running on Oracle Functions.
- D. Enable function tracing in the OCI console, and go to OCI Monitoring console to see the function stack trace.
Correct answer: C
Explanation
The correct answer is C because enabling remote debugging allows you to inspect the function in real-time and identify any issues with its execution. Options A and B are incorrect as they either deny troubleshooting capabilities or suggest a less effective method for debugging. Option D, while useful for tracing, does not provide the same level of insight as remote debugging for understanding the function's behavior during execution.