A must-know for anyone heading into a Magento2 interview, this question is frequently asked in Magento 2 interview questions.   A sales order is automatically created in the database whenever a customer puts an order as a temporary record to provide an account of the transaction. The order status is indicated as ‘pending’ until the payment is completed for a purchase. The order status changes from pending to complete once the customer makes payment for the purchase. A life cycle is followed by Order Process. The diagram below shows the Order Lifecycle in Magento 2.