Free Oracle 1Z0-1084-22 Exam Questions (page: 5)

Which two handle Oracle Functions authentication automatically?

  1. Oracle Cloud Infrastructure SDK
  2. cURL
  3. Oracle Cloud Infrastructure CLl
  4. Signed HTTP Request
  5. Fn Project CLI

Answer(s): C,E

Explanation:

Fn Project CLI
you can create an Fn Project CLI Context to Connect to Oracle Cloud Infrastructure and specify -- provider oracle This option enables Oracle Functions to perform authentication and authorization using Oracle Cloud Infrastructure request signing, private keys, user groups, and policies that grant permissions to those user groups.



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 applications named travel-app. Which command will help you complete this task successfully?

  1. oci fn function deploy --ap travel-ap --all
  2. fn deploy --ap travel-ap -- all
  3. oci fn application --application-name-ap deploy --all
  4. fn function deploy --all --application-name travel-ap

Answer(s): B

Explanation:

check the steps for Creating, Deploying, and Invoking a Helloworld Function https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionscreatingfirst.htm in step 7 that will deploy the funcation 7- Enter the following single Fn Project command to build the function and its dependencies as a Docker image called helloworld-func, push the image to the specified Docker registry, and deploy the function to Oracle Functions in the helloworld-app: $ fn -v deploy --app helloworld-app
The -v option simply shows more detail about what Fn Project commands are doing (see Using the Fn Project CLI with Oracle Functions).



A pod security policy (PSP) is implemented in your Oracle Cloud Infrastructure Container Engine for Kubernetes cluster Which rule can you use to prevent a container from running as root using PSP?

  1. NoPrivilege
  2. RunOnlyAsUser
  3. MustRunAsNonRoot
  4. forbiddenRoot

Answer(s): C

Explanation:

# Require the container to run without root privileges. rule: 'MustRunAsNonRoot'


Reference:

https://kubernetes.io/docs/concepts/policy/pod-security-policy/



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?

  1. There is no way to troubleshoot a function running on Oracle Functions.
  2. Enable function logging in the OCI console, include some print statements in your function code and use logs to troubleshoot this.
  3. Enable function remote debugging in the OCI console, and use your favorite IDE to inspect the function running on Oracle Functions.
  4. Enable function tracing in the OCI console, and go to OCI Monitoring console to see the function stack trace.

Answer(s): B

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


Reference:

https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsexportingfunctionlogfiles.htm



Viewing page 5 of 19



Post your Comments and Discuss Oracle 1Z0-1084-22 exam prep with other Community members:

1Z0-1084-22 Exam Discussions & Posts