AWS Certified Developer Associate (50 Questions & Answers)

50 AWS Certified Developer Associate (DVA-C02) Past Questions & Answers

Practice the AWS Certified Developer Associate past questions and answers. Our experts have answered the questions and you will get the correct answers to the AWS Certified Developer Associate questions. Prepare yourself for the exam ahead and test your knowledge and readiness.

0%
1

AWS Certified Developer Association (DVA-C02) Part 4

AWS Certified Developer Association (DVA-C02)

AWS Certified Developer Association (DVA-C02) Part 4

Questions will be picked at random from the question bank.

You can use the NEXT button to move to the next question, use the PREV button to move to the previous question, the CLEAR button to clear any answer of your choice and you have the FINISH button to end the exam if you choose to.

Any question not answered before the end of the exam time, will be marked as wrong and the exam will end by itself. So try to attempt all questions on time.

Goodluck!

1 / 50

A Developer has written an Amazon Kinesis Data Streams application. As usage
grows and traffic increases over time, the application is regularly receiving
ProvisionedThroughputExceededException error messages. Which steps should
the Developer take to resolve the error? (Choose TWO)

2 / 50

When developing an AWS Lambda function that processes Amazon Kinesis Data
Streams, Administrators within the company must receive a notice that includes
the processed data. How should the Developer write the function to send
processed data to the Administrators?

3 / 50

A Developer is preparing a deployment package using AWS CloudFormation. The
package consists of two separate templates: one for the infrastructure and one for
the application. The application has to be inside the VPC that is created from the
infrastructure template. How can the application stack refer to the VPC created
from the infrastructure template?

4 / 50

A Developer wants to build an application that will allow new users to register and
create new user accounts. The application must also allow users with social media
accounts to log in using their social media credentials. Which AWS service or
feature can be used to meet these requirements?

5 / 50

A Developer needs to create an application that supports Security Assertion
Markup Language (SAML) and Facebook authentication. It must also allow access
to AWS services, such as Amazon DynamoDB. Which AWS service or feature will
meet these requirements with the LEAST amount of additional coding?

6 / 50

A Developer registered an AWS Lambda function as a target for an Application
Load Balancer (ALB) using a CLI command. However, the Lambda function is not
being invoked when the client sends requests through the ALB. Why is the
Lambda function not being invoked?

7 / 50

A Software Engineer developed an AWS Lambda function in Node.js to do some
CPU-intensive data processing. With the default settings, the Lambda function
takes about 5 minutes to complete. Which approach should a Developer take to
increase the speed of completion?

8 / 50

A company has implemented AWS CodeDeploy as part of its cloud native CI/CD
stack. The company enables automatic rollbacks while deploying a new version of
a popular web application from in-place to Amazon EC2. What occurs if the
deployment of the new version fails due to code regression?

9 / 50

A Development team decides to adopt a continuous integration/continuous
delivery (CI/CD) process using AWS CodePipeline and AWS CodeCommit for a new
application. However, management wants a person to review and approve the
code before it is deployed to production. How can the Development team add a
manual approver to the CI/CD pipeline?

10 / 50

A Developer is working on a serverless project based in Java. Initial testing shows a
cold start takes about 8 seconds on average for AWS Lambda functions. What
should the Developer do to reduce the cold start time? (Choose TWO)

11 / 50

A company is developing a web application that allows its employees to upload a
profile picture to a private Amazon S3 bucket. There is no size limit for the profile
pictures, which should be displayed every time an employee logs in. For security
reasons, the pictures cannot be publicly accessible. What is a viable long-term
solution for this scenario?

12 / 50

A Developer is writing an application that will run on Amazon EC2 instances in an
Auto Scaling group. The Developer wants to externalize session state to support
the application. Which services will meet these needs? (Choose TWO)

13 / 50

A Developer has created a new AWS IAM user that has s3 putObject permission to
write to a specific Amazon S3 bucket. This S3 bucket uses server-side encryption
with AWS KMS managed keys (SSE-KMS) as the default encryption. Using the
access key and secret key of the IAM user, the application received an access
denied error when calling the PutObject API. How can this issue be resolved?

14 / 50

A Developer must allow guest users without logins to access an Amazon Cognitoenabled site to view files stored within an Amazon S3 bucket. How should the
Developer meet these requirements?

15 / 50

A Developer is going to deploy an AWS Lambda function that requires significant
CPU utilization. Which approach will MINIMIZE the average runtime of the
function?

16 / 50

A Developer is leveraging a Border Gateway Protocol (BGP)-based AWS VPN
connection to connect from on-premises to Amazon EC2 instances in the
Developer's account. The Developer is able to access an EC2 instance in subnet A,
but is unable to access an EC2 instance in subnet B in the same VPC. Which logs
can the Developer use to verify whether the traffic is reaching subnet B?

