AWS DVA-C02 Quiz by CAAI

AWS DVA-C02 Quiz by CAAI

Professional Development

25 Qs

quiz-placeholder

Similar activities

Net+ day 5

Net+ day 5

Professional Development

24 Qs

Prelim: Networking II

Prelim: Networking II

Professional Development

20 Qs

AWS Basics

AWS Basics

Professional Development

30 Qs

Remote Support and Scripting Best Practices

Remote Support and Scripting Best Practices

Professional Development

21 Qs

Terraform Day 2 Accenture

Terraform Day 2 Accenture

Professional Development

27 Qs

Ruby

Ruby

Professional Development

20 Qs

LH Active L1: Outbound Review

LH Active L1: Outbound Review

Professional Development

25 Qs

Computer 101

Computer 101

Professional Development

20 Qs

AWS DVA-C02 Quiz by CAAI

AWS DVA-C02 Quiz by CAAI

Assessment

Quiz

Information Technology (IT)

Professional Development

Hard

Created by

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?

  1. Create an IAM role with the appropriate permissions to access the required AWS services. Assign the role to the on-premises Linux server.

  1. 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.

  1. 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?

  1. Use an ElastiCache for Redis cluster to store the user session state of the application.

  1. Store the user session state of the application using CloudFront.

  1. Use an ElastiCache for Memcached cluster to store the user session state of the application.

  1. 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?

  1. Use the Multipart upload API.

  1. Enable Transfer Acceleration in the bucket.

  1. Use the BatchWriteItem API.

  1. 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?

  1. Configure each message in the SQS queue to have a custom visibility timeout of 10 seconds.

  1. Configure an SQS Delay Queue with a value of 10 seconds.

  1. Configure the SQS queue to use Long Polling.

  1. 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?

  1. Create a stage variable called ENV and invoke the Lambda function by its alias name.

  1. Create individual Lambda Layers for each environment

  1. Publish three versions of the Lambda function. Assign the aliases DEV, UAT, and PROD to each version.

  1. 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?

  1. CodeDeployDefault.HalfAtATime

  1. CodeDeployDefault.LambdaCanary10Percent5Minutes

  1. CodeDeployDefault.LambdaLinear10PercentEvery1Minute

  1. CodeDeployDefault.LambdaLinear10PercentEvery2Minutes

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?