nerdexam
Oracle

1Z0-997-20 · Question #120

Your company developed a function that needs to access the Oracle Database to inject some data to it at runtime. You are tasked to move this function to the Oracle Cloud Infrastructure (OCI) and use…

The correct answer is A. Add these two lines to your Dockerfile: groupadd """"gid 1000 fn && \ adduser """"uid 1000 """"gid. https://docs.cloud.oracle.com/en- us/iaas/Content/Functions/Tasks/functionsrunningasunprivileged.htm

Migrate Workloads to OCI

Question

Your company developed a function that needs to access the Oracle Database to inject some data to it at runtime. You are tasked to move this function to the Oracle Cloud Infrastructure (OCI) and use Oracle Functions and access Oracle Autonomous Database. You created a Dockerfile below to run this function, however, you are getting this error "cx_Oracle.DatabaseError:

ORA""12560: TNS:protocol adapter error". What should you do to make sure that Oracle Functions can run this Dockerfile properly? (Choose the best answer.)

Exhibit

1Z0-997-20 question #120 exhibit

Options

  • AAdd these two lines to your Dockerfile: groupadd """"gid 1000 fn && \ adduser """"uid 1000 """"gid
  • BUse """"privileged flag while running the Docker container to add runtime privilege
  • CUse """"cap""add=ALL flag while running the Docker container to add runtime capability
  • DYou ned to run this Container as root, so add this line: USER root

How the community answered

(34 responses)
  • A
    74% (25)
  • B
    15% (5)
  • C
    6% (2)
  • D
    6% (2)

Explanation

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

Topics

#Oracle Functions#Docker#Autonomous Database#container user permissions

Community Discussion

No community discussion yet for this question.

Full 1Z0-997-20 Practice