
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
SwiftUI Test

Quiz
•
Professional Development
20 questions
Topic 1 Question 81 to 100

Quiz
•
Professional Development
20 questions
Mock Exam

Quiz
•
Professional Development
25 questions
SAA-C03) - Módulos: 10 (Rede-2) e 11 (Sem servidor)

Quiz
•
Professional Development
25 questions
SAA-C03 - 11-Serviços de borda e 12-Backup e recuperação

Quiz
•
Professional Development
20 questions
Cybersecurity and IT Infrastructure Quiz

Quiz
•
Professional Development
20 questions
Chapter 5: Reconnaissance and Intelligence Gathering

Quiz
•
Professional Development
20 questions
Frontend - CTO Cup

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade