E-Commerce Development Introduction to E-commerce Development 2 — Questions and Answers
Question 1: Which HTTP method is most appropriate when a customer submits a checkout form with payment details?
- GET
- POST (Correct answer)
- PUT
- DELETE
Correct answer: POST
POST is used to submit sensitive data in the request body, keeping it out of the URL and browser history.
Question 2: What does SSL/TLS provide for an e-commerce website?
- Faster page load speeds
- Encrypted data transmission between client and server (Correct answer)
- Better search engine rankings only
- Automatic payment processing
Correct answer: Encrypted data transmission between client and server
SSL/TLS encrypts data in transit, protecting sensitive information like credit card numbers from interception.
Question 3: Which of the following is a key benefit of using a Content Delivery Network (CDN) for an e-commerce site?
- It replaces the need for a database
- It reduces server load and latency by serving assets from geographically closer nodes (Correct answer)
- It automatically generates product descriptions
- It handles all payment processing
Correct answer: It reduces server load and latency by serving assets from geographically closer nodes
A CDN caches static assets on edge servers worldwide, reducing load times for users regardless of their location.
Question 4: What is the primary purpose of a shopping cart cookie in an e-commerce application?
- To track user demographics for advertising
- To persist cart contents across browser sessions (Correct answer)
- To store payment card data securely
- To prevent bot traffic
Correct answer: To persist cart contents across browser sessions
Shopping cart cookies store session or cart identifiers so a user's cart is retained between visits or page refreshes.
Question 5: Which database type is typically best suited for storing a product catalog with highly varied attributes across categories?
- A flat CSV file
- A relational SQL database with a single products table
- A document-oriented NoSQL database (Correct answer)
- An in-memory cache only
Correct answer: A document-oriented NoSQL database
Document databases like MongoDB allow flexible, schema-less documents so products with different attributes don't require NULL-filled columns.
Question 6: What is responsive design in the context of e-commerce development?
- Automatically responding to customer emails
- Designing a site that adapts its layout to different screen sizes and devices (Correct answer)
- Optimizing server response time under load
- Adding live chat to product pages
Correct answer: Designing a site that adapts its layout to different screen sizes and devices
Responsive design uses flexible grids and media queries so the storefront renders correctly on desktops, tablets, and smartphones.
Question 7: Which of the following best describes a payment gateway in e-commerce?
- The physical card reader at a point-of-sale terminal
- A service that authorizes and processes card transactions between the store and the bank (Correct answer)
- The SSL certificate installed on the web server
- A fraud detection algorithm built into the shopping cart
Correct answer: A service that authorizes and processes card transactions between the store and the bank
A payment gateway securely transmits transaction data between the merchant, the customer's bank, and the acquiring bank for authorization.
Which HTTP method is most appropriate when a customer submits a checkout form with payment details?