
AWS DVA-C02 Quiz by CAAI
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Hard
Subham Singh
Used 3+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A programmer is developing a Node.js application that will be run on a Linux server in their on-premises data center. The application will access various AWS services such as S3, DynamoDB, and ElastiCache using the AWS SDK.
Which of the following is the MOST suitable way to provide access for the developer to accomplish the specified task?
Create an IAM role with the appropriate permissions to access the required AWS services. Assign the role to the on-premises Linux server.
Go to the AWS Console and create a new IAM user with programmatic access. In the application server, create the credentials file at ~/.aws/credentials with the access keys of the IAM user.
Create an IAM role with the appropriate permissions to access the required AWS services and assign the role to the on-premises Linux server. Whenever the application needs to access any AWS services, request temporary security credentials from STS using the AssumeRole API.
Go to the AWS Console and create a new IAM User with the appropriate permissions. In the application server, create the credentials file at ~/.aws/credentials with the username and the hashed password of the IAM User.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A developer is moving a legacy web application from their on-premises data center to AWS. The application is used simultaneously by thousands of users, and their session states are stored in memory. The on-premises server usually reaches 100% CPU Utilization every time there is a surge in the number of people accessing the application.
Which of the following is the best way to re-factor the performance and availability of the application’s session management once it is migrated to AWS?
Use an ElastiCache for Redis cluster to store the user session state of the application.
Store the user session state of the application using CloudFront.
Use an ElastiCache for Memcached cluster to store the user session state of the application.
Use Sticky Sessions with Local Session Caching.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A web application is uploading large files, which are over 4 GB in size, in an S3 bucket called http://data.academy.com every 30 minutes. You want to minimize the time required to upload each file. Which of the following should you do to minimize upload time?
Use the Multipart upload API.
Enable Transfer Acceleration in the bucket.
Use the BatchWriteItem API.
Use the Putltem API.
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A web application is using an ElastiCache cluster that is suffering from cache churn. A developer needs to reconfigure the application so that data are retrieved from the database only in the event that there is a cache miss.
Which pseudocode illustrates the caching strategy that the developer needs to implement?
<pre>
get_item(item_id):
item_value = cache.get(item_id)
if item_value is None:
item_value = database.query(“SELECT * FROM Items WHERE id = ?”, item_id)
cache.add(item_id, item_value)
return item_value
</pre>
<pre>
get_item(item_id):
item_value = database.query(“SELECT * FROM Items WHERE id = ?”, item_id)
if item_value is None:
item_value = cache.set(item_id, item_value)
cache.add(item_id, item_value)
return item_value
</pre>
<pre>
get_item(item_id):
item_value = cache.get(item_id)
if item_value is not None:
item_value = database.query(“SELECT * FROM Items WHERE id = ?”, item_id)
cache.add(item_id, item_value)
return item_value
else:
return item_value
</pre>
<pre>
get_item(item_id, item_value):
item_value = database.query(“UPDATE Items WHERE id = ?”, item_id, item_value)
cache.add(item_id, item_value)
return ‘ok’
</pre>
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A Software Engineer is developing an application that will be hosted on an EC2 instance and read messages from a standard SQS queue. The average time that it takes for the producers to send a new message to the queue is 10 seconds.
Which of the following is the MOST efficient way for the application to query the new messages from the queue?
Configure each message in the SQS queue to have a custom visibility timeout of 10 seconds.
Configure an SQS Delay Queue with a value of 10 seconds.
Configure the SQS queue to use Long Polling.
Configure the SQS queue to use Short Polling.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A developer has deployed a Lambda function that runs in DEV, UAT, and PROD environments. The function uses different parameters that varies based on the environment it is running in. The parameters are currently hardcoded in the function.
Which action should the developer do to reference the appropriate parameters without modifying the code every time the environment changes?
Create a stage variable called ENV and invoke the Lambda function by its alias name.
Create individual Lambda Layers for each environment
Publish three versions of the Lambda function. Assign the aliases DEV, UAT, and PROD to each version.
Use environment variables to set the parameters per environment.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A developer has recently completed a new version of a serverless application that is ready to be deployed using AWS SAM. There is a requirement that the traffic should shift from the previous Lambda function to the new version in the shortest time possible, but you still don’t want to shift traffic all-at-once immediately.
Which deployment configuration is the MOST suitable one to use in this scenario?
CodeDeployDefault.HalfAtATime
CodeDeployDefault.LambdaCanary10Percent5Minutes
CodeDeployDefault.LambdaLinear10PercentEvery1Minute
CodeDeployDefault.LambdaLinear10PercentEvery2Minutes
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Ruby
Quiz
•
Professional Development
20 questions
Networking Devices and Protocols Quiz
Quiz
•
Professional Development
20 questions
Structured Cabling and Networking Quiz
Quiz
•
Professional Development
20 questions
Exam Prep 2
Quiz
•
Professional Development
21 questions
Network Switch and VLAN Quiz
Quiz
•
Professional Development
25 questions
ALTSCHOOL QUIZ 13/9/25
Quiz
•
Professional Development
26 questions
Bendy and the ink machine
Quiz
•
Professional Development
30 questions
Python Programming Quiz 1
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
