Quiz
Questões - Security in web applications
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (11)
1Which of the following correctly defines data integrity? (Select one)
- AIt guarantees that information is accessible only to certain users.
- BIt guarantees that the information is kept in encrypted form on the server.
- CIt guarantees that unintended parties cannot read the information during transmission between the client and the server.
- DIt guarantees that the information is not altered during transmission between the client and the server.
2What is the term for determining whether a user has access to a particular resource? (Select one)
- AAuthorization
- BAuthentication
- CConfidentiality
- DSecrecy
3Which one of the following must be done before authorization takes place? (Select one)
- AData validation
- BUser authentication
- CData encryption
- DData compression
4Which of the following actions would you take to prevent your web site from being attacked? (Select three)
- ABlock network traffic at all the ports except the HTTP port.
- BAudit the usage pattern of your server.
- CAudit the Servlet/JSP code.
- DUse HTTPS instead of HTTP.
- EDesign and develop your web application using a software engineering methodology.
- FUse design patterns.
5Identify the authentication mechanisms that are built into the HTTP specification. (Select two)
- ABasic
- BClient-Cert
- CForm
- DDigest
- EClient-Digest
- FHTTPS
6Which of the following deployment descriptor elements is used for specifying the authentication mechanism for a web application? (Select one)
- Asecurity-constraint
- Bauth-constraint
- Clogin-config
- Dweb-resource-collection
7Which of the following elements are used for defining a security constraint? Choose only those elements that come directly under the security constraint element. (Select three)
- Alogin-config
- Brole-name
- Crole
- Dtransport-guarantee
- Euser-data-constraint
- Fauth-constraint
- Gauthorization-constraint
- Hweb-resource-collection
8Which of the following web.xml snippets correctly identifies all HTML files under the sales directory? (Select two)
- A<web-resource-collection>
<web-resource-name>reports</web-resource-name>
<url-pattern>/sales/*.html</url-pattern>
</web-resource-collection> - B<resource-collection>
<web-resource-name>reports</web-resource-name>
<url-pattern>/sales/*.html</url-pattern>
</resource-collection> - C<resource-collection>
<resource-name>reports</resource-name>
<url-pattern>/sales/*.html</url-pattern>
</resource-collection> - D<web-resource-collection>
<web-resource-name>reports</web-resource-name>
<url-pattern>/sales/*.html</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
- A<web-resource-collection>
9You want your PerformanceReportServlet to be accessible only to managers. This servlet generates a performance report in the doPost() method based on a FORM submitted by a user. Which of the following correctly defines a security constraint for this purpose? (Select one).
- A<security-constraint>
<web-resource-collection>
<web-resource-name>performance report</web-resource-name>
<url-pattern>/servlet/PerformanceReportServlet</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint> - B<security-constraint>
<web-resource-collection>
<web-resource-name>performance report</web-resource-name>
<url-pattern>/servlet/PerformanceReportServlet</url-pattern>
<http-method>*</http-method>
</web-resource-collection>
<accessibility>
<role-name>manager</role-name>
</accessibility>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint> - C<security-constraint>
<web-resource-collection>
<web-resource-name>performance report</web-resource-name>
<url-pattern>/servlet/PerformanceReportServlet</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
<accessibility>
<role-name>manager</role-name>
</accessibility>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint> - D<security-constraint>
<web-resource-collection>
<web-resource-name>performance report</web-resource-name>
<url-pattern>/servlet/PerformanceReportServlet</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
- A<security-constraint>
10Which of the following statements regarding authentication mechanisms are correct? (Select two)
- AThe HTTP Basic mechanism transmits the username/password “in the open.”
- BThe HTTP Basic mechanism uses HTML FORMs to collect usernames/passwords.
- CThe transmission method in the Basic and FORM mechanisms is the same.
- DThe method of capturing the usernames/passwords in the Basic and FORM mechanisms is the same.
11Which of the following statements are correct for an unauthenticated user? (Select two)
- AHttpServletRequest.getUserPrincipal() returns null.
- BHttpServletRequest.getUserPrincipal() throws SecurityException.
- CHttpServletRequest.isUserInRole(rolename) returns false.
- DHttpServletRequest.getRemoteUser() throws a SecurityException.
Informationen
- Beschreibung
- Concursos Públicos Desenvolvimento de Software (OCEJWCD 6 ONLINE COURSE) Quiz am Questões - Security in web applications, erstellt von Luis Felipe Guariento am 13/04/2018.
- Sprache
- Português
- Aufrufe
- 0
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz