|
1 | 1 | ### YamlMime:ModuleUnit
|
2 |
| -uid: learn.azure.build-webapp-java-tomcat.5 |
| 2 | +uid: learn.azure.build-tomcat-java-appservice.5 |
3 | 3 | title: Knowledge check
|
4 | 4 | metadata:
|
5 |
| - adobe-target: true |
6 |
| - prefetch-feature-rollout: true |
7 |
| - title: Knowledge check |
8 |
| - description: Knowledge check |
9 |
| - author: yoshioterada |
10 |
| - ms.author: yoterada |
11 |
| - ms.date: 05/03/2023 |
| 5 | + title: Knowledge Check |
| 6 | + description: Check your knowledge of creating and deploying Java web apps to Azure App Service. |
| 7 | + ms.date: 02/20/2025 |
| 8 | + author: KarlErickson |
| 9 | + ms.author: ayangupta |
12 | 10 | ms.topic: unit
|
13 |
| - ms.custom: team=cloud_advocates, devx-track-extended-java, linux-related-content |
14 |
| - ms.contributors: yoterada-12142020 |
15 |
| -durationInMinutes: 2 |
| 11 | + ms.custom: team=cloud_advocates, devx-track-extended-java, devx-track-java, linux-related-content |
| 12 | +durationInMinutes: 5 |
16 | 13 | quiz:
|
| 14 | + title: Check your knowledge |
17 | 15 | questions:
|
18 |
| - - content: Which file format do you use for Facelets? |
| 16 | + - content: What's the primary purpose of using Apache Maven in Java web application development? |
19 | 17 | choices:
|
20 |
| - - content: "Hypertext Markup Language (HTML)" |
| 18 | + - content: To provide a web server for hosting the application. |
21 | 19 | isCorrect: false
|
22 |
| - explanation: "HTML is used for creating static web pages." |
23 |
| - - content: "Extensible Hypertext Markup Language (XHTML)" |
24 |
| - isCorrect: true |
25 |
| - explanation: "Because JavaServer Faces 2.0, Facelets has been used as the default view declaration language." |
26 |
| - - content: "JavaServer Pages (JSP)" |
| 20 | + explanation: Incorrect. Maven is a build automation tool, not a web server. |
| 21 | + - content: To design the user interface of the web application. |
27 | 22 | isCorrect: false
|
28 |
| - explanation: "In the past, you could write JavaServer Faces (JSF) tags in JSP pages. Facelets is the new view declaration language since JSF 2.0. We recommend that you use the XHTML instead of JSP." |
29 |
| - - content: Which methods allow you to access the application logs in Azure App Service? |
| 23 | + explanation: Incorrect. Maven focuses on project management and build automation, not UI design. |
| 24 | + - content: To manage project dependencies and automate the build process. |
| 25 | + isCorrect: true |
| 26 | + explanation: Correct! Maven helps manage dependencies and automates the build and deployment processes, streamlining development. |
| 27 | + |
| 28 | + - content: How does deploying a Java web application to Azure App Service benefit developers? |
30 | 29 | choices:
|
31 |
| - - content: SSH in Advanced Tools in the Azure portal |
| 30 | + - content: It automatically converts Java code to a faster language. |
32 | 31 | isCorrect: false
|
33 |
| - explanation: This method is a correct option, but it isn't the only way to access the logs. |
34 |
| - - content: Access the log stream in Advanced Tools in the Azure portal |
| 32 | + explanation: Incorrect. Azure App Service doesn't convert code. It hosts applications as they are. |
| 33 | + - content: It eliminates the need for a build automation tool like Maven. |
35 | 34 | isCorrect: false
|
36 |
| - explanation: This method is a correct option, but it isn't the only way to access the logs. |
37 |
| - - content: The Azure CLI command-line tool |
38 |
| - isCorrect: false |
39 |
| - explanation: This method is a correct option, but it isn't the only way to access the logs. |
40 |
| - - content: All of the above |
| 35 | + explanation: Incorrect. Build automation tools are still needed for compiling and packaging the application before deployment. |
| 36 | + - content: It provides a scalable, managed hosting environment without the need to manage infrastructure. |
41 | 37 | isCorrect: true
|
42 |
| - explanation: Correct! |
43 |
| - |
| 38 | + explanation: Correct! Azure App Service enables developers to deploy applications easily, handling scaling and infrastructure management. |
44 | 39 |
|
45 |
| - - content: Which tasks can you do with the Maven Plugin for Azure App Service? |
| 40 | + - content: What is the primary role of a servlet in a Java web application? |
46 | 41 | choices:
|
47 |
| - - content: Compile the source code |
48 |
| - isCorrect: false |
49 |
| - explanation: The Maven Compiler Plugin compiles your source code. |
50 |
| - - content: Configure your Azure App Service instance |
| 42 | + - content: To manage database connections and queries. |
51 | 43 | isCorrect: false
|
52 |
| - explanation: This choice is a correct option, but it isn't its only feature. |
53 |
| - - content: Deploy to your Azure App Service instance |
54 |
| - isCorrect: false |
55 |
| - explanation: This choice is a correct option, but it isn't its only feature. |
56 |
| - - content: Both configure and deploy to your Azure App Service instance |
| 44 | + explanation: Incorrect. Servlets can interact with databases, but their main role is handling web requests and generating dynamic content. |
| 45 | + - content: To handle client requests and generate dynamic content on the server side. |
57 | 46 | isCorrect: true
|
58 |
| - explanation: Correct! |
| 47 | + explanation: Correct! The main role of a servlet is to handle client requests and generate server-side responses. |
| 48 | + - content: To define the application's user interface. |
| 49 | + isCorrect: false |
| 50 | + explanation: Incorrect. Servlets work on the server side and don't manage the user interface, which is handled by client-side components. |
59 | 51 |
|
| 52 | + - content: Why is Apache Tomcat used in Java web application development? |
| 53 | + choices: |
| 54 | + - content: It serves as a servlet container that implements Java Servlet and JSP specifications. |
| 55 | + isCorrect: true |
| 56 | + explanation: Correct! Tomcat provides an environment to run Java servlets and JSPs, which is essential for Java web applications. |
| 57 | + - content: It's a front-end framework for designing responsive web interfaces. |
| 58 | + isCorrect: false |
| 59 | + explanation: Incorrect. Tomcat is a server-side technology and doesn't deal with front-end design. |
| 60 | + - content: It's a database system used for storing application data. |
| 61 | + isCorrect: false |
| 62 | + explanation: Incorrect. Tomcat is a web server and servlet container, not a database system. |
0 commit comments