exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 18 discussion

Actual exam question from Cisco's 350-901
Question #: 18
Topic #: 1
[All 350-901 Questions]

Which two data encoding techniques are supported by gRPC? (Choose two.)

  • A. XML
  • B. JSON
  • C. ASCII
  • D. ProtoBuf
  • E. YAML
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
Jerryang
Highly Voted 3 years, 6 months ago
Json and ProtoBuf
upvoted 15 times
...
Writer
Highly Voted 3 years, 6 months ago
By default, gRPC uses Protocol Buffers, Google’s mature open source mechanism for serializing structured data (although it can be used with other data formats such as JSON).
upvoted 6 times
...
tartarus23
Most Recent 6 months ago
Selected Answer: BD
gRPC supports the following two data encoding techniques from your options: B. JSON D. ProtoBuf Explanation: gRPC, by default, uses Protocol Buffers (ProtoBuf), Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data, as its interface definition language (IDL). This is the recommended serialization format for gRPC. As for JSON, while gRPC does not natively support it, it is possible to use JSON as a serialization format in gRPC with certain workarounds.
upvoted 1 times
...
andym12
1 year, 4 months ago
Selected Answer: BD
B and D
upvoted 1 times
...
Guillaume
2 years ago
Selected Answer: BD
https://grpclib.readthedocs.io/en/latest/encoding.html
upvoted 3 times
...
Npirate
2 years, 4 months ago
Jerryyang is right. https://grpclib.readthedocs.io/en/latest/encoding.html
upvoted 1 times
...
bboylord
2 years, 7 months ago
B & D By default, gRPC interprets application/grpc content type as application/grpc+proto content type. So by default gRPC uses Protocol Buffers as encoding format. But why content type has such name with a proto subtype? This is because messages in gRPC are sent as length-delimited stream of binary blobs. This format can’t be changed, so content type should always be in the form of application/grpc+{subtype}, where {subtype} can be anything you want, e.g. proto, fbs, json, thrift, bson, msgpack.
upvoted 1 times
...
san111
3 years, 2 months ago
B and D "So by default gRPC uses Protocol Buffers as encoding format." ... "This format can’t be changed, so content type should always be in the form of application/grpc+{subtype}, where {subtype} can be anything you want, e.g. proto, fbs, json, thrift, bson, msgpack." https://grpclib.readthedocs.io/en/latest/encoding.html
upvoted 2 times
...
blezzzo
3 years, 3 months ago
Json and ProtoBuf (B and D) Explanation: gRPC is an open-source RPC framework. It is based on Protocol Buffers (Protobuf), which is an open source binary serialization protocol. gRPC provides a flexible, efficient, automated mechanism for serializing structured data, like XML, but is smaller and simpler to use. You define the structure using protocol buffer message types in .proto files. Each protocol buffer message is a small logical record of information, containing a series of name-value pairs. Cisco gRPC IDL uses the protocol buffers interface definition language (IDL) to define service methods, and define parameters and return types as protocol buffer message types. The gRPC requests are encoded and sent to the router using JSON. Clients can invoke the RPC calls defined in the IDL to program the router.
upvoted 3 times
...
FR99
3 years, 3 months ago
Agree with answers B. JSON & D. ProtoBuf
upvoted 3 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 ...