00:20:00

AWS Certified Developer Associate Practice Test (DVA-C02)

Use the form below to configure your AWS Certified Developer Associate Practice Test (DVA-C02). The practice test can be configured to only include certain exam objectives and domains. You can choose between 5-100 questions and set a time limit.

Logo for AWS Certified Developer Associate DVA-C02
Questions
Number of questions in the practice test
Free users are limited to 20 questions, upgrade to unlimited
Seconds Per Question
Determines how long you have to finish the practice test
Exam Objectives
Which exam objectives should be included in the practice test

AWS Certified Developer Associate DVA-C02 Information

AWS Certified Developer - Associate showcases knowledge and understanding of core AWS services, uses, and basic AWS architecture best practices, and proficiency in developing, deploying, and debugging cloud-based applications by using AWS. Preparing for and attaining this certification gives certified individuals more confidence and credibility. Organizations with AWS Certified developers have the assurance of having the right talent to give them a competitive advantage and ensure stakeholder and customer satisfaction.

The AWS Certified Developer - Associate (DVA-C02) exam is intended for individuals who perform a developer role. The exam validates a candidate’s ability to demonstrate proficiency in developing, testing, deploying, and debugging AWS Cloud-based applications. The exam also validates a candidate’s ability to complete the following tasks:

  • Develop and optimize applications on AWS.
  • Package and deploy by using continuous integration and continuous delivery (CI/CD) workflows.
  • Secure application code and data.
  • Identify and resolve application issues.
AWS Certified Developer Associate DVA-C02 Logo
  • Free AWS Certified Developer Associate DVA-C02 Practice Test

  • 20 Questions
  • Unlimited
  • Development with AWS Services
    Security
    Deployment
    Troubleshooting and Optimization

Free Preview

This test is a free preview, no account required.
Subscribe to unlock all content, keep track of your scores, and access AI features!

Question 1 of 20

A developer needs to process incoming files uploaded to an Amazon S3 bucket and transform the data using an AWS Lambda function. The developer wants the function to be triggered as soon as a new file is stored in the bucket. What is the MOST suitable way to achieve this requirement?

  • Route the S3 event notifications to Amazon CloudWatch Events/EventBridge and associate the Lambda function as a target.

  • Send the S3 event notifications to an Amazon SQS queue and set up the queue as an event source for the Lambda function.

  • Configure the Lambda function to be triggered by Amazon S3 event notifications when a new object is created.

  • Publish the S3 event notifications to an Amazon SNS topic and subscribe the Lambda function to that topic.

Question 2 of 20

A developer needs to ensure that a serverless function, which is responsible for processing incoming messages, will redirect failed executions to a separate storage service for later analysis. Which feature should the developer configure to BEST adhere to this requirement?

  • Boost the serverless function's available compute resources to prevent message processing failures.

  • Set up an automated re-publishing mechanism through another notification service to keep submitting the message until it is processed without errors.

  • Configure a dead-letter queue to save messages that the function fails to process for subsequent analysis.

  • Alter the function's retry settings to indefinitely attempt reprocessing the problematic message until successful.

Question 3 of 20

A developer is implementing an application that requires frequent retrieval of items from an Amazon DynamoDB table. To optimize performance, the application needs to minimize latency and reduce the number of network calls. Given the need for efficient data access patterns, which method should the developer use when implementing code that interacts with the DynamoDB table using the AWS SDK?

  • Perform individual GetItem operations for each item.

  • Utilize BatchGetItem for batch retrieval of items.

  • Employ a Scan operation to fetch all table items and filter as needed.

  • Use PutItem calls with a filter to only insert the desired items.

Question 4 of 20

A developer is implementing a cloud-based messaging system where it's critical that messages are processed at least once, but the processing service is occasionally prone to temporary outages. How should the developer ensure message processing can be retried reliably without overwhelming the service when it comes back online?

  • Implement retries with exponential backoff and jitter

  • Increase the message visibility timeout to its maximum limit

  • Set up unlimited immediate retries for all failed messages

  • Create a dedicated error queue for failed message processing attempts

