200-901 exam dumps

200-901 practice question 172 of 204

Cisco DevNet Associate. Associate level, Cisco. Free question with the correct answer and a full explanation.

200-901 Question 172

Select 3

A developer is analyzing a sequence diagram for a system that integrates with a third-party API for payment processing. The sequence diagram includes the following steps:

  1. The client application sends a 'POST /payments' request to the Payment API.
  2. The Payment API responds with a 201 Created status and a payment ID.
  3. The client application sends a 'GET /payments/{paymentId}' request to check the payment status.
  4. The Payment API responds with a 200 OK status and the payment status as 'success'.

Which of the following statements correctly interprets the flow of the sequence diagram?

  1. A

    The 'POST /payments' request is used to initiate a payment transaction.

  2. B

    The 'GET /payments/{paymentId}' request is used to retrieve the status of the payment after it has been created.

  3. C

    The 201 Created response indicates that the payment transaction was successful.

  4. D

    The 200 OK response with payment status 'success' confirms that the payment has been processed successfully.

Show answer and explanation

Correct answers: A, B, D

Explanation

The sequence diagram describes the interaction between the client application and the Payment API. The 'POST /payments' request initiates the payment, and the 201 Created response confirms the creation of the payment resource. The 'GET /payments/{paymentId}' request retrieves the status of the payment, and the 200 OK response with a 'success' status indicates that the payment was processed successfully. Understanding how API calls and responses are represented in sequence diagrams is crucial for interpreting system interactions.

  • A. Correct.

    Correct. The 'POST /payments' request is typically used to create or initiate a payment transaction in a payment processing system.

  • B. Correct.

    Correct. The 'GET /payments/{paymentId}' request is used to retrieve the current status of a specific payment using its ID.

  • C. Incorrect.

    Incorrect. The 201 Created response indicates that the payment has been created successfully, but it does not confirm the success of the transaction itself.

  • D. Correct.

    Correct. The 200 OK response with a status of 'success' confirms that the payment has been processed successfully.

Timed practice exam

Take a 200-901 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam