
AWS DVA-C02 Quiz by CAAI

Quiz
•
Information Technology (IT)
•
Professional Development
•
Hard

Subham Singh
Used 3+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
Project Retrospectives

Quiz
•
Professional Development
25 questions
Quiz on RAM and Storage Devices

Quiz
•
Professional Development
27 questions
Cybersecurity Core Functions-QUIZ

Quiz
•
Professional Development
25 questions
Quizz Segurança e conformidade AWS

Quiz
•
Professional Development
20 questions
AWS Solutions Architect Associate - Architectures

Quiz
•
Professional Development
20 questions
React Redux

Quiz
•
Professional Development
20 questions
Topic 1 Question 540 to 560

Quiz
•
Professional Development
24 questions
SDLC2.0 Solution Release Doc -Quiz #1.1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development