Bird
0
0

Given the following commands executed in order:

medium📝 Predict Output Q13 of 15
Hadoop - Security
Given the following commands executed in order:
hdfs key create mykey
hdfs dfsadmin -createEncryptionZone -keyName mykey -path /secure

What will happen if you try to write a file to /secure?
AThe file will be stored encrypted automatically
BThe file will be stored unencrypted
CAn error will occur because the key does not exist
DThe file will be compressed but not encrypted
Step-by-Step Solution
Solution:
  1. Step 1: Understand key creation and encryption zone setup

    The key 'mykey' is created first, then an encryption zone is created at '/secure' using that key.
  2. Step 2: Analyze file write behavior in encryption zones

    Files written inside an encryption zone are automatically encrypted using the zone's key.
  3. Final Answer:

    The file will be stored encrypted automatically -> Option A
  4. Quick Check:

    Encryption zone + key = automatic encryption [OK]
Quick Trick: Files in encryption zones encrypt automatically [OK]
Common Mistakes:
  • Assuming files need manual encryption
  • Thinking key creation is after zone creation
  • Confusing compression with encryption

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes