
EC-CouncilCertified Application Security Engineer (.NET)
Domain 5Objective 1
Symmetric Encryption and Defensive Coding CASENET Practice Questions (Page 5)
Part of the Secure Coding: Cryptography domain, which makes up ~12% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~6–10 in this domain), expect 1–2 from this objective — we provide 38 practice questions to prepare you well beyond it. (estimate)
38questions here
8free pages
5concepts
Questions 21–25
- 21
A .NET developer is writing code to generate an AES key for encrypting user data. Which code snippet correctly generates a cryptographically strong random key?
Select an answer first - 22
A .NET developer is writing code to encrypt a file. The developer uses the following approach: `using (var aes = Aes.Create()) { aes.Key = Encoding.UTF8.GetBytes("MySecretKey123"); aes.IV = new byte[16]; ... }`. What is the primary security flaw in this code?
Select an answer first - 23
A team is designing a system that encrypts small messages (less than 1 KB) and needs to minimize ciphertext overhead. They are considering AES-GCM and AES-CBC with HMAC. The system must also support parallel decryption of multiple messages. Which approach is the best trade-off?
Select an answer first - 24
A security audit of a .NET application reveals that it uses the TripleDES algorithm with a 128-bit effective key length. The audit recommends migrating to a more modern algorithm. Which replacement should the developer choose?
Select an answer first - 25
What is the primary purpose of key rotation in symmetric encryption?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CASENET” is a trademark of its owner, used for identification only.