17 / 50

A company has implemented AWS CodePipeline to automate its release pipelines.
The Development team is writing an AWS Lambda function what will send
notifications for state changes of each of the actions in the stages. Which steps
must be taken to associate the Lambda function with the event source?

18 / 50

A Development team wants to immediately build and deploy an application
whenever there is a change to the source code. Which approaches could be used
to trigger the deployment? (Choose TWO)

19 / 50

A Developer is trying to make API calls using SDK. The IAM user credentials used
by the application require multi-factor authentication for all API calls. Which
method the Developer use to access the multi-factor authentication protected
API?

20 / 50

A Developer decides to store highly secure data in Amazon S3 and wants to
implement server-side encryption (SSE) with granular control of who can access
the master key. Company policy requires that the master key be created, rotated,
and disabled easily when needed, all for security reasons. Which solution should
be used to meet these requirements?

21 / 50

A Developer is migrating an on-premises application to AWS. The application
currently takes user uploads and saves them to a local directory on the server. All
uploads must be saved and made immediately available to all instances in an Auto
Scaling group. Which approach will meet these requirements?

22 / 50

A company's website runs on an Amazon EC2 instance and uses Auto Scaling to
scale the environment during peak times. Website users across the world are
experiencing high latency due to static content on the EC2 instance, even during
non-peak hours. Which combination of steps will resolve the latency issue?
(Choose TWO)

23 / 50

A Developer migrated a web application to AWS. As part of the migration, the
Developer implemented an automated continuous integration/continuous
improvement (CI/CD) process using a blue/green deployment. The deployment
provisions new Amazon EC2 instances in an Auto Scaling group behind a new
Application Load Balancer. After the migration was completed, the Developer
began receiving complaints from users getting booted out of the system. The
system also requires users to log in after every new deployment. How can these
issues be resolved?

24 / 50

A Developer has code running on Amazon EC2 instances that needs read-only
access to an Amazon DynamoDB table. What is the MOST secure approach the
Developer should take to accomplish this task?

25 / 50

A Developer is working on an AWS Lambda function that accesses Amazon
DynamoDB. The Lambda function must retrieve an item and update some of its
attributes, or create the item if it does not exist. The Lambda function has access
to the primary key. Which IAM permissions should the Developer request for the
Lambda function to achieve this functionality?

26 / 50

A Developer is writing an application in AWS Lambda. To simplify testing and
deployments, the Developer needs the database connection string to be easily
changed without modifying the Lambda code. How can this requirement be met?

27 / 50

An application has the following requirements: Performance efficiency of seconds
with up to a minute of latency. The data storage size may grow up to thousands of
terabytes. Per-message sizes may vary between 100 KB and 100 MB. Data can be
stored as key/value stores supporting eventual consistency. What is the MOST
cost-effective AWS service to meet these requirements?

28 / 50

A company is developing an application that will be accessed through the Amazon
API Gateway REST API. Registered users should be the only ones who can access
certain resources of this API. The token being used should expire automatically
and needs to be refreshed periodically. How can a Developer meet these
requirements?

29 / 50

A Developer is storing sensitive data generated by an application in Amazon S3.
The Developer wants to encrypt the data at rest. A company policy requires an
audit trail of when the master key was used and by whom. Which encryption
option will meet these requirements?

30 / 50

A Developer is building an application that needs to store data in Amazon S3.
Management requires that the data be encrypted before it is sent to Amazon S3
for storage. The encryption keys need to be managed by the Security team. Which
approach should the Developer take to meet these requirements?

31 / 50

An application ingests a large number of small messages and stores them in a
database. The application uses AWS Lambda. A Development team is making
changes to the application's processing logic. In testing, it is taking more than 15
minutes to process each message. The team is concerned the current backend
may time out. Which changes should be made to the backend system to ensure
each message is processed in the MOST scalable way?

32 / 50

A company wants to migrate an imaging service to Amazon EC2 while following
security best practices. The images are sourced and read from a non-public
Amazon S3 bucket. What should a Developer do to meet these requirements?

33 / 50

A company has a web application that uses an Amazon Cognito user pool for
authentication. The company wants to create a login page with the company logo.
What should a Developer do to meet these requirements?

34 / 50

A Developer wants to insert a record into an Amazon DynamoDB table as soon as
a new file is added to an Amazon S3 bucket. Which set of steps would be
necessary to achieve this?

35 / 50

A Developer has discovered that an application responsible for processing
messages in an Amazon SQS queue is routinely falling behind. The application is
capable of processing multiple messages in one execution, but is only receiving
one message at a time. What should the Developer do to increase the number of
messages the application receives?

36 / 50

