← RGPV CS-502 DBMS June 2026 solved question paper
← RGPV CS-502 DBMS November 2019 solved question paper
RGPV CS-502 (GS) | June 2026 | Q8(b) | 7 marks (inferred)
Question (restated): Explain the data dictionary, security management and INSTEAD OF triggers.
Answer

A data dictionary is a system-maintained repository of metadata describing tables, columns, types, constraints, indexes, users and privileges. The DBMS uses metadata for name resolution, validation and optimization. INFORMATION_SCHEMA provides standardized views in many systems; PostgreSQL also has pg_catalog and Oracle has dictionary views such as USER_TABLES.
Security management protects confidentiality, integrity and availability. Authentication verifies identity; authorization grants privileges to users or roles. Least privilege, separation of duties, auditing, encryption and backups reduce risk. For example, GRANT SELECT ON Student TO examiner grants read access without allowing changes, subject to the system’s role and ownership rules. Parameterized queries help prevent SQL injection.
An INSTEAD OF trigger executes in place of a requested operation, commonly on a view that cannot otherwise be updated directly. It translates a view modification into appropriate base-table changes. PostgreSQL supports row-level INSTEAD OF triggers on views; Oracle and SQL Server also support variants, while MySQL does not support INSTEAD OF triggers.
-- PostgreSQL example; Student has ID and Name columnsCREATE VIEW student_names AS SELECT ID, Name FROM Student;
CREATE FUNCTION insert_student_name() RETURNS trigger
LANGUAGE plpgsql AS $$
BEGIN
INSERT INTO Student(ID, Name) VALUES (NEW.ID, NEW.Name);
RETURN NEW;
END; $$;
CREATE TRIGGER student_names_insert
INSTEAD OF INSERT ON student_names
FOR EACH ROW EXECUTE FUNCTION insert_student_name();
An INSERT into student_names invokes the function instead of the default view insertion. Other required base-table columns must have defaults or be supplied. Constraints and permissions still matter; triggers should not be used to bypass authorization. The dictionary describes objects, security controls access, and triggers implement event-driven behavior.
November 2019 – Question 7(b)
Question (restated): Explain privilege and role management.
Answer
Privileges authorize actions on database objects, while roles group privileges for job functions. Administrators create roles, grant minimum necessary permissions, assign roles to users, audit access and revoke obsolete rights. PostgreSQL example (assuming employee exists):
CREATE ROLE payroll_reader; GRANT SELECT ON employee TO payroll_reader; GRANT payroll_reader TO analyst; REVOKE payroll_reader FROM analyst;
Assume analyst already exists. Object ownership, inherited roles and grants to PUBLIC must also be checked; revoking one grant may not remove access through another role. Separate administrative and application accounts and use views to restrict sensitive columns.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion