Courseiva
Question 490 of 513
Java I/O API and Securing ApplicationsmediumMultiple SelectObjective-mapped

1Z0-829 Java I/O API and Securing Applications Practice Question

Which TWO statements are true about securing a Java application?

⚠ Common exam trap

Candidates often confuse the optional nature of the SecurityManager (thinking it is mandatory) or assume code signing implies security, when in fact it only provides integrity and origin verification, not safety.

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

A security policy file can grant specific permissions to code from a particular codebase.

A Java security policy file can use a codebase URL (e.g., `codeBase "file:/path/to/jar"`) to grant specific permissions, such as `java.io.FilePermission`, to code loaded from that location. This is a core feature of the Java security model, allowing fine-grained access control based on where the code originates.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A security policy file can grant specific permissions to code from a particular codebase.

    Why this is correct

    Policy files allow granular permission assignments.

  • Enabling the security manager is required for all Java applications.

    Why it's wrong here

    Security manager is optional; many applications run without it.

  • The Java Cryptography Extension (JCE) is deprecated and should not be used.

    Why it's wrong here

    JCE is still part of Java SE and not deprecated.

  • Using code signing guarantees that the application is secure.

    Why it's wrong here

    Code signing verifies origin but does not enforce security policy.

  • The SecurityManager class can be used to set a security policy for the application.

    Why this is correct

    SecurityManager enforces access controls based on policy.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.