Exam CCDV-F Topic 1 Question 43 Discussion
Actual exam question for Anthropic's CCDV-F exam
Question #: 43
Topic #: 1
Question #: 43
Topic #: 1
You are integrating Claude into an application written in Python. The Claude SDK provides a Python client that wraps the underlying REST API.
How would you integrate the SDK?
How would you integrate the SDK?
Suggested Answer: B Vote an answer
Option B is correct because the official Anthropic Python SDK is the supported abstraction for calling the Claude REST API from Python. Anthropic documents both synchronous and asynchronous clients, standardized request/response objects, streaming support, error classes, timeouts, request IDs, and built-in retry behavior for common transient failures. Using those documented primitives reduces boilerplate and keeps integration behavior aligned with the API.
Option A is technically possible, but it unnecessarily reimplements authentication headers, serialization, error mapping, retries, timeouts, and response handling that the SDK already provides. Direct HTTP is appropriate only when there is a specific reason not to use the supported client. Option C introduces another provider's abstraction and a translation layer that is unrelated to the stated requirement and increases compatibility risk.
Option D invokes shell commands from Python, creating needless process-management, security, and error- handling complexity.
The correct engineering principle is to use the highest-level supported client that satisfies the application's requirements while retaining access to lower-level HTTP controls when genuinely needed. Therefore, B is the appropriate Claude integration pattern. Relevant Study Guide topics: Python SDK, REST abstraction, authentication, retries, exceptions, response parsing, synchronous/asynchronous clients, and maintainable API integration.
Option A is technically possible, but it unnecessarily reimplements authentication headers, serialization, error mapping, retries, timeouts, and response handling that the SDK already provides. Direct HTTP is appropriate only when there is a specific reason not to use the supported client. Option C introduces another provider's abstraction and a translation layer that is unrelated to the stated requirement and increases compatibility risk.
Option D invokes shell commands from Python, creating needless process-management, security, and error- handling complexity.
The correct engineering principle is to use the highest-level supported client that satisfies the application's requirements while retaining access to lower-level HTTP controls when genuinely needed. Therefore, B is the appropriate Claude integration pattern. Relevant Study Guide topics: Python SDK, REST abstraction, authentication, retries, exceptions, response parsing, synchronous/asynchronous clients, and maintainable API integration.
by Stephanie at Nov 23, 2026, 06:17 AM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).