exam questions

Exam 1z0-062 All Questions

View all questions & answers for the 1z0-062 exam

Exam 1z0-062 topic 1 question 81 discussion

Actual exam question from Oracle's 1z0-062
Question #: 81
Topic #: 1
[All 1z0-062 Questions]

You execute the following commands to audit database activities:
SQL > ALTER SYSTEM SET AUDIT_TRIAL=DB, EXTENDED SCOPE=SPFILE;
SQL > AUDIT SELECT TABLE, INSERT TABLE, DELETE TABLE BY JOHN By SESSION WHENEVER SUCCESSFUL;
Which statement is true about the audit record that generated when auditing after instance restarts?

  • A. One audit record is created for every successful execution of a SELECT, INSERT OR DELETE command on a table, and contains the SQL text for the SQL Statements.
  • B. One audit record is created for every successful execution of a SELECT, INSERT OR DELETE command, and contains the execution plan for the SQL statements.
  • C. One audit record is created for the whole session if john successfully executes a SELECT, INSERT, or DELETE command, and contains the execution plan for the SQL statements.
  • D. One audit record is created for the whole session if JOHN successfully executes a select command, and contains the SQL text and bind variables used.
  • E. One audit record is created for the whole session if john successfully executes a SELECT, INSERT, or DELETE command on a table, and contains the
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Note:
* BY SESSION
In earlier releases, BY SESSION caused the database to write a single record for all SQL statements or operations of the same type executed on the same schema objects in the same session. Beginning with this release (11g) of Oracle Database, both BY SESSION and BY ACCESS cause Oracle Database to write one audit record for each audited statement and operation.
* BY ACCESS
Specify BY ACCESS if you want Oracle Database to write one record for each audited statement and operation.
Note:
If you specify either a SQL statement shortcut or a system privilege that audits a data definition language (DDL) statement, then the database always audits by access. In all other cases, the database honors the BY SESSION or BY ACCESS specification.
* For each audited operation, Oracle Database produces an audit record containing this information:
/ The user performing the operation
/ The type of operation
/ The object involved in the operation
/ The date and time of the operation
References:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
luizyto
2 years, 3 months ago
Selected Answer: A
https://docs.oracle.com/database/121/SQLRF/statements_4007.htm#SQLRF01107
upvoted 1 times
...
luizyto
2 years, 3 months ago
A, one audit for each statement. https://docs.oracle.com/database/121/SQLRF/statements_4007.htm#SQLRF01107
upvoted 1 times
...
jackymak
2 years, 11 months ago
I think It is E, D is missing the INSERT and DELETE
upvoted 1 times
...
bigswole
3 years, 3 months ago
E is correct since AUDIT_TRAIL=db, extended was used "db, extended Performs all actions of AUDIT_TRAIL=db, and also populates the SQL bind and SQL text CLOB-type columns of the SYS.AUD$ table, when available. These two columns are populated only when this parameter is specified." - https://docs.oracle.com/database/121/REFRN/GUID-BD86F593-B606-4367-9FB6-8DAB2E47E7FA.htm#REFRN10006
upvoted 2 times
...
katetel
3 years, 4 months ago
correct answer is : E E. One audit record is created for the whole session if john successfully executes a SELECT, INSERT, or DELETE command on a table, and contains the execution plan, SQL text, and bind variables used.
upvoted 3 times
...
lollo1234
3 years, 9 months ago
I go for D. BY SESSION means that 1 Record for the whole session is beeing created. Also AUDIT_TRIAL=DB, EXTENDED means: Performs all actions of AUDIT_TRAIL=db, and also populates the SQL bind and SQL text CLOB-type columns of the SYS.AUD$ table, when available. Reference: https://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams017.htm#REFRN10006
upvoted 2 times
...
TuxBingo
3 years, 10 months ago
Correct Asnwer is: A
upvoted 1 times
...
charan94
3 years, 10 months ago
Answer is D. As question clear mentions user john should be audited..
upvoted 1 times
...
Modasser
4 years ago
Answer is A
upvoted 2 times
...
dancymonkey
4 years, 5 months ago
E is not clear I would go for D
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago