nerdexam
Oracle

1Z0-062 · Question #37

An administrator account is granted the CREATE SESSION and SET CONTAINER system privileges. A multitenant container database (CDB) instant has the following parameter set: THREADED_EXECUTION = FALSE…

The correct answer is A. You can conned as a common user by using the connect statement. C. You can connect by using easy connect. D. You can connect by using OS authentication. E. You can connect by using a Net Service name. In a read-only CDB root, common users can connect via the CONNECT statement, Easy Connect, OS authentication, and a Net Service name, but local users have no presence in root and cannot connect there by any method.

Administering User Security

Question

An administrator account is granted the CREATE SESSION and SET CONTAINER system privileges. A multitenant container database (CDB) instant has the following parameter set:

THREADED_EXECUTION = FALSE Which four statements are true about this administrator establishing connections to root in a CDB that has been opened in read only mode?

Options

  • AYou can conned as a common user by using the connect statement.
  • BYou can connect as a local user by using the connect statement.
  • CYou can connect by using easy connect.
  • DYou can connect by using OS authentication.
  • EYou can connect by using a Net Service name.
  • FYou can connect as a local user by using the SET CONTAINER statement.

How the community answered

(27 responses)
  • A
    44% (12)
  • B
    22% (6)
  • F
    33% (9)

Why each option

In a read-only CDB root, common users can connect via the CONNECT statement, Easy Connect, OS authentication, and a Net Service name, but local users have no presence in root and cannot connect there by any method.

AYou can conned as a common user by using the connect statement.Correct

Common users are provisioned at the CDB root level with a c## prefix and hold their CREATE SESSION privilege there, so a standard SQL*Plus CONNECT statement authenticates them successfully even when the root is open read-only. Read-only mode restricts data modification, not session establishment.

BYou can connect as a local user by using the connect statement.

Local users are schema accounts created inside a specific PDB and do not exist in the CDB root container, making it impossible to authenticate as a local user when connecting to root.

CYou can connect by using easy connect.Correct

Easy Connect uses a host:port/service_name string resolved entirely on the client side and is independent of the database open mode, so it works for any user with CREATE SESSION on the target container.

DYou can connect by using OS authentication.Correct

OS authentication is available because THREADED_EXECUTION=FALSE keeps the dedicated server process model active, which allows the Oracle listener to verify the operating system user identity without requiring a password. If THREADED_EXECUTION were TRUE, OS authentication would be blocked.

EYou can connect by using a Net Service name.Correct

A Net Service name in tnsnames.ora or an LDAP directory is simply a network alias that resolves to a connect descriptor; the database open mode has no effect on whether this naming method can be used to establish a session.

FYou can connect as a local user by using the SET CONTAINER statement.

SET CONTAINER switches an already-connected session between containers and requires a common user or a user with the appropriate privilege; local users have no authentication context in root and cannot use this statement to connect there.

Concept tested: CDB root connection methods, common vs. local users, THREADED_EXECUTION

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/administering-a-cdb-with-sql-plus.html

Topics

#Multitenant connections#User privileges#Common user#Local user#OS authentication

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice