D1: Creating & Deploying APIs (REST & gRPC)
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
REST characteristics?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Creating & Deploying APIs (REST & gRPC) practice questions and answers
- REST characteristics?Resource-oriented HTTP APIs, usually JSON, widely compatible.
- gRPC characteristics?High-performance RPC using HTTP/2 and Protocol Buffers, supports streaming.
- When choose gRPC?Low-latency internal service-to-service calls and streaming.
- When choose REST?Public APIs and broad client compatibility.
- What defines a gRPC API?A .proto file with services and messages.
- REST API design best practices?Nouns for resources, proper HTTP methods/status codes, versioning, pagination.
- How do you version APIs?Version in the path (e.g. /v1/) or headers.
- What is an OpenAPI spec?Machine-readable REST API definition used by gateways and tooling.
- Can Cloud Run serve gRPC?Yes, with HTTP/2 end-to-end enabled.
- What are idempotent methods?Repeating them has the same effect (GET, PUT, DELETE).