Difficulty: Hard
1. When a shopper edits a request to retrieve another buyer’s order, what control should reject it?
A Public error detail
B Longer session duration
C More product images
D Per-order authorization
Answer: D. Per-order authorization. The server must verify access to each requested order, not just whether the user signed in.
2. If a SQL query concatenates a search term directly into its command, which change best addresses the flaw?
A Add a longer timeout
B Change the product title
C Hide the search box
D Use parameterized queries
Answer: D. Use parameterized queries. Parameterization prevents untrusted input from changing SQL command structure.
3. Suppose a database dump containing password hashes is exposed. What should the team prioritize?
A Contain and assess exposure
B Disable incident records
C Publish the dump
D Reuse affected passwords
Answer: A. Contain and assess exposure. Containment and impact assessment guide credential resets and further response.
4. A checkout page accepts a lower price submitted by the browser. What is the key fix?
A Hide the price field
B Recalculate price server-side
C Use a longer URL
D Disable product images
Answer: B. Recalculate price server-side. The server should calculate and validate authoritative prices before payment.
5. Imagine a refund requires one clerk to approve and issue it. Which control can reduce misuse?
A Remove all logs
B Share one account
C Skip review thresholds
D Separate duties
Answer: D. Separate duties. Separating approval from execution provides an independent check on sensitive transactions.
6. When a shopper receives a login approval prompt they did not initiate, what should they do?
A Deny and report it
B Share the code
C Approve to clear it
D Ignore future prompts
Answer: A. Deny and report it. An unexpected authentication prompt may signal attempted account access and should be denied and reported.
7. If a stolen session token remains valid after a password change, what should the system do?
A Revoke existing sessions
B Disable reauthentication
C Store token in URL
D Extend session lifetime
Answer: A. Revoke existing sessions. Revoking active sessions limits continued use of a stolen token.
8. An attacker changes a return amount in a request. Where should the amount be checked?
A Customer review text
B Shipping label
C Trusted server logic
D Browser display only
Answer: C. Trusted server logic. Business rules and refund values should be verified on the server.
9. Suppose a malicious comment appears in a product review and executes in the page. Which defense is appropriate?
A Shared staff login
B Contextual output encoding
C Open database access
D Longer tracking codes
Answer: B. Contextual output encoding. Encoding untrusted output for its context prevents it being interpreted as script.
10. Imagine a shop sees a spike in requests across many pages. What response can preserve useful service?
A Disable every log
B Expose admin accounts
C Rate limiting and filtering
D Delete all stock
Answer: C. Rate limiting and filtering. Filtering and rate limits can reduce abusive load while monitoring the event.
11. When a store suspects its cloud access key was copied, what is the immediate credential action?
A Move the key into code
B Rename product files
C Disable order exports
D Revoke and rotate key
Answer: D. Revoke and rotate key. The exposed key should be invalidated and replaced through a secure process.
12. A release adds a vulnerable third-party package. What practice lowers this supply-chain risk?
A Review and update dependencies
B Disable code review
C Use unknown packages
D Store credentials in source
Answer: A. Review and update dependencies. Dependency review and updates help manage weaknesses in external components.
13. If a support employee only needs to check shipping status, which permission design is best?
A All refund permissions
B Full database administrator
C Read-only order access
D Shared owner access
Answer: C. Read-only order access. Read-only access to relevant order fields grants only the required capability.
14. Suppose a shop wants recovery after ransomware without losing recent orders. Which plan matters?
A Public cloud folder
B Protected tested backups
C One shared password
D Longer product descriptions
Answer: B. Protected tested backups. Frequent protected backups and tested recovery reduce data loss and downtime.
15. Imagine a password reset endpoint reveals whether an email address has an account. What risk arises?
A Packet loss
B Inventory mismatch
C Route optimization
D Account enumeration
Answer: D. Account enumeration. Different responses can help attackers identify valid accounts.
16. An analyst must send logs to a vendor for troubleshooting. What should happen first?
A Post logs publicly
B Disable encryption
C Include full credentials
D Remove sensitive data
Answer: D. Remove sensitive data. Redaction limits unnecessary disclosure of personal or secret information.
17. When an unfamiliar admin account appears during a suspected breach, what is a safe response?
A Share its password
B Delete all evidence
C Disable and investigate account
D Promote it to owner
Answer: C. Disable and investigate account. Disable unauthorized access while preserving evidence for investigation.
18. If a store’s backup shares the same administrator credentials as production, why is this risky?
A It guarantees encryption
B One compromise affects both
C It improves recovery testing
D It prevents data loss
Answer: B. One compromise affects both. An attacker with shared credentials may compromise production and its backups.
19. Suppose a failed login campaign targets many accounts. Which control can add friction to stolen-password use?
A Multifactor authentication
B Product feed caching
C Order batching
D Inventory buffering
Answer: A. Multifactor authentication. MFA can block access when an attacker has only a password.
20. A security team finds a critical flaw on its public checkout. What should guide remediation order?
A Product colour preference
B Risk and business impact
C Warehouse shelf order
D Ad click volume
Answer: B. Risk and business impact. Prioritization should consider exploitability, likelihood, and potential harm.
21. Imagine a service outage lasts six hours against a four-hour recovery target. What happened?
A Fill rate improved
B RPO was met
C RTO was missed
D Inventory was counted
Answer: C. RTO was missed. The observed recovery exceeded the four-hour recovery time objective.
22. Backups are four hours old when a system fails, against a one-hour data-loss target. What was missed?
A RTO target
B Delivery window
C RPO target
D Carrier cutoff
Answer: C. RPO target. Four hours of data loss exceeds a one-hour recovery point objective.
23. When an incident affects a public checkout server, which action helps while preserving an investigation?
A Isolate and retain evidence
B Erase system logs
C Restore over evidence
D Reimage before review
Answer: A. Isolate and retain evidence. Contain the system while preserving relevant evidence supports both response and analysis.
24. A merchant encrypts backups but stores the decryption key beside them. What remains weak?
A Key separation
B Password length
C Order routing
D Product availability
Answer: A. Key separation. Separating keys from backup data reduces the risk of a single compromise exposing both.
25. If a developer tests checkout with copied live customer records, what should replace this?
A Shared administrator accounts
B Synthetic or masked data
C Unencrypted spreadsheets
D Publicly shared exports
Answer: B. Synthetic or masked data. Synthetic or masked records reduce exposure of real personal information in testing.