Question 5 of 20

You are implementing a notification system for an online shopping platform hosted on AWS. The system must send emails to customers after their order has been processed. Given that the order-processing system can become backlogged during peak times, which pattern should you employ to ensure that the email notifications do not block or slow down the order-processing workflow?

  • Employ an asynchronous pattern with a message queue that collects notifications to be processed by a separate email-sending service independently of order processing.

  • Adopt a synchronous pattern for small batches of orders, switching to an asynchronous pattern only when detecting a processing backlog.

  • Use a synchronous pattern where the order-processing service sends the email directly before confirming the order as complete within the same workflow.

  • Implement a hybrid pattern, sending the email synchronously for premium customers, while using an asynchronous approach for regular customers.

Question 6 of 20

Your company's cloud architecture leans heavily on AWS Lambda to process e-commerce transactions. The functions must scale automatically and remain unaffected by the state of previous invocations. A payment-processing function calls an external gateway and must reliably handle transactions during peak hours. To ensure the function adheres to a stateless design, what should you do?

  • Store transaction state data in an external database or caching service such as Amazon DynamoDB or Amazon ElastiCache.

  • Configure the Lambda function to process transactions asynchronously using an internal queue.

  • Enable automatic scaling on the Lambda function to handle the increased number of transactions.

  • Use environment variables to store transaction state between invocations.

Question 7 of 20

Which of the following is the BEST description of a stateless application component?

  • It retains session state information between requests, necessitating a mechanism to store user data on the server for ongoing interactions.

  • It treats each request as a separate, independent transaction, without the need to maintain client session state on the server.

  • It requires sticky sessions to ensure that a user's session data is maintained across multiple interactions with the application.

  • It relies on server-side storage to keep track of user states and preferences, reducing the client's overhead in subsequent requests.

Question 8 of 20

A developer is building a new AWS Lambda function using Python. The function is triggered by Amazon S3 object-creation events and contains complex business logic that needs to be validated. The developer needs to write repeatable tests that verify only the function's core logic without making actual calls to other AWS services. What is the MOST effective approach for unit testing this function's logic?

  • Use the AWS SAM CLI command sam local invoke with a sample S3 event JSON file to run the function in a local Docker container.

  • Mock the S3 event and AWS SDK clients, and then invoke the Lambda handler function directly with the mock event.

  • Write an AWS CLI script to invoke the deployed Lambda function, passing a base64-encoded S3 event as the payload.

  • Deploy the function to a development environment and upload a test object to the S3 bucket to trigger an invocation.

Question 9 of 20

Which description best exemplifies a loosely coupled component within a system architecture?

  • Hardcoding the endpoint of a specific Lambda function for invocation from an EC2 instance

  • Calling a specific instance of an application server directly to process a task

  • Using a shared database table for direct communication between two microservices

  • Publishing messages to an SQS queue instead of making direct API calls to another service

Question 10 of 20

When designing a web service for processing financial transactions, what mechanism can a developer implement to prevent duplicate submissions from charging a customer multiple times?

  • Generate a unique identifier for each operation, allowing the service to detect and ignore retries of transactions that have already been executed.

  • Integrate a distributed tracing service to handle de-duplication of transaction requests.

  • Track the status codes from previous submissions and use them to determine if the operation should be retried.

  • Record the timestamp for each operation and only process requests if subsequent submissions occur after a specific time interval.

Question 11 of 20

Your team is designing an AWS-based application where one component processes customer orders, and another component handles inventory management. Considering that you need to minimize the interdependence between these two components in case one of them fails, which approach would contribute to a more loosely coupled architecture?

  • Using an Amazon Simple Queue Service (SQS) to facilitate message passing between the order-processing and inventory-management components

  • Creating database triggers within your order database to automatically update the inventory-management system in real time

  • Implementing synchronous REST API interactions between the two services, requiring an immediate response after an order is placed

  • Setting up a REST service within the inventory-management component that is called directly by the order-processing service for every new order

