The questions can come in any order, so make sure you are selecting right option for all questions.
1. In a database application, a user initiates a complex transaction involving multiple steps. You want to provide a mechanism for the user to roll back to a specific point in the transaction in case of errors. Describe the sequence of TCL statements you wou(a) BEGIN TRANSACTION; -- Step 1 -- SAVEPOINT step1; -- Step 2 -- SAVEPOINT step2; -- If an issue occurs -- ROLLBACK TO step1; -- Continue with additional steps -- COMMIT;
GRANT SELECT ON employees TO user1;
(c) Grants USER1 permission to select data from the EMPLOYEES table.
1. For ProjectManager role, grant select and update privileges on the project_files
2. For Developer role, grant select, insert and update privileges on the project_files
3. For Admin role, grant all privileges on the project_files
(a) CREATE ROLE ProjectManager; GRANT SELECT, UPDATE ON project_files TO ProjectManager; CREATE ROLE Developer; GRANT SELECT, INSERT, UPDATE ON project_files TO Developer; CREATE ROLE Admin; GRANT ALL PRIVILEGES ON project_files TO Admin;
1. For CustomerServiceAgent role, grant select and update privileges on customer_data
2. For Manage role, grant select, update and delete privileges on customer_data
3. For Admin role, grant all privileges on customer_data
(a) CREATE ROLE CustomerServiceAgent; GRANT SELECT, UPDATE ON customer_data TO CustomerServiceAgent; CREATE ROLE Manager; GRANT SELECT, UPDATE, DELETE ON customer_data TO Manager; CREATE ROLE Admin; GRANT ALL PRIVILEGES ON customer_data TO Admin;
REVOKE DELETE ON employees FROM user1;
(a) Revokes DELETE permission from USER1 for the EMPLOYEES table.
(c) GRANT SELECT(salary) ON employees TO HR_manager; GRANT SELECT(salary), UPDATE(salary) ON employees TO Finance_manager;
GRANT SELECT, INSERT ON employees TO hr_user;
(b) Grants HR_USER permission to SELECT and INSERT data into the EMPLOYEES table.
REVOKE UPDATE ON employees FROM user2;
(d) Revokes UPDATE permission from USER2 for the EMPLOYEES table.
(a) GRANT ALL PRIVILEGES
Note: Only a few questions from the test are listed here. If you are asked any other question that is not on the list, just comment the question and I'll answer the question as soon as I can.