1.0 Development with AWS Services DVA-C02 Practice Quiz

160 exam-style questions covering 32% of the DVA-C02 exam. Instant feedback on every answer, progress tracking, no signup required.

This domain is part of the AWS Certified Developer Associate practice test. Each question is tagged by exam objective and difficulty so you can drill exactly the areas you need.

Sample Questions

A shopping application needs to publish an OrderCreated event and let billing, inventory, and notification components react independently. Which pattern should the developer use?
  • A. Event-driven fanout with Amazon EventBridge or Amazon SNS
  • B. Synchronous request chaining between all services
  • C. A monolithic handler that performs all order tasks
  • D. A single shared database table polled by every component

Publishing one domain event to EventBridge or Amazon SNS lets multiple subscribers react without the order service calling each component directly. This is the correct answer.

A notification service should not need to know which service created the event it consumes. Which design helps?
  • A. EventBridge event bus with event patterns
  • B. Hardcoded HTTPS calls from every producer to the notification service
  • C. A shared source-code library that sends all notifications directly
  • D. An API Gateway stage variable for each producer

EventBridge event patterns let consumers subscribe to events by shape or source, keeping producers and consumers loosely connected through the bus. This is the correct answer.

A payment workflow must coordinate reserve inventory, charge card, and send receipt steps with retries and compensating actions. Which pattern fits best?
  • A. Choreography with no workflow owner
  • B. Orchestration with AWS Step Functions
  • C. Direct Lambda-to-Lambda invocation for every step
  • D. A CloudFront cache behavior

Step Functions can model the workflow state, call each service in order, retry transient failures, and route failures to compensating steps. This is the correct answer.

A developer needs to broadcast one domain event to many HTTP and Lambda subscribers. Which AWS service is designed for pub/sub fanout?
  • A. Amazon SQS standard queue only
  • B. Amazon SNS
  • C. Amazon DynamoDB strongly consistent read
  • D. AWS Secrets Manager rotation

Amazon SNS provides publish/subscribe fanout to multiple subscriber types, allowing one message to reach several consumers. This is the correct answer.

A developer notices user carts disappear when EC2 instances scale in because carts are stored only in process memory. What change improves resilience?
  • A. Increase the Auto Scaling cooldown only
  • B. Move cart state to a durable store such as DynamoDB or ElastiCache
  • C. Use a larger instance type for the web tier
  • D. Add a CloudFront response header policy

A durable external store preserves cart data across instance replacement and lets any healthy instance serve the user. This is the correct answer.

A team wants each microservice to own its data and deploy independently. Which architecture principle supports this goal?
  • A. A shared database schema for all services
  • B. One Lambda function containing all business domains
  • C. Microservices with service-owned data boundaries
  • D. Client-side joins across every service database

Service-owned data boundaries let each microservice evolve its code and persistence model without requiring other teams to share the same database schema. This is the correct answer.

A Lambda function calculates tax from values in the event and stores no session data between invocations. Which concept describes the function?
  • A. Stateful session affinity
  • B. Persistent in-memory workflow state
  • C. Stateless compute
  • D. Write-through cache coordination

The function can run on any execution environment because each invocation contains the data needed to calculate the result. This is the correct answer.

An application has simple requirements, one team, and a single deployment package. Which pattern may be acceptable before complexity grows?
  • A. Event-driven choreography for every internal method call
  • B. Dedicated microservice for each class in the codebase
  • C. Fanout through Amazon SNS for local function calls
  • D. Monolithic application

A monolithic application can be appropriate for a small system with one team and simple deployment needs, especially before independent scaling is required. This is the correct answer.

Key Terms in This Domain

Link to this quiz

Studying with a group or teaching a class? Send this address or paste the link into your notes, wiki, or course page:

https://quizbuffet.com/aws-developer-associate/development-with-aws-services/

<a href="https://quizbuffet.com/aws-developer-associate/development-with-aws-services/">AWS Certified Developer Associate Development with AWS Services practice quiz on QuizBuffet</a>

Other DVA-C02 Domains

← Back to DVA-C02 practice test overview

Questions are written against the published DVA-C02 objectives and checked for accuracy and balance before they go live. How QuizBuffet writes and reviews its questions.