Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Google Cloud - Apigee Certified API Engineer Apigee-API-Engineer Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 13 Total 126 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: API Design Best Practices

Skill tested: Applies facade and resource-oriented design to shield clients from backend changes.

A logistics company is exposing shipment information through a new API. Its existing warehouse service uses database-oriented endpoints, returns internal field names, and is scheduled for replacement next year. Mobile and partner clients need stable resources, while the engineering team wants to avoid exposing backend implementation details or requiring clients to change when the service is replaced. Which design is most appropriate?

Correct Answer: C. Create an API facade with stable shipment resources and translate requests and responses to the current backend representation.
Explanation:

A facade provides a stable, client-oriented contract while isolating consumers from backend schemas and replacement plans. The API layer can map public shipment resources to the current service and later change that mapping without forcing client changes. Directly exposing backend endpoints or database records couples clients to implementation details. Publishing separate APIs transfers migration complexity to every client rather than managing the transition behind a durable interface.

Question 2

New Multiple answers

Topic: Edge Policies

Skill tested: Configures policy sequencing and fault handling for request validation and transformation.

A partner API proxy must reject malformed JSON before sending traffic to a legacy service. Valid requests need an internal header added, but that header must never be sent back to the caller. The service can return sensitive diagnostic headers that must also be removed from responses. The proxy already has request and response flows, and the team wants enforcement to remain inside the proxy rather than in client applications. Which two policy actions best meet these requirements? Select TWO.

Correct Answer: A. Run a JSON threat-protection policy in the request flow before the target request is sent.; E. Use an AssignMessage policy in the response flow to remove the sensitive diagnostic headers.
Explanation:

A JSON threat-protection policy can validate request content against configured structural limits before the request reaches the target. A response-flow AssignMessage policy can remove sensitive headers supplied by the backend. The internal request header should be added on the request path and stripped before the target response is returned; option B describes a viable additional transformation but does not itself ensure malformed JSON is rejected or remove diagnostic response headers. ExtractVariables is not a JSON syntax validator, and adding the internal header in the response flow is too late.

Question 3

New Single answer

Topic: Edge Proxy Design

Skill tested: Selects proxy endpoint and target configuration to route requests to multiple backends.

A retailer has one public API base path, `/orders`, but must route `/orders/current` to a modern order service and `/orders/archive` to a separate legacy service. Both services use different hostnames, and clients must not see either hostname. The proxy should preserve a single public API contract and apply common authentication before routing. Which design best fits this requirement?

Correct Answer: C. Configure one proxy with conditional flows for the two resource paths and route each flow to its corresponding target endpoint.
Explanation:

A single proxy can expose one base path, execute shared authentication in common flows, and use conditional flows to select the appropriate target endpoint based on the request path. This keeps backend hostnames private and presents a unified API contract. Separate products do not perform backend routing, and duplicate proxies with the same public base path do not provide reliable path-based selection. Allowing clients to provide a backend hostname exposes routing control and undermines the facade.

Question 4

New Single answer

Topic: API Products, Developers, and Apps

Skill tested: Configures API product access using proxy, resource, environment, and quota constraints.

A data provider needs to onboard a developer app that can invoke only the `/v2/summary` resource on the `analytics` proxy in production. The app must be subject to a product quota, and the developer must obtain credentials through the normal app-registration process. The team wants to prevent access to other resources on the same proxy without creating a second proxy. Which configuration is most appropriate?

Correct Answer: C. Create a developer app and attach an API product that includes the analytics proxy, production environment, the allowed resource path, and the required quota.
Explanation:

API products define the governed access granted to an app, including eligible proxies, environments, resource paths, and quota settings. Attaching the appropriately scoped product to the developer app supports normal credential issuance and limits the app to the intended resource. Descriptive text does not enforce access. A proxy-level quota alone neither defines app authorization nor restricts resource paths, and creating separate developer accounts is unnecessary and weakens manageable app governance.

Question 5

New Single answer

Topic: Edge Troubleshooting and Debugging

