QuestionQ40

VerifiedDatabase Vault and Access Control

As the security administrator, you are required to protect the hr_admin role with these requirements:

  1. HR admin users must work on-site, as defined by a workstation IP in the range 192.0.2.10 192.0.2.20.
  2. HR admin users cannot work outside normal working hours (8 AM–5 PM).

You decide to create a secure application role. Examine this code:

Question Image

Choose two
Explanation

A secure application role is enabled only through its associated authorized PL/SQL procedure. That procedure must use invoker’s rights (AUTHID CURRENT_USER) in order to enable the role, and HR admin users require EXECUTE on the procedure to invoke the validation and enablement logic. The procedure—not a direct SET ROLE hr_admin command issued by the user—sets the role after its IP-address and time checks succeed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!