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
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
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)- A74% (25)
- B15% (5)
- C6% (2)
- D6% (2)
Explanation
https://docs.cloud.oracle.com/en- us/iaas/Content/Functions/Tasks/functionsrunningasunprivileged.htm
Topics
Community Discussion
No community discussion yet for this question.