A Developer has a legacy application that is hosted on-premises. Other
applications hosted on AWS depend on the on-premises application for proper
functioning. In case of any application errors, the Developer wants to be able to
use Amazon CloudWatch to monitor and troubleshoot all applications from one
place. How can the Developer accomplish this?

37 / 50

A Developer has an e-commerce API hosted on Amazon ECS. Variable and spiking
demand on the application is causing order processing to take too long. The
application processes Amazon SQS queues. The
ApproximateNumberOfMessagesVisible metric spikes at very high values
throughout the day, which cause Amazon CloudWatch alarm breaches. Other ECS
metrics for the API containers are well within limits. What can the Developer
implement to improve performance while keeping costs low?

38 / 50

A Developer has built an application running on AWS Lambda using AWS
Serverless Application Model (AWS SAM). What is the correct order of execution to
successfully deploy the application?

39 / 50

An online retail company has deployed a serverless application with AWS Lambda,
Amazon API Gateway, Amazon S3, and Amazon DynamoDB using AWS
CloudFormation. The company rolled out a new release with major upgrades to
the Lambda function and deployed the release to production. Subsequently, the
application stopped working. Which solution should bring the application back up
as quickly as possible?

40 / 50

A Developer is trying to monitor an application's status by running a cron job that
returns 1 if the service is up and 0 if the service is down. The Developer created
code that uses an AWS CLI put-metric-alarm command to publish the custom
metrics to Amazon CloudWatch and create an alarm. However, the Developer is
unable to create an alarm as the custom metrics do not appear in the CloudWatch
console. What is causing this issue?

41 / 50

A Developer is building a serverless application using AWS Lambda and must
create a REST API using an HTTP GET method. What needs to be defined to meet
this requirement? (Choose TWO)

42 / 50

A Developer is publishing critical log data to a log group in Amazon CloudWatch
Logs, which was created 2 months ago. The Developer must encrypt the log data
using an AWS KMS customer master key (CMK) so future data can be encrypted to
comply with the company's security policy. How can the Developer meet this
requirement?

43 / 50

A company wants to implement authentication for its new REST service using
Amazon API Gateway. To authenticate the calls, each request must include HTTP
headers with a client ID and user ID. These credentials must be compared to
authentication data in an Amazon DynamoDB table. What MUST the company do
to implement this authentication in API Gateway?

44 / 50

A company provides APIs as a service and commits to a service level agreement
(SLA) with all its users. To comply with each SLA, what should the company do?

45 / 50

A Developer has written an application that runs on Amazon EC2 instances and
generates a value every minute. The Developer wants to monitor and graph the
values generated over time without logging in to the instance each time. Which
approach should the Developer use to achieve this goal?

46 / 50

A Developer uses Amazon S3 buckets for static website hosting. The Developer
creates one S3 bucket for the code and another S3 bucket for the assets, such as
image and video files. Access is denied when a user attempts to access the assets
bucket from the code bucket, with the website application showing a 403 error.
How should the Developer solve this issue?

47 / 50

A company is launching an ecommerce website and will host the static data in
Amazon S3. The company expects approximately 1,000 transactions per second
(TPS) for GET and PUT requests in total. Logging must be enabled to track all
requests and must be retained for auditing purposes. What is the MOST costeffective solution?

48 / 50

A Developer implemented a static website hosted in Amazon S3 that makes web
service requests hosted in Amazon API Gateway and AWS Lambda. The site is
showing an error that reads: 'No 'Access-Control-Allow-Origin' header is present
on the requested resource. Origin 'null' is therefore not allowed access.' What
should the Developer do to resolve this issue?

49 / 50

A Developer has written code for an application and wants to share it with other
Developers on the team to receive feedback. The shared application code needs
to be stored long-term with multiple versions and batch change tracking. Which
AWS service should the Developer use?

50 / 50

A company has a legacy application that was migrated to a fleet of Amazon EC2
instances. The application stores data in a MySQL database that is currently
installed on a single EC2 instance. The company has decided to migrate the
database from the EC2 instance to MySQL on Amazon RDS. What should the
Developer do to update the application to support data storage in Amazon RDS?

Your score is

0%

See also:

AWS Certified Cloud Practitioner -100 Questions & Answers (Part 2)

AWS Certified Cloud Practitioner -100 Questions & Answers (Part 1)

Free AWS Certified Cloud Practitioner Questions & Answers

AWS Certified Advanced Networking – Specialty | 90 Questions & Answers

Free AWS Certified Advanced Networking Questions & Answers

Leave a Comment

Your email address will not be published. Required fields are marked *

Certifications Exam Prep
Scroll to Top
This Website/App is solely sponsored, developed by me. Please donate to help me pay for server and website renewal.
This is default text for notification bar