exam questions

Exam 1z0-146 All Questions

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

Exam 1z0-146 topic 1 question 103 discussion

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

A procedure is created in the SYS schema to allow users to change the password as follows: CREATE
OR REPLACE PROCEDURE change_password(p_username VARCHAR2 DEFAULT NULL, p_new_password VARCHAR2 DEFAULT NULL) IS v_sql_stmt VARCHAR2(500); BEGIN v_sql_stmt :=
'ALTER USER '||p_username ||' IDENTIFIED BY '
|| p_new_password; EXECUTE IMMEDIATE v_sql_stmt; END change_password; The SYS user has granted EXECUTE privilege on the procedure to the OE user. But OE is able to change the password for
SYS by using this procedure. How would you protect this?

  • A. by using the procedure as part of a PL/SQL package
  • B. by using a bind argument with dynamic SQL in the procedure
  • C. by using AUTHID DEFINER in the procedure to implement the definer's right
  • D. by using AUTHID CURRENT_USER in the procedure to implement the invoker's right
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
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 ...