Valid 1z0-1084-24 Dumps shared by ExamDiscuss.com for Helping Passing 1z0-1084-24 Exam! ExamDiscuss.com now offer the newest 1z0-1084-24 exam dumps, the ExamDiscuss.com 1z0-1084-24 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1z0-1084-24 dumps with Test Engine here:
You are developing a distributed application and you need a call to a path to always return a specific JSON content deploy an OCI API Gateway with the below API deployment specification. What is the correct value for type? { "routes" : [{ "path" : "/hello", "methods" : ["Get"), "backend" : { "type" : " ---------------- ", "status" : 200, "headers" : [{ "name" : "Content-Type", "value" : "application/json" }] "body" : "{\"myjson\": \" consistent response\"}" }}]}
Correct Answer: A
The correct value for the "type" field in the API deployment specification is "STOCK_RESPONSE_BACKEND". By setting the "type" to "STOCK_RESPONSE_BACKEND", you are indicating that the backend for the specified route should return a pre-defined response. This type of backend is commonly used when you want a specific response to be returned consistently, regardless of the actual backend service implementation. In this case, the API deployment specification is configured to have a single route with the path "/hello" and the method "GET". The backend section specifies the type as "STOCK_RESPONSE_BACKEND". Additionally, it defines the response status code as 200, sets the "Content-Type" header to "application/json", and provides the JSON content in the "body" field. Using this configuration, any request to the "/hello" path with the "GET" method will always receive a consistent JSON response with the content "{"myjson": "consistent response"}".