Quiz Space

Modern Application Development II · End Term · 31 Aug 2025 · May 2025 term · Set QDB1

Question 9: A popular e-commerce platform needs to notify multiple th…

Question 9

+3 marksOne correct option

A popular e-commerce platform needs to notify multiple third-party services (inventory management, email marketing, analytics) whenever a customer places an order. The development team is considering different approaches to handle these notifications.
Scenario: When an order is placed, the system needs to:
● Update inventory levels in an external warehouse system
● Send a welcome email through a third-party email service
● Log analytics data to an external tracking service
● Update customer loyalty points in a CRM system
Which of the following statements about using webhooks for this scenario is MOST accurate?

  1. A

    Webhooks are not suitable for this use case because they require the e- commerce platform to continuously poll each third-party service to check if they're ready to receive data, which would create unnecessary network overhead.

  2. B

    Webhooks provide an ideal solution as they allow the e-commerce platform to push real-time notifications to all subscribed third-party services immediately when an order is placed, eliminating the need for these services to repeatedly poll for updates.

  3. C

    Webhooks should be avoided in this scenario because they operate synchronously, meaning the customer's order placement would be delayed until all third-party services have successfully processed their notifications.

  4. D

    Webhooks are primarily designed for read-only operations and cannot handle complex data payloads like order information, making them unsuitable for e-commerce transaction notifications.

Show answer

Correct answer

  • B

    Webhooks provide an ideal solution as they allow the e-commerce platform to push real-time notifications to all subscribed third-party services immediately when an order is placed, eliminating the need for these services to repeatedly poll for updates.

Question 9 of 32 in the IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 31 Aug 2025, in the May 2025 term (IIT M IMPROVEMENT AN EXAM QIB3 31 Aug 2025). It carries 3 marks.

This question was also asked in

More questions from this paper

  1. Q1In a message queue system, if the consumer is slower than the producer, what is likely to occur first?
  2. Q2Figure question
  3. Q3In Flask, what is the main benefit of using the @cache.cached() decorator?
  4. Q4What is the primary purpose of CORS (Cross-Origin Resource Sharing)?
  5. Q5Which of the following practices help protect against supply chain attacks?
  6. Q6Which of the following factors directly affect the speed and performance of a web page load?
  7. Q7Which of the following is/are the potential benefits of using a message broker?
  8. Q8Which statements about webhooks are correct?
  9. Q10What is the main advantage of using caching in a Flask-based web application?
  10. Q11What will be the order of console output when the following JavaScript code is executed?
  11. Q12Consider the following Vue application with markup index.html and JavaScript file app.js. File: index.html File: script…
  12. Q13Consider the below JavaScript program. What will be the output of the above program, if executed? Also, predict the min…
  13. Q14Figure question
  14. Q15Consider the following Vue router configuration. If the app loads with userRole = 'user', what will be displayed?
  15. Q16Consider the following JavaScript program: What will be the output of the above program on a browsers console?
  16. Q17Given the following parent-child component setup: Parent Component: App.vue Child Component: TaskList.vue Test Scenario…
  17. Q18Given the following parent-child component setup: Parent Component: App.vue Child Component: TaskList.vue Test Scenario…
  18. Q19Given the following parent-child component setup: Parent Component: App.vue Child Component: TaskList.vue Test Scenario…
  19. Q20Which factors directly impact the Lighthouse "Performance" score?
  20. Q21Which statements are true about handling background tasks in Flask with Celery?
  21. Q22Which of the following are true about mutations and actions in Vuex?
  22. Q23Figure question
  23. Q24Consider the following JavaScript program: What will be the output of the above program?
  24. Q25Consider the following JavaScript code snippet: What will be the output sequence?
  25. Q26What will this Promise chain output?
  26. Q27What happens when this Flask caching code runs? If requests for user IDs 1, 2, 1 are made within 5 minutes, what's the …
  27. Q28What happens when the following code is run in the browser (Vue 2 CDN used)?
  28. Q29What does this async/await code do? If the API returns 404 status, what gets logged?
  29. Q30Consider the following JavaScript program that demonstrates web storage operations: What will be the output of the abov…
  30. Q31Consider the following Flask application configuration for Flask-Security with the User and Role models properly define…
  31. Q32Consider the following endpoints created with a working set up of flask-security and flask-sqlalchemy. Three requests a…