DVA-C02 practice question · Development with AWS Services
A company wants their API Gateway REST API to be reachable at api.example.com/v1/...
A company wants their API Gateway REST API to be reachable at api.example.com/v1/... instead of the default execute-api endpoint URL. What must be configured?
- AA custom domain name in API Gateway, with a base path mapping connecting the desired path (like /v1) to the specific API and stage
- BA Route 53 record alone, with no API Gateway-side configuration
- CThis isn't possible; API Gateway can only ever be accessed via its default execute-api URL
- DA DynamoDB table mapping paths to APIs
Show the answer and explanation
Correct answer: A) A custom domain name in API Gateway, with a base path mapping connecting the desired path (like /v1) to the specific API and stage
Why each option is right or wrong
- A) Correct. A custom domain name lets you associate a friendly domain (with an ACM certificate) with API Gateway, and a base path mapping then routes a specific path prefix under that domain to a particular API and deployment stage.
- B) Incorrect. A Route 53 record pointing to the API Gateway endpoint is necessary but not sufficient by itself — the API Gateway custom domain name and base path mapping must also be configured to correctly route and terminate TLS for the custom domain.
- C) Incorrect. Custom domain names are an explicitly supported API Gateway feature for exactly this purpose — this option is factually incorrect.
- D) Incorrect. This routing configuration lives in API Gateway's own custom domain/base path mapping settings, not in a DynamoDB table.
- Exam domain
- Development with AWS Services · 32% of DVA-C02
- Question type
- Multiple choice (one answer)
Related DVA-C02 questions
- A DynamoDB PutItem call should only succeed if an item with that primary key doesn't already exist (to avoid…Development with AWS Services
- A Lambda function needs to share a common logging library and a set of utility functions across multiple functions…Development with AWS Services
- A developer wants to query a DynamoDB table efficiently using an attribute that is not the table's partition key…Development with AWS Services
- An application needs to decouple a producer service from multiple independent consumer services, so that each consumer…Development with AWS Services
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
Practise the full DVA-C02 exam
This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.
Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.