[Free] 2017(Sep) CollectDumps Testking GIAC GSSP-Java Dumps with VCE and PDF 151-160

CollectDumps 2017 Sep GIAC Official New Released GSSP-Java
100% Free Download! 100% Pass Guaranteed!
http://www.CollectDumps.com/GSSP-Java.html

GIAC Secure Software Programmer – Java

Question No: 151 – (Topic 2)

Mark works as a Programmer for InfoTech Inc. He develops an application named AccountServlet. He wants to ensure that no body can access his application, i.e., he does not want any role to have access on his application. He defines the following security constraint for his application.

lt;security-constraintgt;

lt;web-resource-collectiongt;

lt;web-resource-namegt;AccountServletlt;/web-resource-namegt;

lt;url-patterngt;/acme/Accountlt;/url-patterngt;

lt;http-methodgt;GETlt;/http-methodgt;

lt;http-methodgt;PUTlt;/http-methodgt;

lt;/web-resource-collectiongt;

//code

lt;/security-constraintgt;

Which of the following options will be used to secure his application?

  1. lt;auth-constraint/gt;

  2. Skip the lt;auth-constraintgt; element in the security constraint code.

  3. lt;auth-constraintgt;

    lt;role-namegt;*lt;/role-namegt;

    lt;/auth-constraintgt;

  4. lt;auth-constraintgt;

lt;role-namegt;NONElt;/role-namegt;

lt;/auth-constraintgt;

Answer: A

Question No: 152 – (Topic 2)

Mark works as a Programmer for InfoTech Inc. He creates an error page named

PageDoesNotExist.jsp. He wants to ensure that the PageDoesNotExist.jsp page will always be displayed if the server cannot find the requested page or if the request is for a page that does not exist on the server. Which of the following error-page code declarations will be used?

  1. lt;error-pagegt;

    lt;error-codegt;406lt;/error-codegt;

    lt;locationgt; PageDoesNotExist.jsplt;/locationgt;

    lt;/error-pagegt;

  2. lt;error-pagegt;

    lt;error-codegt;405lt;/error-codegt;

    lt;locationgt; PageDoesNotExist.jsplt;/locationgt;

    lt;/error-pagegt;

  3. lt;error-pagegt;

    lt;error-codegt;404lt;/error-codegt;

    lt;locationgt; PageDoesNotExist.jsplt;/locationgt;

    lt;/error-pagegt;

  4. lt;error-pagegt;

lt;error-codegt;503lt;/error-codegt;

lt;locationgt; PageDoesNotExist.jsplt;/locationgt;

lt;/error-pagegt;

Answer: C

Question No: 153 – (Topic 2)

Which of the following are the advantages of JAR files over TAR files? Each correct answer represents a complete solution. Choose all that apply.

  1. It cannot be digitally signed.

  2. It provides package sealing.

  3. It can be compressed.

  4. It provides package versioning.

Answer: B,C,D

Question No: 154 – (Topic 2)

You work as a Software Developer for BlueWell Inc. Your team creates a Web site for online shopping.

All payments are made through credit cards. Hence, you want to ensure that the information transferred between the customers and your Web site is encrypted. Which of the following authentication mechanisms will you use to accomplish the task?

  1. FORM

  2. DIGEST

  3. BASIC

  4. CLIENT-CERT

Answer: D

Question No: 155 – (Topic 2)

A security manager is an object that defines a security policy for an application. Which of the following is used by security managers to indicate security domains?

  1. Deployer

  2. Container provider

  3. Class loader

  4. Bean provider

Answer: C

Question No: 156 – (Topic 2)

Which of the following statements about a filter are true?

Each correct answer represents a complete solution. Choose all that apply.

  1. Like a servlet, a filter is also declared in the deployment descriptor.

  2. The life cycle of a filter is managed by the container.

  3. The life cycle of a filter has three methods, namely init(), service(), and destroy().

  4. Every filter must implement the Filter interface.

Answer: A,B,D

Question No: 157 – (Topic 2)

Rachel works as a Software Developer for Vivanet Inc. She writes the following code using Java.

class catchexcp

{public static void metha()

{int x=4/0;System.out.print(quot;Caught exceptionquot;);} public static void main(String args[])

{try{metha();}catch(ArithmeticException ae){System.out.print(quot;Caught ArithmeticExceptionquot;);}finally{try{metha();}catch(ArithmeticException ae){System.out.print(quot;ReCaught ArithmeticExceptionquot;);}}}}

What will happen when she tries to compile and execute the code?

  1. It will compile and execute and will display ReCaught ArithmeticException.

  2. It will not compile.

  3. It will compile but will throw an exception at runtime.

  4. It will compile and execute and will display Caught exception Caught ArithmeticException

    ReCaught ArithmeticException.

  5. It will compile and execute and will display Caught exception ReCaught ArithmeticException.

  6. It will compile and execute and will display Caught ArithmeticException ReCaught ArithmeticException.

Answer: F

Question No: 158 – (Topic 2)

Which of the following pieces of codes will be placed at the line XXX to successfully

compile the given class? public interface Publication

{

String GetDetails();

}

public class Book implements Publication

{

//line XXX

}

  1. public String GetDetails(){}

  2. Object GetDetails(){}

  3. long GetDetails(){}

  4. private String GetDetails(){}

Answer: A

Question No: 159 – (Topic 2)

Which of the following methods of the java.util.logging package logs a message, specifying source class and method, with associated Throwable information?

  1. logrb

  2. log

  3. logp

  4. logth

Answer: C

Question No: 160 – (Topic 2)

Which of the following are the main basic difference between the POST and PUT request? Each correct answer represents a complete solution. Choose all that apply.

  1. The PUT request does not have a corresponding doXXX method in the HttpServlet class. However, POST have a corresponding doXXX method in the HttpServlet class.

  2. The URI in a PUT request identifies the entity enclosed with the request and the user agent knows what URI is intended and the server MUST NOT attempt to apply the request to some other resource.

  3. The URI in a PUT request identifies the resource that will handle the enclosed entity.

  4. The URI in a POST request identifies the resource that will handle the enclosed entity.

Answer: B,D

100% Free Download!
Download Free Demo:GSSP-Java Demo PDF
100% Pass Guaranteed!
Download 2017 CollectDumps GSSP-Java Full Exam PDF and VCE

CollectDumps ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 CollectDumps IT Certification PDF and VCE