What is the outcome of the above code?

Evaluate the following block of code:
BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => ‘mycompany-com-permissions.xml’,
principal => ‘ACCT_MGR’,
is_grant => TRUE,
privilege => ‘connect’);
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
acl => ‘mycompany-com-permissions.xml’,
host => ‘*.mycompany.com’);
END;
What is the outcome of the above code?

Evaluate the following block of code:
BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => ‘mycompany-com-permissions.xml’,
principal => ‘ACCT_MGR’,
is_grant => TRUE,
privilege => ‘connect’);
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
acl => ‘mycompany-com-permissions.xml’,
host => ‘*.mycompany.com’);
END;
What is the outcome of the above code?

A.
It produces an error because a fully qualified host name needs to be specified.

B.
It produces an error because the range of ports associated with the hosts has not been
specified.

C.
It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and
RESOLVE privileges.

D.
It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT
privilege but not the RESOLVE privilege.



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Yennis

Yennis

I think the correct aswer is D

GuanYing Wu

GuanYing Wu

I also think D is the correct answer.
I did a test case on Oracle 11g.
BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => ‘test.xml’,
description => ‘for test’, — Must include this parameter
principal => ‘HR’,
is_grant => TRUE,
privilege => ‘connect’
);
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
acl => ‘test.xml’,
host => ‘*.oracletest.com’);
END;

select ACL,PRINCIPAL,PRIVILEGE from DBA_NETWORK_ACL_PRIVILEGES;
ACL PRINCIPAL PRIVILEGE
—————————— —————————— ————–
/sys/acls/test.xml HR connect

If want to add the resolve privilege, need run following script
BEGIN
dbms_network_acl_admin.add_privilege (
acl => ‘test.xml’,
principal => ‘HR’,
is_grant => TRUE,
privilege => ‘resolve’);
END;

select ACL,PRINCIPAL,PRIVILEGE from DBA_NETWORK_ACL_PRIVILEGES;

ACL PRINCIPAL PRIVILEGE
—————————— —————————— ————–
/sys/acls/test.xml HR connect
/sys/acls/test.xml HR resolve

shi1997

shi1997

I think D is the correct answer too.

Lp

Lp

Sorry typo error:

Ans is: D

eamon

eamon

Two points I would like to make to save a lot of people a lot of trouble.

1. Go to directly to 1Z0-053 v2, as the other lists of questions are NOT of good quality, and in 1Z0-053 v2 these wrong and ambiguous questions have been removed.

2. Please note that the version of oracle exam-ed in IZO-053 is 11.2.0.1 as stated here …
https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-053&p_org_id=&lang=
Therefore please refer to the 11.2.0.1 documentation found in …
http://oracle.su/docs/11g/nav/portal_booklist.htm