Question 12 of 20

Your company's new web application is required to authenticate users leveraging their existing social network accounts to streamline the sign-in process. Which service would you utilize to enable this feature while maintaining a seamless user experience and secure authentication process?

  • AWS Security Token Service

  • AWS Identity and Access Management

  • AWS Directory Service

  • Amazon Cognito

Question 13 of 20

An application processes a very high volume of messages. The architecture must guarantee that no messages are lost and must allow operators to inspect or re-process any message that fails after several processing attempts. Which design best meets these requirements?

  • Deploy an Amazon Kinesis Data Stream with a Lambda consumer and rely on Lambda's on-failure destination to handle failed records.

  • Create an SQS delay queue to postpone the visibility of new messages and give the system time to recover from processing delays.

  • Apply an exponential backoff retry strategy in the Lambda function that processes the messages, without using a DLQ.

  • Set up an Amazon SQS queue and configure a dead-letter queue (DLQ) to capture messages that exceed a maximum receive count.

Question 14 of 20

Which architectural pattern is best described by a design that breaks down an application into smaller, interconnected services, each responsible for a specific business function?

  • Choreography

  • Fanout

  • Microservices

  • Monolithic

Question 15 of 20

Which tool offered by Amazon Web Services can developers use to invoke and debug their serverless functions locally, simulating the cloud environment on their own machine?

  • AWS SAM CLI

  • AWS SDKs

  • Amazon CodePipeline

  • AWS CodeDeploy

Question 16 of 20

An application running on Amazon ECS makes HTTP API calls to an AWS service. Occasionally the service returns 5xx errors caused by transient throttling. The development team needs to implement a client-side technique that improves resilience without creating traffic spikes that could overwhelm the service. Which approach meets these requirements?

  • Retry failed requests after a fixed delay between attempts

  • Implement retries with exponential backoff and jitter

  • Increase the request payload size with every retry

  • Send multiple parallel requests each time a call fails

Question 17 of 20

You are working on a serverless application where each component is designed to execute a distinct operation within an e-commerce checkout process. During the development cycle, you want to confirm that each component functions independently and as expected without making actual calls to cloud services. What technique should you employ within your unit tests to simulate the behavior of the external dependencies?

  • Create instances of client objects specific to cloud resources within your unit tests

  • Reference recorded responses from an object storage service during test execution

  • Configure an API management service to handle dependencies during test runs

  • Utilize SDK mocking utilities to emulate the behavior of external service calls

Question 18 of 20

A developer is designing a new application that processes sensitive financial data. The application will store processed data in Amazon S3. For compliance reasons, the data must be encrypted at all times. Which type of encryption should the developer use to ensure that the data is encrypted before it leaves the application's host and remains encrypted in transit and at rest within Amazon S3?

  • Use server-side encryption with Amazon S3 managed keys (SSE-S3) when uploading the data.

  • Activate default S3 bucket encryption with an AWS Key Management Service (KMS) managed key.

  • Implement client-side encryption using a customer-managed key prior to uploading the data to Amazon S3.

  • Enable Secure Socket Layer (SSL) on the application's server and rely on S3 bucket policies to handle encryption.

Question 19 of 20

You are developing a RESTful API. When a client sends a POST request to create a new resource, but the resource already exists, which HTTP status code should your API return to best adhere to standard practices?

  • 409 Conflict

  • 500 Internal Server Error

  • 400 Bad Request

  • 202 Accepted

Question 20 of 20

Which design pattern can improve the resiliency of a microservices architecture by using a publish/subscribe service that distributes each event concurrently to multiple independent message queues so that every consumer processes the event in isolation?

  • Expose every microservice through synchronous REST API calls and invoke them sequentially from the producer service.

  • Store all events in a shared relational database table that each microservice queries for new records.

  • Send every message to a single Amazon SQS queue that all consumer services poll in turn.

  • Configure an Amazon SNS topic that fans out each published message to a dedicated Amazon SQS queue for every consumer microservice.