Skill tested: Uses Trace data to isolate policy failures from target-service errors.

A newly deployed proxy returns HTTP 500 for a subset of requests. The target service reports no corresponding requests, and the proxy has a JavaScript policy followed by a request transformation policy. A developer can reproduce the issue in the test environment but has no permission to inspect the target service logs. The team needs to identify whether execution stops in the proxy and determine the failing step before changing code. What should the developer do first?

Correct Answer: C. Use the Trace tool for a failing request to inspect flow progression, policy execution, variables, and error details.
Explanation:

Trace provides a request-level view of proxy flow execution, including which policies ran, variable values, and where an error occurred. Since the target receives no request, inspecting the proxy execution path is the most direct first diagnostic step, and it does not require target log access. Increasing the target timeout addresses a different failure class. Disabling production logic without evidence risks behavior changes, while changing the base path does not identify the failing policy.

Question 6

New Multiple answers

Topic: Edge Deployment and Environment Promotion

Skill tested: Promotes proxy revisions safely while respecting environment deployment and configuration differences.

A release team manages an API proxy in development, test, and production environments. A revision passed testing, but each environment uses a different target hostname, and production changes require a controlled deployment window. The team must preserve the existing production revision until the new revision is ready and avoid embedding environment-specific hostnames into proxy policy logic. Which two practices are appropriate? Select TWO.

Correct Answer: B. Deploy the tested revision to production during the approved window, retaining the prior deployed revision for rollback.; E. Use environment-specific configuration, such as target server configuration, so the proxy can refer to a logical target rather than hard-coded hostnames.
Explanation:

Apigee Edge supports deploying a selected proxy revision to an environment; deploying the tested revision in the approved window preserves the opportunity to return to the prior deployed revision if needed. Environment-specific target configuration, such as target servers referenced by the proxy, avoids hard-coding hostnames into policy logic. Editing production while testing defeats controlled promotion. Skipping test increases release risk, and the same proxy can be deployed in multiple environments.

Question 7

New Single answer

Topic: Edge Monetization

Skill tested: Distinguishes monetization transaction recording from ordinary proxy quota enforcement.

A transit-data company has API products with paid plans. It already uses a Quota policy to protect backend capacity, but finance reports that usage under paid plans is not appearing in monetization records for billing. The proxy successfully returns responses, and the company does not want to replace its existing capacity-protection quota. What is the most appropriate next step?

Correct Answer: D. Configure the monetization transaction-recording mechanism for the billable API usage and retain Quota for operational traffic control.
Explanation:

Quota and monetization serve different purposes. Quota limits or manages request volume; it does not by itself create the transaction records required for monetization billing. The appropriate monetization transaction-recording configuration must capture the billable usage associated with the applicable plan, while the existing Quota policy can continue protecting backend capacity. A larger quota does not add billing records, and app credentials or a price response header do not replace monetization transaction recording.

Question 8

New Multiple answers

Topic: API Security Topics and Best Practices

Skill tested: Combines OAuth access-token validation with TLS and backend credential protection.

A financial services team exposes a proxy to external mobile clients. Clients authenticate with OAuth access tokens, while the backend requires a separate service credential. The credential must not be disclosed to callers, and traffic must be protected in transit. The team needs to validate tokens at the edge and avoid treating possession of a valid token as proof that the backend credential should be returned. Which two controls are most appropriate? Select TWO.

Correct Answer: C. Use TLS for client-to-Apigee and Apigee-to-backend connections where supported by the configured endpoints.; E. Use an OAuthV2 policy to verify access tokens on the inbound request before allowing protected flows to proceed.
Explanation:

OAuthV2 token verification enforces token validity at the proxy before protected processing. TLS protects data in transit on the relevant client-to-proxy and proxy-to-target connections, while the backend credential should remain in protected proxy configuration or another appropriate secret-management mechanism and be used only on the target request. Returning or documenting the credential exposes it. TLS encrypts transport but does not authenticate an OAuth token or replace token validation.

Question 9

New Single answer

