nerdexam
Amazon

DVA-C02 · Question #589

A developer is creating an ecommerce workflow in an AWS Step Functions state machine that includes a HTTP Task state. The task passes shipping information and order details to an endpoint. The develop

The correct answer is A. Use the TestState API to invoke only the HTTP Task. Set the inspection level to TRACE.. To confirm that the HTTP headers, body, and responses meet expectations, you need to test the specific HTTP Task state in isolation and inspect the details. Option A: TestState API with TRACE: The TestState API allows developers to test individual states in a state machine withou

Submitted by jakub_pl· Mar 5, 2026Development with AWS Services

Question

A developer is creating an ecommerce workflow in an AWS Step Functions state machine that includes a HTTP Task state. The task passes shipping information and order details to an endpoint. The developer needs to test the workflow to confirm that the HTTP headers and body are correct and that the responses meet expectations. Which approach should the developer use to achieve this with minimal testing overhead?

Options

  • AUse the TestState API to invoke only the HTTP Task. Set the inspection level to TRACE.
  • BUse the TestState API to invoke the state machine. Set the inspection level to DEBUG.
  • CUse the data flow simulator to invoke only the HTTP Task. View the request and response data.
  • DChange the log level of the state machine to ALL. Run the state machine.

How the community answered

(27 responses)
  • A
    70% (19)
  • B
    11% (3)
  • C
    4% (1)
  • D
    15% (4)

Explanation

To confirm that the HTTP headers, body, and responses meet expectations, you need to test the specific HTTP Task state in isolation and inspect the details. Option A: TestState API with TRACE: The TestState API allows developers to test individual states in a state machine without executing the entire workflow. Setting the inspection level to TRACE provides detailed information about the HTTP request and response, including headers, body, and status codes. This option provides the precise and granular testing required to verify the HTTP Task functionality.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice