A Native Application provider has created a database named 'app_db' using 'CREATE DATABASE app_db WITH MANAGED ACCESS;'. They now need to create a secure view that exposes a subset of data from an underlying table 'sensitive_data' within the schema 'internal_schema' of 'app_db' to a consumer's role named 'consumer role'. They wish to minimize data exposure while adhering to managed access principles. Which set of SQL statements represents the MOST secure and correct approach?
Correct Answer: B
Creating a 'SECURE VIEW is essential. A secure view hides the underlying data and implementation details from the consumer. The 'OR REPLACE clause ensures idempotency. Granting only 'SELECT is the principle of least privilege. Secure views ensure data security and integrity while working within the constraints of MANAGED ACCESS. Option A, missing the SECURE keyword, doesn't hide the underlying data. C and D have grant all, which goes against least privilege. E, while attempting to add more security with REVOKE ALL, is unnecessary given the 'WITH MANAGED ACCESS property. B is the most secure and appropriate solution.