Topic: API Lifecycle Topics and Best Practices

Skill tested: Uses OpenAPI-driven design and governance to manage an API from contract through implementation.

An organization is launching a partner API and wants consistent review of its contract before implementation. Several teams will build clients and a proxy in parallel, and the contract must describe operations and schemas in a machine-readable format. The organization also wants to use the contract as a basis for proxy creation and reduce late changes that break partner integrations. Which lifecycle approach is best?

Correct Answer: C. Draft and review an OpenAPI specification as the contract, validate it with stakeholders, and use it to guide proxy and client development.
Explanation:

An OpenAPI specification provides a machine-readable API contract that can be reviewed before implementation and used to coordinate proxy, backend, and client work. Early contract governance exposes incompatible assumptions while changes are still less costly and supports tooling such as proxy creation from an API specification. Documenting only after implementation misses the design-first benefit. Independent client schemas and prose-only documentation increase inconsistency and the likelihood of breaking changes.

Question 10

New Multiple answers

Topic: API Design Best Practices

Skill tested: Chooses resource-oriented HTTP semantics and compatible evolution strategies for public APIs.

A municipal services team is redesigning an API used by several independent contractors. The current interface uses action names in paths, returns the same status for successful creation and failed validation, and changes response fields without warning. The team wants intuitive HTTP behavior and a stable contract, but cannot coordinate simultaneous client upgrades. Which two design practices should it adopt? Select TWO.

Correct Answer: B. Model domain entities as resources and use HTTP methods to express operations where their semantics fit.; D. Use explicit compatible evolution, such as adding optional fields while preserving existing field meanings and behavior.
Explanation:

Resource-oriented paths combined with appropriate HTTP methods make operations more consistent and predictable. Compatible evolution - such as adding optional fields without changing existing semantics - allows independently managed clients to continue functioning. A coordinated mandatory upgrade is unrealistic given the stated constraint. Using POST for every operation discards useful HTTP semantics, while returning success statuses for validation failures misrepresents the outcome and complicates reliable client behavior.

Question 11

New Multiple answers

Topic: Edge Policies

Skill tested: Applies fault rules and message transformation to return controlled client errors.

A proxy calls an external inventory service. When that service is unavailable, the backend response contains internal diagnostic details that must not reach API consumers. The public API contract requires a consistent error payload and an appropriate gateway error status. The team wants the proxy to handle this failure centrally, without modifying the backend or returning a successful fallback response. Which two implementation choices are appropriate? Select TWO.

Correct Answer: A. Configure a fault rule to handle the relevant target failure and execute an AssignMessage policy that sets the public error status and payload.; C. Use an AssignMessage policy to create the controlled error response, and ensure the fault handling path invokes it for the target failure.
Explanation:

A fault rule can direct a matching target failure into centralized proxy handling, where AssignMessage can construct the public status, headers, and payload required by the API contract. This prevents internal diagnostics from leaking and does not require backend changes. Options A and C describe complementary parts of that implementation. Returning the raw backend body exposes internal details, successful-response handling does not reliably address a fault, and a client-supplied request header cannot substitute for proxy fault handling.

Question 12

New Single answer

Topic: Edge Proxy Design

Skill tested: Selects a shared flow to apply reusable proxy logic consistently across APIs.

A platform team supports twelve API proxies. Each must perform the same correlation-ID handling and standardized request logging, and the implementation is currently copied into each proxy. Updates have become inconsistent, but the teams need to keep their existing proxy contracts and deployments independent. Which design best reduces duplication while allowing the common logic to be centrally maintained?

Correct Answer: A. Place the common policies in a shared flow and invoke it from each proxy at the required flow points.
Explanation:

A shared flow packages reusable policies and can be invoked by multiple proxies, allowing the platform team to maintain common behavior centrally while preserving each API's public contract. The proxies still control where the shared logic runs. A front proxy adds a client-visible dependency and an extra hop. Matching policy names do not synchronize duplicated configuration, and moving behavior to backends would require changes across services and would not provide consistent proxy-level handling.