A developer is building a WebSocket API using Amazon API Gateway. The payload sent to this API is JSON that includes an action key. This key can have three different values: create, update, and remove. The developer must integrate with different routes based on the value of the action key of the incoming JSON payload. How can the developer accomplish this task with the LEAST amount of configuration?
A) Deploy the WebSocket API to three stages for the respective routes: create, update, and remove
B) Create a new route key and set the name as action
C) Set the value of the route selection expression to action
D) Set the value of the route selection expression to $request.body.action
Correct Answer:
Verified
Q367: An application on AWS is using third-party
Q368: A Developer wants to use AWS X-Ray
Q369: A development team uses AWS Elastic Beanstalk
Q370: How can a developer use a debugger
Q371: An application takes longer than expected to
Q373: A developer tested an application locally and
Q374: A large company has its application components
Q375: A Developer is receiving HTTP 400: ThrottlingException
Q376: A Developer has created a software package
Q377: A gaming company is developing a mobile
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents