Welcome to awslagi.com – Sharing AWS, Google Cloud, Microsoft Azure IT Exams. It's free for all!

312-96: Certified Application Security Engineer (Java)

Master the EC-Council Certified Application Security Engineer (Java) (312-96) certification exam with 25 realistic practice questions covering Understanding Application Security, Threats, and Attacks, Secure Deployment and Maintenance, Secure Coding Practices for Session Management, Security Requirements Gathering.

4.8★★★★★(314 ratings)
15,846 studentsIntermediate
Prepare for the EC-Council Certified Application Security Engineer (Java) (312-96) certification with scenario-based practice questions modeled on real exam objectives. You will build practical confidence across key domains including Understanding Application Security, Threats, and Attacks, Secure Deployment and Maintenance, Secure Coding Practices for Session Management, Security Requirements Gathering. Each question includes structured answer options and hint answers to help you identify knowledge gaps quickly, reinforce core EC-Council concepts, and pass the 312-96 exam on your first attempt.

What you'll learn

  • Understanding Application Security, Threats, and Attacks
  • Secure Deployment and Maintenance
  • Secure Coding Practices for Session Management
  • Security Requirements Gathering
  • Secure Coding Practices for Error Handling
  • Secure Application Design and Architecture

312-96

Lectures1
Questions25
Duration30 week
Students15,846

$20.00

Full Free Question Bank (25 Questions)

312-96: Certified Application Security Engineer (Java) (312-96) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Question #1Part 1Understanding Application Security, Threats, and Attacks

Which of the following DFD components is used to represent a change in privilege levels?

A3
B4
C1
D2
Question #2Part 1Secure Deployment and Maintenance

Alice, a security engineer, was conducting security testing on the application. He discovered that users can see the website structure and file names. Under standard security practices, this can create a serious security risk because attackers may access hidden script files in the directory. Which of the following will mitigate this security risk?

A< int-param > < param-name>directory-listings < param-value>true < /init-param >
B< int param > < param-name>directory-listings < param-value>false < /init-param >
C< int-param > < param-name>listings < param-value>true < /init-param >
D< int-param > < param-name>listings < param-value>false < /init-param >
Question #3Part 1Secure Coding Practices for Session Management

Which of the following Spring Security Framework configuration settings ensures protection against session-fixation attacks by not allowing an authenticated user to log in again?

Asession-fixation-protection ="newSessionID"
Bsession-fixation-protection ="migrateSession"
Csession-fixation-protection ="enabled"
Dsession-fixation-protection ="protectSession"
Question #4Part 1Secure Deployment and Maintenance

Which configuration setting inserver.xmlallows a Tomcat server administrator to impose a file-upload limit based on file size?

A< connector... maxFileLimit="file size" / >
B< connector... maxPostSize="0" / >
C< connector... maxFileSize="file size" / >
D< connector... maxPostSize="file size" / >
Question #5Part 1Security Requirements Gathering

Which of the following can be derived from abuse cases to elicit security requirements for a software system?

AMisuse cases
BData flow diagram
CUse cases
DSecurity use cases
Question #6Part 1Secure Coding Practices for Error Handling

James is a Java developer working at INFR INC. He has written Java code that opens a file, reads it line by line, and displays its contents in the text editor. He wants to ensure that any unhandled exception raised by the code automatically closes the opened file stream. Which exception-handling block should he use for this purpose?

ATry-Catch-Finally block
BTry-Catch block
CTry-With-Resources block
DTry-Catch-Resources block
Question #7Part 1Secure Application Design and Architecture

During which phase of the secure development lifecycle is threat modeling performed?

ACoding phase
BTesting phase
CDeployment phase
DDesign phase
Question #8Part 1Secure Deployment and Maintenance

Which of the following elements in aweb.xmlfile ensures that cookies are transmitted through an encrypted channel?

A< connector IsSSLEnabled="Yes" / >
B< connector EnableSSL="true" / >
C< connector SSLEnabled="false" / >
D< connector SSLEnabled="true" / >
Question #9Part 1Secure Coding Practices for Error Handling

Which of the following methods helps you determine whether the DEBUG level is enabled?

AisDebugEnabled()
BEnableDebug ()
CIsEnableDebug ()
DDebugEnabled()
Question #10Part 1Secure Coding Practices for Input Validation

Stephen is a web developer at InterCall Systems. He was working on a Real Estate website for one of his clients and was assigned to design a web page with a property-search feature. He created the following `searchpage.jsp`: ``` &lt; form Id="form1" method="post" action="SearchProperty.jsp" &gt; &lt; input type="text" id=''txt_Search" name="txt_Search" placeholder="Search Property..." / &gt; &lt; input type="Submit" Id="Btn_Search" value="Search" / &gt; &lt; /form &gt; ``` However, when the application entered the security-testing phase, the security tester identified an XSS vulnerability on this page. How can he mitigate the XSS vulnerability on this page? &lt; form Id="form1" method="post" action="SearchProperty.jsp" &gt; &lt; input type="text" id=''txt_Search" name="txt_Search" placeholder="Search Property..." / &gt; &lt; input type="Submit" Id="Btn_Search" value="Search" / &gt; &lt; /form &gt;

