What is the correct syntax for a Logger component to output a message with the contents of a 3SON Object payload?
Options:
A.
The payload is: $(payload)
B.
#["The payload is: " ++ payload]
C.
The payload is: #[payload]
D.
#["The payload is: " + payload]
Answer:
B
Explanation:
Explanation:
Option 3 is the only corect answer as it concatenates payload with String.
Below option wont work.
#["The payload is " ++ payload]
Concatenation function expects both arguments to be string. As the question says payload is json object , this will throw error while running it. You can try this in Anypoint Studio and you will get the same result which I mentioned.
hence correct answer is
The payload is: #[payload]
Question 70
The new RAML spec has been published to Anypoint Exchange with client credentials.
What is the next step to gain access to the API?
Options:
A.
Request access to the API in Anypoint Exchange
B.
Email the owners of the API
C.
Create a new client application
D.
No additional steps needed
Answer:
A
Explanation:
Explanation:
Correct answer is Request access to the API in Anypoint Exchange. This way we can get clientId and Client secret which we can use to access the API