Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 42
User report that they can no longer able to process transactions with the online ordering application, and the logging dashboard is displaying these messages.
Fri Jan 10 19:37:31.123 EST 2020 [FRONTEND] INFO: Incoming request to add item to cart from user 45834534858
Fri Jan 10 19:37:31.247 EST 2020 [BACKEND] INFO: Attempting to add item to cart
Fri Jan 10 19:37:31.250 EST 2020 [BACKEND] ERROR: Failed to add item: MYSQLDB ERROR: Connection refused
What is causing the problem seen in these log messages?
Answer options
- A. The database server container has crashed.
- B. The backend process is overwhelmed with too many transactions.
- C. The backend is not authorized to commit to the database.
- D. The user is not authorized to add the item to their cart.
Correct answer: C
Explanation
The correct answer is C because the backend process is attempting to perform an operation but is receiving a 'Connection refused' error, indicating authorization issues. Option A is incorrect as it would result in different error messages. Option B does not apply here since no indication of overwhelming transactions is noted. Option D is also wrong as the log shows an attempt to add an item rather than a user authorization issue.