1z0-149 Exam QuestionsBrowse all questions from this exam

1z0-149 Exam - Question 15


User ORA41 executes these statements successfully:

Now, examine this statement which is executed successfully by user ORA61 after a successful login:

EXECUTE ora41.update_emp_proc(100,25000);

Which two are true? (Choose two.)

Show Answer
Correct Answer: ACD

The salary will be changed for employee 100 in the EMPLOYEES table owned by ORA41 because the procedure is defined with AUTHID CURRENT_USER, meaning it will execute with the privileges of ORA41 who owns the procedure and the EMPLOYEES table. The UPDATE privilege on ORA41.EMPLOYEES is not inherited by ORA61 through the procedure because ORA41 has granted execute rights on the procedure to ORA61, but no additional update privileges specifically for the table.

Discussion

6 comments
Sign in to comment
alinaabalaseiOptions: CD
May 11, 2023

C and D are correct.

jfc1Options: CD
Jul 3, 2023

C and D are correct because of the invoker's right

egznrdOptions: CD
Sep 11, 2023

C is correct. Tested. Notice, that question says that statement was executed successfully by user ORA61 after a successful login. Procedure update_emp_proc was executed in the context of CURRENT_SCHEMA (ORA61) . That means, that ORA61.employees table was updated successfuly. Reference https://docs.oracle.com/en/database/oracle/oracle-database/19/lnpls/plsql-subprograms.html#GUID-41D23DE7-3C07-41CF-962B-F92B696594B5

pmeyerOptions: DE
May 21, 2023

I think is D and E.

Mcromeo
May 6, 2024

E is not correct. I tested it

ClickOptions: AD
Apr 19, 2023

AD is correc

McromeoOptions: CD
May 6, 2024

CD are correct