exam questions

Exam 1z0-052 All Questions

View all questions & answers for the 1z0-052 exam

Exam 1z0-052 topic 1 question 37 discussion

Actual exam question from Oracle's 1z0-052
Question #: 37
Topic #: 1
[All 1z0-052 Questions]

The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on the procedure to many database users:

The users having permission to execute the procedure are able to insert records into the DEPARTMENTS table even though they do not have the INSERT privilege on the table. You want only those users who have privileges on the DEPARTMENTS table to be able to execute the procedure successfully.
What would you suggest to the PL/SQL developers to achieve this?

  • A. Create the procedure with definer's right.
  • B. Create the procedure with invoker's right.
  • C. Grant the EXECUTE privilege with GRANT OPTION on the procedure to selected users.
  • D. Create the procedure as part of a PL/SQL package and grant the EXECUTE privilege on the package to selected users.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Currently there are no comments in this discussion, be the first to comment!
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