1Z0-829 Java Platform Overview and Packaging Practice Question
A company deploys a Java 17 application on a server with a custom runtime image created by jlink. The application uses the Java logging API (java.util.logging). The server administrator notices that the image size is approximately 45 MB. They need to reduce it further. Which jlink option would help exclude unnecessary locale data?
⚠ Common exam trap
Candidates often confuse size-reduction options like compression or stripping debug with the specific need to exclude locale data, leading them to choose `--compress=2` or `--strip-debug` instead of the correct `--include-locales` option.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
--include-locales en_US
The `--include-locales` option in jlink allows you to specify which locale data to include in the custom runtime image. By default, jlink includes all locale data, which can significantly increase image size. Using `--include-locales en_US` restricts the image to only US English locale data, reducing unnecessary bloat for applications that do not require multiple locales.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
--include-locales en_US
Why this is correct
Using --include-locales with a limited set includes only those locales, excluding others and reducing the image size.
- ✗
--compress=2
Why it's wrong here
Compression reduces overall size but not specifically locale data; it's a general optimization.
- ✗
--strip-debug
Why it's wrong here
Strips debug information, reducing size but not locale data specifically.
- ✗
--no-header-files
Why it's wrong here
Removes header files (used for native development), not locale data.
Go deeper
Related to this question
About these practice questions
This 1Z0-829 question is part of Courseiva's 513-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.