Question 71
HardWhat does HSTS tell a browser?
- A.
Block all cookies
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Computer Networks
What does HSTS tell a browser?
Block all cookies
Use HTTP/2 only
Cache pages forever
Always use HTTPS for this site, refusing plain HTTP
Sign up free to see the answer and a step-by-step explanation.
Which firewall can block a malicious HTTP request based on its URL or body?
A layer-2 switch
A web application firewall or application-layer proxy
A hub
A packet-filtering router
Sign up free to see the answer and a step-by-step explanation.
A signature-based IDS misses a brand-new attack that an anomaly-based IDS detects. Why?
Signature systems are switched off at night
Signature systems only recognise known attack patterns, while anomaly systems flag behaviour that departs from a learned normal baseline
Anomaly systems use bigger databases of signatures
The attack used encryption that only anomaly systems decrypt
Sign up free to see the answer and a step-by-step explanation.
In a DNS amplification attack, why do attackers send queries with the victim's IP as the source?
To speed up DNS
Resolvers send large replies to the victim, multiplying the attack traffic
To steal passwords
To hide the attacker's location only
Sign up free to see the answer and a step-by-step explanation.
What does a digital certificate bind together?
A user and a session cookie
A private key and a password
A public key and an identity, signed by a certificate authority
A MAC address and an IP address
Sign up free to see the answer and a step-by-step explanation.
What does certificate pinning do in a mobile app?
Pins the app to one phone
Stores passwords
Accepts only a specific certificate or public key for a server, even if another CA-signed one is presented
Disables TLS
Sign up free to see the answer and a step-by-step explanation.
In a zero-trust architecture, what replaces 'trust everything inside the network perimeter'?
Open access inside
Verifying every user and device for every access, regardless of network location
Using only VPNs
A bigger firewall
Sign up free to see the answer and a step-by-step explanation.
Which is the best defence against SQL injection?
Using a longer database password
Parameterised queries with bound values
Hiding error messages only
Escaping a few special characters by hand
Sign up free to see the answer and a step-by-step explanation.
What does a MAC (message authentication code) provide that a plain hash does not?
Encryption
Proof that the sender knew a secret key, so an attacker can't forge it
Non-repudiation
Compression
Sign up free to see the answer and a step-by-step explanation.
An attacker on a café Wi-Fi network answers ARP requests for the gateway with his own MAC address. What attack is this, and what does it enable?
A brute-force attack
A SYN flood
DNS poisoning, enabling phishing only
ARP spoofing, enabling a man-in-the-middle
Sign up free to see the answer and a step-by-step explanation.