OCP Security And Upgrades Practice Question
You are implementing Unified Auditing in an Oracle 23ai database. You need to capture all actions performed by a specific user 'APP_USER', regardless of the object accessed. Which SQL statement is correct?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
CREATE AUDIT POLICY audit_app ACTIONS ALL BY APP_USER;
CREATE AUDIT POLICY policy_name ACTIONS ALL BY APP_USER is the correct syntax for auditing all actions by a specific user.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
AUDIT POLICY audit_app USER APP_USER;
Why it's wrong here
This is not valid syntax for creating audit policies.
- ✗
CREATE AUDIT POLICY audit_app FOR APP_USER;
Why it's wrong here
This syntax is incomplete as it misses the ACTIONS clause.
- ✗
AUDIT ALL ACTIONS BY APP_USER;
Why it's wrong here
This is legacy auditing syntax, not Unified Auditing.
- ✓
CREATE AUDIT POLICY audit_app ACTIONS ALL BY APP_USER;
Why this is correct
The 'ACTIONS ALL BY username' syntax is correct for auditing every action performed by that user.
About these practice questions
One of 314 original OCP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Oracle exam blueprint
This OCP practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the OCP exam.