AHe should write code like out.Write ("You Searched for: " +ESAPI.encoder().encodeForHTML(search));
BHe should write code like out.write ("You Searched for: " + request.getParameter("search").toString());
CHe should write code like out.write ("You Searched for: " + request.getParameter("txt_Search"));
DHe should write code like out.write (("You Searched for: " +(search));
Question #11Part 1Static and Dynamic Application Security Testing (SAST & DAST)

Jacob, a Security Engineer on the testing team, is inspecting the source code to identify security vulnerabilities. Which type of security-assessment activity is Jacob performing?

ASCST
BDAST
CCAST
DSAST
Question #12Part 1Secure Coding Practices for Input Validation

Alice is a Java developer at Fygo Software Services Ltd. He has been assigned responsibility for designing a bookstore website for one of its clients. The website is intended to store articles in `.pdf` format. Alice’s superior advises him to design the `ArticlesList.jsp` page so that it displays a list of all articles on one page and sends a selected filename as a query string to redirect users to the `articledetails.jsp` page. Alice wrote the following code on page load to read the filename. ```java String myfilename = request.getParameter("filename"); String txtFileNameVariable = myfilename; String locationVariable = request.getServletContext().getRealPath("/"); String PathVariable = ""; PathVariable = locationVariable + txtFileNameVariable; BufferedInputStream bufferedInputStream = null; Path filepath = Paths.get(PathVariable); ``` After reviewing this code, Alice’s superior identified a security mistake and instructed him not to repeat it in future. Can you identify the type of vulnerability that may exist in the code? String myfilename = request.getParameter("filename"); String txtFileNameVariable = myfilename; String locationVariable = request.getServletContext().getRealPath("/"); String PathVariable = ""; PathVariable = locationVariable + txtFileNameVariable; BufferedInputStream bufferedInputStream = null; Path filepath = Paths.get(PathVariable);

AURL Tampering vulnerability
BForm Tampering vulnerability
CXSS vulnerability
DDirectory Traversal vulnerability
Question #13Part 1Understanding Application Security, Threats, and Attacks

On a certain website, a secure login feature is intended to prevent brute-force attacks by implementing an account-lockout mechanism. An account is automatically locked after five failed attempts. This feature prevents users from logging in to the website until their account is unlocked. However, this security feature could be abused to carry out a __________ attack.

AFailure to Restrict URL
BBroken Authentication
CUnvalidated Redirects and Forwards
DDenial-of-Service (DoS)
Question #14Part 1Understanding Application Security, Threats, and Attacks

Identify the formula used to calculate risk during threat modeling.

ARISK = PROBABILITY *Attack
BRISK = PROBABILITY * ASSETS
CRISK = PROBABILITY * DAMAGE POTENTIAL
DRISK = PROBABILITY * VULNERABILITY
Question #15Part 1Understanding Application Security, Threats, and Attacks

The threat-modeling phase in which applications are decomposed and their entry points are examined from an attacker’s perspective is called ________.

AAttack Surface Evaluation
BThreat Classification
CThreat Identification
DImpact Analysis
Question #16Part 1Understanding Application Security, Threats, and Attacks

Ted is an application security engineer who makes sure application-security activities are followed throughout the project lifecycle. One day, he analyzed various user interactions depicted in the use cases for a project in inception. Based on the use case at hand, he began depicting scenarios in which an attacker could misuse the application. Identify the activity Ted is performing.

ATed was depicting abuse cases
BTed was depicting abstract use cases
CTed was depicting lower-level use cases
DTed was depicting security use cases
Question #17Part 1Secure Coding Practices for Input Validation

A US-based ecommerce company has developed the websitewww.ec-sell.comto sell its products online. The website includes a feature that lets customers search for products by price. Recently, a bug-bounty participant discovered a security flaw on the Search page: they could view every product in the database table by changing the website URL fromhttp://www.ec-sell.com/products.jsp?val=100tohttp://www.ec-sell.com/products.jsp?val=200OR '1'='1 -. The product.jsp page is vulnerable to

ASession Hijacking attack
BCross Site Request Forgery attack
CSQL Injection attack
DBrute force attack
Question #18Part 1Secure Coding Practices for Error Handling

For global exception handling, a developer should use the _________ annotation together with the@ExceptionHandlermethod annotation on any class.

A@Advice
B@ControllerAdvice
C@globalControllerAdvice
D@GlobalAdvice
Question #19Part 1Secure Coding Practices for Session Management

Which line in the following Java code example could make the application susceptible to a session attack?

ALine No. 1
BLine No. 3
CLine No. 4
DLine No. 5
Question #20Part 1Understanding Application Security, Threats, and Attacks

Identify the type of attack shown in the figure below:

AXSS
BCross-Site Request Forgery (CSRF) attack
CSQL injection attack
DDenial-of-Service attack
Question #21Part 1Secure Coding Practices for Session Management

Which of the following state-management methods works only for a sequence of dynamically generated forms?

ACookies
BSessions
CHidden Field
DURL-rewriting
Question #22Part 1Secure Coding Practices for Error Handling

Which of the following is used to map custom exceptions to a status code?

A@ResponseStatus
B@ResponseStatusCode
C@ResponseCode
D@ScacusCode
Question #23Part 1Secure Deployment and Maintenance

Oliver, a Server Administrator (Tomcat), has configured the `web.xml` file as shown in the following screenshot. What is he attempting to achieve? ![Question Image](https://cdn.examcademy.com/images/questions/1784753746983-u7x29y6x.png)

AHe wants to transfer the entire data over encrypted channel
BHe wants to transfer only response parameter data over encrypted channel
CHe wants to transfer only request parameter data over encrypted channel
DHe wants to transfer only Session cookies over encrypted channel
Question #24Part 1Secure Coding Practices for Session Management

A developer wrote the following code to handle and maintain a session in the application. What did the developer do in this scenario?

AMaintained session by creating a Session variable user with value stored in uname variable.
BMaintained session by creating a HTTP variable user with value stored in uname variable.
CMaintained session by creating a Cookie user with value stored in uname variable.
DMaintained session by creating a hidden variable user with value stored in uname variable.
Question #25Part 1Understanding Application Security, Threats, and Attacks

Identify the attack type illustrated in the following figure.

ADenial-of-service attack
BSQL Injection attack
CDirectory Traversal Attack
DForm Tampering Attack

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!