exam questions

Exam 1z0-997-22 All Questions

View all questions & answers for the 1z0-997-22 exam

Exam 1z0-997-22 topic 1 question 24 discussion

Actual exam question from Oracle's 1z0-997-22
Question #: 24
Topic #: 1
[All 1z0-997-22 Questions]

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?

  • A. Use --privileged flag while running the Docker container to add runtime privilege.
  • B. Use –cap-add-ALL flag while running the Docker container to add runtime capability.
  • C. You need to run this Container as root, so add this line:
    USER root
  • D. Add these two lines to your Dockerfile:
    groupadd --gid 1000 fn && \
    adduser --uid 1000 --gid fn fn
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
p55p
1 year, 6 months ago
Selected Answer: D
D is correct as already explained
upvoted 1 times
...
AAAA333
1 year, 8 months ago
Selected Answer: D
Its correct
upvoted 1 times
...
awsmonster
1 year, 11 months ago
Selected Answer: D
https://docs.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsrunningasunprivileged.htm#Permissions_Granted_to_Containers_Running_Functions
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago