Oracle
1Z0-062 · Question #45
1Z0-062 Question #45: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-062 to reveal the answer and full explanation for question #45. The question stem and answer options stay visible for context.
Question
In your multitenant container database (CDB) containing pluggable database (PDBs), the HR user executes the following commands to create and grant privileges on a procedure: CREATE OR REPLACE PROCEDURE create_test_v (v_emp_id NUMBER, v_ename VARCHAR2, v_SALARY NUMBER, v_dept_id NUMBER) BEGIN INSERT INTO hr.test VALUES (V_emp_id, V_ename, V_salary, V_dept_id); END; / GRANT EXECUTE ON CREATE_TEST TO john, jim, smith, king; How can you prevent users having the EXECUTE privilege on the CREATE_TEST procedure from inserting values into tables on which they do not have any privileges?
Options
- ACreate the CREATE_TEST procedure with definer's rights.
- BGrant the EXECUTE privilege to users with GRANT OPTION on the CREATE_TEST procedure.
- CCreate the CREATE_TEST procedure with invoker's rights.
- DCreate the CREATE_TEST procedure as part of a package and grant users the EXECUTE
Unlock 1Z0-062 to see the answer
You've previewed enough free 1Z0-062 questions. Unlock 1Z0-062 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.