Free DVA-C02 sample questions
Real questions from the Developer - Associate practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A developer is creating a CI/CD pipeline using AWS CodePipeline for a serverless application defined in an AWS SAM template. The pipeline needs to deploy to a staging environment for testing and then, after manual approval, deploy to a production environment. The application uses an Amazon API Gateway and an AWS Lambda function. How should the developer configure the pipeline to manage the different API Gateway endpoints for staging and production?
A developer is writing an application that runs on an Amazon EC2 instance. The application needs to make calls to the Amazon DynamoDB API. According to security best practices, the developer must not store AWS credentials in the application code or configuration files. What is the MOST secure and recommended way for the application to obtain AWS credentials?
A developer needs to design a system that processes a continuous stream of clickstream data. The system must be able to handle unpredictable traffic spikes and process events in near real-time. A key requirement is that the order of events for each user session must be strictly maintained. Which combination of AWS services should be used to meet these requirements? (Select TWO)
A developer has deployed a REST API using Amazon API Gateway, which is integrated with an AWS Lambda function. The API is publicly accessible. The developer wants to prevent abuse by limiting the number of requests a client can make to the API. Specifically, each client should be limited to 10 requests per second with a burst capacity of 20 requests. How can the developer implement this requirement?
True or False: When using an Amazon SQS FIFO (First-In-First-Out) queue as a trigger for an AWS Lambda function, if the function fails to process a batch of messages, the entire batch becomes visible again for reprocessing after the visibility timeout expires, and the order of messages within that batch is preserved for the next processing attempt.
A developer is writing a Python script using Boto3 to list all objects in a versioned Amazon S3 bucket that contains over 1 million objects. The initial script uses the `s3_client.list_objects_v2()` method in a simple loop. During testing, the script is very slow and occasionally misses some objects. To improve performance and ensure all objects are retrieved, the developer decides to use a higher-level abstraction provided by Boto3. Which Boto3 feature should the developer use?
A developer is instrumenting a Node.js application running on AWS Fargate to use AWS X-Ray for distributed tracing. The application makes calls to an Amazon DynamoDB table and publishes messages to an Amazon SNS topic. The developer has already configured the X-Ray daemon to run as a sidecar container in the Amazon ECS task definition. Which steps must the developer take within the application code to ensure that calls to DynamoDB and SNS are automatically traced as subsegments? (Select TWO)
A developer needs to store customer session data for a high-traffic e-commerce application running on Amazon EC2. The session data must be highly available and provide low-latency read and write access. The data also needs to expire automatically 24 hours after creation to keep the data store clean. Which service is the BEST choice for this use case?
A developer is building an application that will be deployed using a blue/green strategy on AWS Lambda. The developer is using AWS CodeDeploy to manage the traffic shifting between the old and new versions of a Lambda function. The developer needs to define the deployment steps in an `appspec.yml` file. The deployment should shift 10% of traffic to the new version, wait 5 minutes, and then shift the remaining 90% of traffic. Which AWS CodeDeploy deployment type should be specified in the AppSpec file?
10 more free samples are waiting
Create a free account to unlock the whole DVA-C02 sample bank, or get full access to all 212 practice questions in the simulator.