You work as a Software Developer for UcTech Inc. You are building a Web site that will contain study materials on the Java language. The company wants that members can access all the pages, but nonmembers have only limited access to the Web site pages. Which of the following security mechanisms will you use to accomplish the task?
A. Data integrity
B. Authentication
C. Authorization
D. Confidentiality
正解:C
質問 2:
The ______________ method of the EJBContext interface tests whether the client is a member of the role specified in the argument to the method.
A. isMember()
B. getCallerPrincipal()
C. getUserTransaction()
D. isAuthorized()
E. isCallerInRole(String rolw)
正解:E
質問 3:
Which of the following data type values is returned by the System.in.read() console input function?
A. Integer
B. Float
C. Character
D. String
正解:A
質問 4:
Which of the following methods throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number?
A. checkConnect()
B. checkExec()
C. checkDelete()
D. checkCreate()
正解:A
質問 5:
You work as a Software Developer for UcTech Inc. You want the deployment descriptor to contain entries for the authentication type and the security realm. In order to accomplish this, you have to use the sub-elements of the <login-config> element. Which of the following will you use?
Each correct answer represents a complete solution. Choose all that apply.
A. <auth-type>
B. <realm-type>
C. <login-form-type>
D. <form-login-config>
E. <realm-name>
F. <auth-name>
G. <auth-method>
正解:D,E,G
質問 6:
Mark works as a Programmer for InfoTech Inc. He develops a class named Data that imports all the required packages. The class Data uses a method named PrintData(), which uses a method that checks whether the caller has a BeanUser security role. Which of the following code of the method PrintData() will satisfy the requirement?
A. public void PrintData()
{@DeclareRoles("BeanUser")
@Resource SessionContext ctx;
@RolesAllowed("BeanUser")
Principal caller = ctx.getCallerPrincipal();
if (ctx.isCallerInRole("BeanUser")) {
System.out.println("It is the correct user");}
else{System.out.println("It is the incorrect user");}//more code}
B. public void PrintData()
{@DeclareRoles("BeanUser")
@Resource SessionContext ctx;
@RolesAllowed("BeanUser")
Principal caller = ctx.getEJBHome();
if (!isCallerInRole(ctx)) {System.out.println("It is the correct user");}
else{System.out.println("It is the incorrect user");}//more code}
C. public void PrintData()
{@DeclareRoles("BeanUser")
@Resource SessionContext ctx;
@RolesAllowed("BeanUser")
Principal caller = ctx.getCallerPrincipal();
if (ctx.getStatus("BeanUser")) {System.out.println("It is the correct user");}
else{System.out.println("It is the incorrect user");}//more code}
D. public void PrintData()
{
@DeclareRoles("BeanUser")
@Resource SessionContext ctx;
@RolesAllowed("BeanUser")
Principal caller = ctx.getCallerPrincipal();
if (ctx.getCallerIdentity("BeanUser")) {
System.out.println("It is the correct user");}
else{System.out.println("It is the incorrect user");}//more code}
正解:A
質問 7:
Which of the following deployment descriptor elements must contain the <transport-guarantee> element as its mandatory sub-element?
A. <auth-constraint>
B. <login-config>
C. <user-data-constraint>
D. <web-resource-collection>
正解:C
質問 8:
Identify whether the given statement is true or false.
"When an exception occurs in a try block, each catch statement following the try block is inspected in sequential order, and the last one whose type matches that type of exception is executed."
A. False
B. True
正解:A
Kitani -
問題集GSSP-JaVaのPDFバージョンは非常に明確です。ありがとう。 GSSP-JaVa試験に合格しました。