Font size
WorksheetsUNIT 5 MCQ QUESTIONS - Cryptography and Network Security
Total questions: 94
Worksheet time: 47mins
Which of the following best describes the primary goal of web security?
Preventing server crashes
Ensuring SEO optimization
Protecting confidentiality, integrity, and availability of data
Speeding up webpage rendering
Which component ensures identity verification in secure web transactions?
Digital certificate
Firewall
IDS
Proxy server
Match the following web security mechanisms with their purpose:
I-d, II-b, III-c, IV-a
I-a, II-c, III-b, IV-d
I-c, II-a, III-d, IV-b
I-b, II-d, III-a, IV-c
Malware filtering
You're designing a secure e-commerce website. Which of the following protocols should you implement to ensure secure transactions between customer and payment gateway?
FTP
HTTP
SSL/TLS
DNS
Which of the following is NOT a common feature of web security standards?
Confidentiality
Compression
Authentication
Integrity
Which among the following ensures end-to-end data protection on a web browser while using HTTPS?
Host-based Firewall
TLS
IDS
Packet Sniffer
A web application is vulnerable to data interception. Which web security standard is best suited to mitigate this?
FTP
TLS
Telnet
SMTP
An organization wants to detect real-time intrusions and take preventive action. Which combination of web security tools is best for this scenario?
Antivirus and HTTP
Firewall and FTP
IDS and IPS
DNS and SMTP
Which of the following is the first step in the SSL handshake process?
Client sends "Finished" message
Server sends a certificate
ClientHello is sent
Key exchange is initiated
Given the following SSL record header: 16 03 01 00 4a, identify the record type.
Alert
Handshake
Change Cipher Spec
Application Data
You are debugging an SSL handshake failure. The log shows "Unknown CA." What is the most probable cause?
Cipher suite mismatch
Expired client certificate
Server certificate not signed by a trusted CA
Protocol version conflict
Which cipher suite component in TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 provides forward secrecy?
ECDHE
RSA
AES_256_GCM
SHA384
An SSL-enabled server requires client authentication. Which element must the client provide during handshake?
ClientHello
Digital Signature
Public key
Client Certificate
Which OpenSSL command is used to verify an SSL certificate?
openssl ca
openssl x509 -noout -text
openssl verify cert.pem
openssl enc
SSL operates between which OSI layers?
Application and Transport
Network and Transport
Session and Presentation
Transport and Session
You are configuring a server with multiple domains using SSL. What extension supports this?
CRL
OCSP
SNI
SAN
A certificate signed using SHA-1 is flagged by a browser. What is the cause?
Expired key pair
Weak hash algorithm
Cipher mismatch
Unused extension
To generate a self-signed certificate valid for 365 days using RSA and OpenSSL, which command is correct?
openssl req -x509 -nodes -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
openssl rsa -genkey
openssl req -new -x509
openssl enc -aes256
SSL session resumption helps optimize performance by:
Skipping key exchange
Reusing cipher suite
Reusing session key
Avoiding digital signatures
Which of the following is not part of the SSL Record Protocol?
Compression
Fragmentation
Key Generation
MAC
A TLS alert 20 is received during handshake. What does it represent?
Close Notify
Bad Certificate
Handshake Failure
Change Cipher Spec
What vulnerability does SSLv3 suffer from, making it obsolete?
BEAST
BROWN
POODLE
CRIME
Which of the following ensures integrity in SSL records?
Diffie-Hellman
Hash function (e.g., HMAC-SHA256)
RSA encryption
Digital certificates
You want to disable weak ciphers in an Apache SSL config. Which directive is used?
SSLProxyProtocol
SSLPassPhraseDialog
SSLCipherSuite
SSLEngine
Why is the ClientHello message critical in SSL?
It requests certificate revocation
It initiates symmetric key exchange
It proposes cipher suites and compression
It confirms client IP
Which of the following TLS versions deprecated SSLv3 due to the POODLE vulnerability?
TLS 1.0
TLS 1.1
TLS 1.2
TLS 1.3
Which field in the TLS record header specifies the protocol version?
Content Type
Version
Length
MAC
You are debugging a TLS 1.2 handshake and notice the client rejects the certificate. What is the most likely cause?
No ClientHello received
Unsupported cipher
Self-signed or untrusted certificate authority
Missing Finished message
Which of the following changes in TLS 1.3 improves performance compared to TLS 1.2?
Removal of MAC
Removal of RSA
Zero round-trip time (0-RTT) resumption
Stronger MACs
You are configuring a server for TLS 1.3. Which key exchange mechanism is not supported?
ECDHE
DHE
RSA key exchange
PSK
Which cryptographic primitive is used in TLS for verifying the authenticity of handshake messages?
HMAC
SHA-1
AES
ECDSA
TLS replaces which insecure protocol in modern web applications?
FTP
HTTP
Telnet
SSL
You need to enable forward secrecy. Which cipher suite should you select?
TLS_RSA_WITH_AES_256_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_3DES_EDE_CBC_SHA
TLS_NULL_WITH_NULL_NULL
TLS achieves confidentiality using which mechanism during session?
Public key encryption
Block cipher modes like CBC
Symmetric encryption with session key
Digital signatures
Which of the following remains encrypted in a TLS connection?
Source IP
TCP port
HTTP payload
Server certificate
TLS handshake fails with the error 'Handshake Failure.' Which debug method is most effective?
Inspect firewall rules
Check DNS records
Use Wireshark to analyze handshake packets
Reboot the client system
Which Python module is used to establish a TLS-encrypted socket?
socket
ssl
crypto
http.server
To ensure your server only supports TLS 1.2 and above, which setting should you update in nginx.conf?
ssl_ciphers
ssl_protocols
ssl_engine
ssl_session_cache
In TLS, Perfect Forward Secrecy ensures:
Faster handshakes
Server authentication only
Compromised keys do not affect past sessions
Encryption of headers
Which of the following is true about session resumption in TLS?
It increases handshake duration
It uses the same symmetric key for all clients
It helps reuse previous session keys
It disables mutual authentication
TLS alert code 21 indicates:
Decryption failure
Fatal error
Warning
Unknown certificate
TLS 1.3 removes which legacy algorithms?
AES-GCM and ChaCha20
ECDHE and PSK
RSA key exchange and CBC
HMAC and SHA-256
Which of the following is not a TLS record type?
Handshake
Application Data
Key Exchange
Alert
In SET, who is responsible for verifying both cardholder and merchant identities?
Payment Gateway
Certificate Authority
Acquirer Bank
Card Issuer
Which cryptographic algorithm is used in SET for digital signatures?
AES
RSA
SHA-1
Diffie-Hellman
A user submits a purchase request, but the SET protocol fails to authenticate the digital certificate. What should be checked first?
Merchant’s bank status
Time validity of certificate
Payment gateway availability
SSL session timeout
SET uses dual signatures to:
Encrypt payment only
Authenticate server identity
Separate order and payment information
Enable multi-bank routing
Which party in SET is responsible for processing the transaction with the card issuer?
Merchant
Cardholder
Acquirer
Certificate Authority
In the SET protocol, what is the function of the digital wallet?
Issue certificates
Store the symmetric key
Manage user credentials and initiate transactions
Encrypt the entire message
SET protocol was primarily developed by:
Microsoft and Visa
Visa and MasterCard
IBM and PayPal
Google and Amazon
The merchant in a SET system cannot verify the dual signature. Which of the following is likely missing?
A. Cardholder’s public key
B. SSL certificate
C. Hash of payment instruction
D. Order details
SET provides non-repudiation by using:
Message Authentication Code (MAC)
IP address verification
Public-key digital signatures
Time-based session keys
Which of the following components is NOT part of the SET infrastructure?
Merchant Certificate Authority
Payment Gateway
Personal Firewall
Digital Wallet
Which feature of SET helps ensure that the merchant does not modify the payment instructions?
Certificate revocation
Session timeout
Message digest and dual signature
Transport layer authentication
Which two entities are directly involved in the initial exchange of certificates in SET?
Cardholder and Acquirer
Merchant and Certificate Authority
Cardholder and Merchant
Cardholder and Issuer
In a SET transaction, which key is used to encrypt the order information?
Merchant’s public key
Issuer’s public key
Cardholder’s private key
Symmetric session key
Which of the following Java libraries can simulate encryption similar to what is done in SET protocol?
javax.crypto
org.set.core
java.tls
javax.setauth
Why was SET protocol not widely adopted in e-commerce?
Lack of RSA support
Poor user interface
Complexity and overhead of infrastructure
Unavailability of symmetric encryption
Which certificate format is commonly used in SET?
X.500
PEM
X.509
PGP
In SET, what is the purpose of hashing the PI and OI before signing?
Speed up encryption
Ensure confidentiality
Provide message integrity
Convert message to binary
Which statement is true about the dual signature in SET?
It uses two private keys
It encrypts order and payment with the same key
It binds order and payment information without revealing both to the same party
It digitally signs only the payment
SET secures confidentiality of payment info using:
Server authentication
Symmetric encryption with the payment gateway’s key
Client-side hashing
MAC-based integrity
A user added their public key to the remote server’s ~/.ssh/authorized_keys file but still gets prompted for a password. What is the most likely cause?
Private key mismatch
Wrong username
Server firewall
Network latency
Which method offers better security in SSH login?
Password login
Key-based login
OTP-based SSH
CAPTCHA SSH
In SSH key-based authentication, what is stored in the remote server to validate the login?
Private key
Public key
Encrypted username
Symmetric key
What is the function of the known_hosts file in SSH?
Lists all open ports on the server
Stores encrypted passwords
Verifies server identities
Logs all SSH commands
Which of the following is a common security risk if SSH keys are not protected properly?
Denial of Service
Brute-force attack
Key theft leading to unauthorized access
Certificate expiry
A user is using SSH but wants to enable automatic login without entering a passphrase every time. What is a secure solution?
Use passwordless login
Brute-force attacks
Key theft leading to unauthorized access
Certificate expiry
SSH provides protection against which of the following attacks?
IP spoofing
Session hijacking
ARP poisoning
All of the above
A developer wants to encrypt data before uploading to AWS S3. Which AWS service or SDK feature is best suited?
S3 Server-Side Encryption (SSE)
AWS KMS (Key Management Service)
Client-side encryption with AWS SDK
EC2 Security Groups
In cloud identity management, which protocol is commonly used for single sign-on (SSO)?
OAuth 2.0
FTP
SMTP
DNS
Which cloud service model exposes the most security responsibilities to the customer?
SaaS
PaaS
IaaS
DaaS
What is the main function of a Cloud Access Security Broker (CASB)?
Manage cloud storage costs
Provide policy enforcement between cloud users and providers
Backup cloud data automatically
Manage network firewalls
Which cloud security principle ensures data remains accessible and unaltered except by authorized users?
Confidentiality
Availability
Integrity
Auditability
Which Kubernetes object is used to manage secrets securely?
ConfigMap
Secret
Pod
ServiceAccount
How can cloud customers ensure compliance with data protection regulations like GDPR?
Ignore data residency requirements
Use region-specific data centers and encryption
Disable audit logs
Remove user consent forms
During a penetration test on a cloud app, lateral movement was possible between VMs. What cloud feature could prevent this?
Security Groups and Network ACLs
SSL Certificates
CloudFront CDN
IAM roles
Which AWS service provides DDoS protection?
AWS Shield
AWS Inspector
AWS Macie
AWS Lambda
Which encryption method is best suited for protecting data at rest in cloud?
Symmetric encryption with AES-256
SSL/TLS
Hashing with MD5
Base64 encoding
You want to detect a worm spreading through your network by monitoring unusual traffic spikes. Which tool can you script to automate traffic analysis?
tcpdump
ping
nslokup
traceroute
A Trojan disguised as legitimate software is causing system slowdowns. What immediate action should be taken?
Disconnect from the network and run a full malware scan
Ignore it
Reboot the system
Update software only
Which type of firewall examines the state of active connections to decide whether to allow traffic?
Packet-filtering firewall
Stateful inspection firewall
Proxy firewall
Circuit-level gateway
Which firewall type acts as an intermediary between internal users and the internet by inspecting and forwarding requests?
Packet-filtering firewall
Proxy firewall
Stateful firewall
NAT firewall
After updating firewall rules, users report inability to access a web application on port 443. What is a possible cause?
Port 80 is closed
Port 443 is blocked in firewall rules
SSL certificate expired
Network cable unplugged
Which type of malware requires user interaction to activate, often disguised as a useful program?
Virus
Worm
Trojan
Ransomware
What is the key difference between a worm and a virus?
Worms require a host file to replicate
Viruses self-replicate through networks
Worms self-replicate without user intervention
Viruses spread only through email
Which firewall technology uses application-layer inspection to control traffic?
Packet-filtering firewall
Proxy firewall
Next-Generation Firewall (NGFW)
Circuit-level gateway
Which malware type primarily spreads over networks without user intervention?
Trojan
Virus
Worm
Rootkit
Which of the following best describes a rootkit?
Software that encrypts data for ransom
Malware that hides deep in the system to maintain access
Worm that spreads email attachments
Firewall misconfiguration
Which IDS type analyzes network traffic patterns to identify deviations from normal behavior?
Signature-based IDS
Anomaly-based IDS
Hybrid IDS
Host-based IDS
An IDS produces many false positives. Which tuning method can help reduce false alerts?
Modify or disable irrelevant rules
Disable the IDS completely
Ignore alerts
Increase logging verbosity
Which IPS action is automatic and blocks traffic when an attack is detected?
Alert only
Passive monitoring
Active prevention
Logging only
Which IDS component is responsible for capturing and inspecting packets?
Sensor
Management console
Logger
Analyzer
What is the main disadvantage of signature-based IDS?
High false positives
Cannot detect new or unknown attacks
High resource consumption
Requires manual configuration
