1Z0-052 · Question #48
You want to create a role to meet these requirements: 1. The role is to be protected from unauthorized usage. 2. The password of the role is not to be embedded in the application source code or…
The correct answer is B. Create the role as a secure application role. A secure application role delegates role-enabling logic to a PL/SQL stored procedure, eliminating any need for hardcoded passwords in application code or database tables.
Question
Options
- ACreate the role with external authentication.
- BCreate the role as a secure application role.
- CCreate the role as a password-protected role.
- DCreate a role and use Fine-Grained Access Control (FGAC) to secure the role.
How the community answered
(39 responses)- A3% (1)
- B77% (30)
- C8% (3)
- D13% (5)
Why each option
A secure application role delegates role-enabling logic to a PL/SQL stored procedure, eliminating any need for hardcoded passwords in application code or database tables.
An externally authenticated role relies on OS credentials for role assignment but does not provide the application-level policy enforcement needed to meet both requirements without relying on OS identity.
A secure application role (created with IDENTIFIED USING package_name) ties role enablement to a trusted PL/SQL stored procedure that can verify session context, application state, or other conditions before granting the role - protecting against unauthorized use while ensuring no password is ever embedded in source code or stored in a table, satisfying both requirements.
A password-protected role requires the application to supply the password at runtime, which must either be hardcoded in source code or stored in a database table - directly violating requirement 2.
Fine-Grained Access Control (VPD/FGAC) restricts data access at the row or column level and is not a mechanism for controlling role enablement or protecting the role activation process.
Concept tested: Oracle secure application roles using PL/SQL packages
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/configuring-privilege-and-role-authorization.html
Topics
Community Discussion
No community discussion yet for this question.