Difficulty: Easy & Basic
1. Suppose a criminal tries passwords leaked from another website against a store. Which attack is this?
A Credential stuffing
B Packet fragmentation
C Inventory drift
D Route poisoning
Answer: A. Credential stuffing. Credential stuffing tests reused username and password pairs across services.
2. Imagine a support agent shares one administrator login with the whole team. What is the main weakness?
A Faster password rotation
B Better audit evidence
C Stronger user identity
D No individual accountability
Answer: D. No individual accountability. Named accounts make actions traceable to an individual and allow tailored permissions.
3. When a product review contains script-like text that runs in shoppers’ browsers, which flaw is likely?
A Session timeout
B Credential stuffing
C Cross-site scripting
D DNS tunneling
Answer: C. Cross-site scripting. XSS occurs when untrusted content is handled unsafely in a webpage.
4. An attacker enters database commands into a product search field. What defense is strongest?
A Longer product names
B Public error messages
C More warehouse scans
D Parameterized queries
Answer: D. Parameterized queries. Parameterized queries keep user input separate from SQL commands.
5. If a shopper changes an order number in the URL and sees someone else’s order, what failed?
A Data compression
B Password complexity
C Shipping validation
D Object-level authorization
Answer: D. Object-level authorization. The server must check that the signed-in user may access that specific order.
6. Why should login attempts be monitored for many usernames from one address?
A Estimate shipping weight
B Improve product matching
C Detect automated abuse
D Create return labels
Answer: C. Detect automated abuse. Broad repeated attempts can indicate automated credential attacks.
7. Suppose a store’s server-side secret appears in a public code repository. What should the team do first?
A Delete order tracking
B Revoke exposed secret
C Hide the product page
D Rename the repository
Answer: B. Revoke exposed secret. An exposed credential should be invalidated so it cannot continue granting access.
8. Which cookie setting restricts a session cookie to encrypted connections?
A Secure attribute
B Path attribute
C Domain attribute
D SameSite attribute
Answer: A. Secure attribute. The Secure attribute tells browsers to send the cookie only over HTTPS.
9. What does the HttpOnly cookie attribute reduce?
A Database backups
B Script access to cookie
C Password reuse
D Parcel redirection
Answer: B. Script access to cookie. HttpOnly prevents ordinary client-side scripts from reading the cookie.
10. Imagine a logged-in buyer is tricked into submitting an unwanted request. What defense can help?
A CSRF protection
B Inventory buffering
C Product watermarking
D Route planning
Answer: A. CSRF protection. Anti-CSRF measures help verify that a state-changing request came from the intended interaction.
11. Why can a flood of requests make a shop unavailable?
A Improve session security
B Exhaust service capacity
C Alter item colours
D Erase return policy
Answer: B. Exhaust service capacity. A denial-of-service flood can consume the resources needed for legitimate traffic.
12. An employee receives an urgent message asking them to reset a supplier’s bank details. What should they do?
A Reply with credentials
B Approve it immediately
C Verify through known channel
D Follow the message link
Answer: C. Verify through known channel. Independent verification helps stop impersonation and payment diversion scams.
13. Why separate production and test environments?
A Reduce change review
B Increase shared credentials
C Limit unintended exposure
D Publish real customer data
Answer: C. Limit unintended exposure. Separation reduces the chance that testing exposes or changes live customer data.
14. When a shop stores API keys in source code, where should sensitive keys go?
A Public product database
B Managed secret storage
C Customer review text
D Shared browser notes
Answer: B. Managed secret storage. A secrets manager or protected configuration keeps keys out of ordinary source code.
15. Which check should protect an account recovery flow from rapid guessing?
A More product categories
B Longer order numbers
C Open registration
D Attempt throttling
Answer: D. Attempt throttling. Throttling can limit repeated recovery-code attempts.
16. Why does a store validate payment price on its server?
A Prevent client-side tampering
B Reduce parcel volume
C Shorten delivery routes
D Improve page colour
Answer: A. Prevent client-side tampering. The server should use trusted pricing and verify submitted transaction values.
17. If a merchant gets a login alert from an unfamiliar location, what is the best response?
A Delete all audit logs
B Review and secure account
C Share a new password
D Ignore all alerts
Answer: B. Review and secure account. An unexpected sign-in warrants account review and protective action.
18. What should a store do before allowing a staff member to export customer records?
A Change order status
B Check product colour
C Raise ad budget
D Verify role permission
Answer: D. Verify role permission. Sensitive exports should be limited to authorized staff with a legitimate need.
19. Suppose a checkout page loads third-party scripts. Why review those scripts?
A They can affect page security
B They set warehouse stock
C They weigh parcels
D They approve refunds
Answer: A. They can affect page security. Third-party code runs in the page context and can affect shopper data.
20. Which design helps stop one compromised account from accessing every store system?
A Segmented permissions
B Shared administrator login
C Public database access
D Permanent root access
Answer: A. Segmented permissions. Separate permissions and system boundaries can limit an account compromise.
21. Imagine a store finds malware on a workstation used by support staff. What should happen quickly?
A Disable all monitoring
B Connect it to backups
C Copy credentials elsewhere
D Isolate affected device
Answer: D. Isolate affected device. Isolation can limit spread while the incident is investigated.
22. Why should security updates be tested and then deployed promptly?
A Increase customer tracking
B Extend return deadlines
C Reduce exposure window
D Change account ownership
Answer: C. Reduce exposure window. Timely patching closes known weaknesses while change checks reduce deployment risk.
23. When a seller receives repeated failed sign-ins followed by one success, what should it inspect?
A Product reviews
B Authentication activity
C Delivery routes
D Invoice layout
Answer: B. Authentication activity. The sequence may indicate a guessing attempt followed by account compromise.
24. A shop uses a payment provider’s hosted fields. What should it still secure?
A Its own accounts and site
B Every buyer’s device
C Unrelated carrier systems
D The provider’s private network
Answer: A. Its own accounts and site. A hosted payment flow does not remove the need to secure the merchant environment.
25. If a checkout receives scripted attempts to test stolen card details, which control may slow them?
A Automatic restocking
B Warehouse wave picking
C Payment velocity checks
D Product image compression
Answer: C. Payment velocity checks. Velocity rules flag repeated transaction patterns for review.