hiexam
oracle · 1z0-1084-20 · Q604 · multiple_choice · topic_1

You are working on a serverless DevSecOps application using Oracle Functions. You have deployed a Python function that…

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.)
  • 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.
Explanation
Would go with B, for this time. Debugging would be in case of an error returned by the function. more info via https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsexportingfunctionlogfiles.htm https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionstroubleshooting.htm

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.