exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 19 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 19
Topic #: 1
[All 2V0-72.22 Questions]

Which two statements are true regarding the RestTemplate class? (Choose two.)

  • A. It supports asynchronous non-blocking model.
  • B. It automatically supports sending and receiving Java objects.
  • C. It provides convenience methods for writing REST clients.
  • D. It provides convenience methods for writing REST services.
  • E. Sending an HTTP request with a custom header is not possible when using RestTemplate.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Eymet
3 months, 3 weeks ago
Selected Answer: BC
B. It automatically supports sending and receiving Java objects. True. RestTemplate is designed to work with Java objects and can automatically serialize and deserialize them to and from HTTP request and response bodies using message converters. You can configure it to work with different data formats such as JSON or XML. C. It provides convenience methods for writing REST clients. True. RestTemplate provides various convenience methods for making HTTP requests to RESTful services, including GET, POST, PUT, DELETE, etc. It simplifies the process of making REST calls.
upvoted 4 times
...
james2033
6 months ago
Selected Answer: BC
E is wrong. See https://www.baeldung.com/rest-template . Custom header RestTemplate https://stackoverflow.com/a/32623548/3728901 https://www.baeldung.com/rest-template#exchange_post-1 Admin please correct "Correct Answer".
upvoted 2 times
...
qqoo
6 months, 4 weeks ago
Selected Answer: BC
Answer is BC
upvoted 2 times
...
zakupower
10 months, 3 weeks ago
Selected Answer: BC
RestTemplate supports sending custom headers using exchange method with HttpEntity object.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago