গাইড লিঙ্ক ক্যুইজ · মাঝারি স্তর

মডেল সার্ভিং কুইজের জন্য gRPC বনাম REST

স্কিম, সিরিয়ালাইজেশন, স্ট্রিমিং, ক্লায়েন্ট সমর্থন, সামঞ্জস্যতা এবং এন্ড-টু-এন্ড পারফরম্যান্স জুড়ে gRPC এবং REST-স্টাইল মডেল API এর তুলনা করুন।

প্রশ্ন 1 এর 8

কিভাবে gRPC পরিষেবা পদ্ধতি সাধারণত বর্ণনা করা হয়?

প্রতিটি প্রশ্নের পূর্বরূপ দেখুন8 প্রশ্ন

আপনি কুইজ নেওয়ার সাথে সাথে উত্তর এবং ব্যাখ্যাগুলি উপস্থিত হয়।

  1. কিভাবে gRPC পরিষেবা পদ্ধতি সাধারণত বর্ণনা করা হয়?
    • In an OpenAPI document describing HTTP paths and JSON schemas
    • In a Protocol Buffers service definition with RPC methods and message types
    • In a protobuf message schema without any service methods
    • In generated client code with no source schema
  2. কোন সুবিধা JSON-ওভার-HTTP অনেক পাবলিক ক্লায়েন্টদের জন্য ব্যবহারিক করে তোলে?
    • It removes the need to define request and response fields
    • It guarantees lower latency for model calls
    • It has broad client and tooling support
    • It avoids all serialization costs
  3. Which transport does gRPC commonly use?
    • HTTP/1.1 with JSON as the required wire format
    • HTTP/2 as its commonly used transport
    • HTTP/3 as a requirement for every gRPC deployment
    • A custom TCP transport unrelated to HTTP
  4. জিআরপিসি কখন মডেল পরিবেশনের জন্য উপযুক্ত হতে পারে?
    • Typed contracts and streaming can suit compatible internal clients
    • Any public client can call it without a compatible library or gateway
    • It eliminates API versioning decisions
    • It is useful only when inference runs on GPUs
  5. কেন টিম রিয়েল পেলোডগুলিতে উভয় API বিকল্পকে বেঞ্চমার্ক করবে?
    • Serialization and network costs vary with payloads and client paths
    • The API protocol determines the model prediction quality
    • gRPC always uses less bandwidth for every payload
    • Inference compute is independent of request shape
  6. প্রোটোকল Buffer স্কিমা বিকশিত হওয়ার সাথে সাথে সামঞ্জস্যতা রক্ষা করে কী?
    • Compatibility is preserved by reusing removed field numbers
    • Compatibility depends on preserving field-number and type rules
    • Renaming fields requires changing their wire numbers
    • Changing a field meaning is safe when its number stays fixed
  7. What should both API styles define for slow or repeated requests?
    • Specify an unlimited retry policy for all failures
    • Let clients wait without deadlines to avoid cancellations
    • Define deadlines, error handling, authentication, and bounded retries
    • Use different preprocessing for each transport without documenting it
  8. Which statement about REST is accurate?
    • REST is an architectural style and does not mandate JSON encoding
    • REST requires protobuf messages over HTTP/2
    • REST cannot carry binary representations
    • REST guarantees stateless model inference