Courseiva
Java I/O API and Securing ApplicationsmediumMultiple ChoiceObjective-mapped

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

Exhibit

alias: mykey
Creation date: Jan 15, 2024
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=MyApp, OU=Dev, O=Company, L=City, ST=State, C=US
Issuer: CN=MyCA, OU=CA, O=Company, L=City, ST=State, C=US
Serial number: 1234abcd
Valid from: Wed Jan 15 10:00:00 UTC 2024 until: Thu Jan 15 10:00:00 UTC 2026
Certificate fingerprints:
         SHA1: 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef:12:34:56:78
         SHA256: ab:cd:ef:12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3

Refer to the exhibit. A developer runs a keytool command and sees the output above. Which command produced this output?

⚠ Common exam trap

Candidates often confuse `-list -v` (which shows keystore entry details) with `-printcert` (which shows certificate file details), or mistakenly think `-exportcert` or `-importcert` produce verbose console output.

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

keytool -list -v -alias mykey -keystore keystore.jks

The `keytool -list -v -alias mykey -keystore keystore.jks` command displays detailed certificate information (including owner, issuer, serial number, validity, and fingerprint) for the specified alias in the JKS keystore. The `-v` flag produces verbose output, which matches the exhibit's detailed certificate listing.

Answer analysis

Option-by-option breakdown

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

  • keytool -list -v -alias mykey -keystore keystore.jks

    Why this is correct

    Shows verbose details of the specified alias.

  • keytool -exportcert -alias mykey -keystore keystore.jks -file cert.cer

    Why it's wrong here

    Exports certificate; output is a file, not console.

  • keytool -importcert -alias mykey -keystore keystore.jks -file cert.cer

    Why it's wrong here

    Imports certificate; no such output.

  • keytool -printcert -file cert.cer

    Why it's wrong here

    Prints certificate from a file, not keystore entry.

About these practice questions

Courseiva writes every 1Z0-829 question from scratch — 513 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.