AWS DVA-C00 Certified Developer Associate Practice Exam Set 4

A developer is developing an application which will make use of AWS services. You need to develop your application in such a way to compensate for any network delays. Which of the following mechanisms would you implement in the application?


Options are :

  • Exponential back off algorithm (Correct)
  • Consider using the Java SDK
  • Multiple SQS queues
  • Retries in your application code (Correct)

Answer : Exponential back off algorithm Retries in your application code

An application is being developed that is going to write data to a Dynamo DB table. You have to setup the read and write throughput for the table. Data is going to be read at the rate of 300 items every 30 seconds. Each item Is of size 6KB. The reads can be eventual consistent reads. What should be the read capacity that needs to be set on the table?


Options are :

  • 20
  • 6
  • 10 (Correct)
  • 30

Answer : 10

You?re developing an AWS Lambda function that is interacting with a Dynamo DB table. The function was working well, but now Is gang the results with a time delay. You need to debug the code to understand where the bottleneck is which is causing the performance issue. Which of the following is the ideal way to debug the code?


Options are :

  • Use Cloud watch lop to detect where the delay could be
  • Use Log statements km the code to detect the delay
  • Look at the throwing errors In Cloud watch metrics
  • Use AWS X-Ray to see where the downstream delay could be (Correct)

Answer : Use AWS X-Ray to see where the downstream delay could be

An application running on Amazon EC2 must store objects in an 53 bucket. Which option follows best practices for granting the application access to the S3 bucket?


Options are :

  • Embed an access key in the application code x ;1
  • Use an AWS lAM role with permissions to write to the S3 bucket (Correct)
  • Use the user data script to store an access key on the EC2 instance
  • Store an access key encrypted with AWS KMS in Amazon S3

Answer : Use an AWS lAM role with permissions to write to the S3 bucket

Your architect has drawn out the details for a mobile based application. Below are the key requirements when it comes to authentication Users should have the ability to sign-in using external identities such as Face book or Google. There should be a facility to manage user profiles Which of the following would you consider as part of the development process for the application?


Options are :

  • Consider building the logic into the application
  • Consider using lAM Roles which can be mapped to the individual users
  • Consider using User pools in AWS Cognito (Correct)
  • Consider using SAML federation identities

Answer : Consider using User pools in AWS Cognito

Your company is going to develop an application in .Net Core which is going to work with a Dynamo DB table. There Is a requirement that all data needs to be encrypted at rest. How can you achieve this? Please select:


Options are :

  • Enable Encryption during the Dynamo DB table creation (Correct)
  • You cannot enable encryption at rest. consider using the AWS RDS service instead
  • Enable Encryption on the existing table
  • You cannot enable encryption at rest, consider using the S3 service instead

Answer : Enable Encryption during the Dynamo DB table creation

A Developer is writing an application that runs on EC2 instances and stores 2 GB objects in an 53 bucket. The Developer wants to minimize the time required to upload each item. Which API should the Developer use to minimize upload time?


Options are :

  • BatchGetltem
  • Put item
  • Multipart Upload (Correct)
  • Batch Write Item

Answer : Multipart Upload

Your planning on deploying a built application onto an EC2 Instance. There will be a number of tests conducted on this Instance, You want to have the ability to capture the logs from the web server so that it can help diagnose any Issues if they occur? How can you achieve this?


Options are :

  • Use the VPC Flow logs to get the logs from the instance
  • Enable Cloud trail for the region
  • install the Cloud watch agent on the instance (Correct)
  • Create a dashboard for the key Cloud watch metrics

Answer : install the Cloud watch agent on the instance

You are in charge of developing an application that will make use of AWS services. There is a key requirement from an architecture point of view that the entire system is decoupled to ensure less dependency. Which of the following Is an Ideal service to use to decouple different parts of a system?


Options are :

  • AWS Code Build
  • AWS Simple Queue Service (Correct)
  • AWS Simple Notification Service
  • AWS Code Pipeline

Answer : AWS Simple Queue Service

You have been hired to develop a gaming application for a large company. The application will be developed using AWS resources. You need to ensure the right services are used during the development and subsequent deployment of the application. Which of the following would you consider incorporating to ensure leader boards can be maintained accurately in the application?


Options are :

  • AWS Ops work
  • AWS Elastic Cache Mem cached
  • AWS Elastic Beanstalk
  • AWS Elastic Cache Redis (Correct)

Answer : AWS Elastic Cache Redis

A Developer is writing several Lambda functions that each access data in a common RDS DB instance. They must share a connection string that contains the database credentials, which are a secret. A company policy requires that all secrets be stored encrypted. Which solution will minimize the amount of code the Developer must write?


Options are :

  • Use common Dynamo DB table to store settings
  • Use a table in a separate RDS database.
  • Use AWS Lambda environment variables
  • Use Systems Manager Parameter Store secure strings (Correct)

Answer : Use Systems Manager Parameter Store secure strings

A Developer is migrating an on-premises application to the AWS Cloud. The application currently uses Microsoft SQL, encrypting some of the data using Transparent Data Encryption. Which service should the Developer use to minimize code changes?


Options are :

  • Amazon Dynamo DB
  • Amazon Aurora
  • Amazon RDS (Correct)
  • Amazon Red shift

Answer : Amazon RDS

Your mobile application includes a photo-sharing service that is expecting tens of thousands of users at launch. You will leverage Amazon Simple Storage Service (S3) for storage of the user Images, and you must decide how to authenticate and authorize your users for access to these images. You also need to manage the storage of these images. Which two of the following approaches should you use? Choose two answers from the options below ?


Options are :

  • Authenticate your users at the application level, and send an SMS token message to the user. Create an Amazon 53 bucket with the same name as the SMS message token, and move the users objects to that bucket.
  • Create an Amazon S3 bucket per user, and use your application to generate the S3 URI for the appropriate content.
  • Use a key-based naming scheme comprised from the user IDs for all user objects In a single Amazon S3 (Correct)
  • Use AWS Identity and Access Management (lAM) user accounts as your application-level user database. and offload the burden of authentication from your application code.
  • Authenticate your users at the application level, and use AWS Security Token Service (STS) to grant token- based authorization to S3 objects. (Correct)

Answer : Use a key-based naming scheme comprised from the user IDs for all user objects In a single Amazon S3 Authenticate your users at the application level, and use AWS Security Token Service (STS) to grant token- based authorization to S3 objects.

An organization is using AWS Elastic Beanstalk for a web application. The Developer needs to configure the Elastic Beanstalk environment with deployment methods that will create new instances and deploy code to those instances. Which methods will deploy code ONLY to new instances? Choose 2 answers from the options given below?


Options are :

  • All at once deployment
  • Linear deployment
  • Blue/Green deployment (Correct)
  • Immutable deployment (Correct)
  • Rolling deployment

Answer : Blue/Green deployment Immutable deployment

An application is publishing a custom Cloud Watch metric any time an HTTP 504 error appears in the application error logs. These errors are being received intermittently. There is a Cloud Watch Alarm for this metric and the Developer would like the alarm to trigger ONLY if it breaches two evaluation periods or more What should be done to meet these requirements?


Options are :

  • Use high- resolution meat to get data pushed to Cloud Watch more frequently
  • Publish the value zero whenever there se no lTTP 504? errors
  • Aggregate the data before pushing to Cloud Watch by using statistic sets (Correct)
  • Update the Cloud Watch Alarm to send a custom notification depend db on results

Answer : Aggregate the data before pushing to Cloud Watch by using statistic sets

Your company has developed a web application and is hosting it in an Amazon 53 bucket configured for static website hosting. The application is using the AWS SDK for JavaScript in the browser to access data stored In an Amazon Dynamo DB table. How can you ensure that API keys for access to your data In Dynamo DB are kept secure?


Options are :

  • Configure 53 bucket tags with your AWS access keys for your bucket hosing your website so that the application can query them for access.
  • Store AWS keys in global variables within your application and configure the application to use these credentials when making requests.
  • Create an Amazon S3 role in lAM with access to the specific Dynamo DB tables, and assign it to the bucket hosting your website.
  • Configure a web identity federation role within lAM to enable access to the correct Dynamo DB resources and retrieve temporary credentials. (Correct)

Answer : Configure a web identity federation role within lAM to enable access to the correct Dynamo DB resources and retrieve temporary credentials.

A company is planning on using AWS Code Pipeline for their underlying Cl/CD process. The code will be picked up from an S3 bucket. The company policy mandates that all data should be encrypted at rest. Which of the following measures would you take to ensure that the Cl/CD process conforms to this policy? Choose possible actions from the options given below?


Options are :

  • Configure the code pickup stage in Code Pipeline to use AWS KMS
  • Ensure that server-side encryption is enabled on the Code Pipeline stage
  • Ensure that server. side encryption is enabled on the S3 Bucket (Correct)
  • Configure AWS KMS with customer managed keys and use it for S3 bucket encryption.

Answer : Ensure that server. side encryption is enabled on the S3 Bucket

You have been instructed to manage the deployments of an application onto Elastic Beanstalk. Since this is just a development environment, you have been told to ensure that the least amount of time is taken for each deployment. Which of the following deployment mechanism would you consider based on this requirement?


Options are :

  • Rolling
  • Rolling with additional batch
  • Immutable
  • All at one (Correct)

Answer : All at one

You have a number of Lambda functions that need to be deployed using AWS Code Deploy. The lambda functions have gone through multiple code revisions and versioning in Lambda is being used to maintain the revisions. Which of the following must be done to ensure that the right version of the function Is deployed in AWS Code Deploy?


Options are :

  • Specify the version to be deployed in the Build Spec file
  • Create an ALIAS for the Lambda function. Mark this as the recent version. Use this ALIAS in Code Deploy.
  • Create a Lambda function environment variable called VER and mention the version that needs to be deployed.
  • Specify the version to be deployed in the file. (Correct)

Answer : Specify the version to be deployed in the file.

Your team has been instructed on deploying a Micro services based application onto AWS. There is a requirement to automate the orchestration of the application. Which of the following would the ideal way to implement this with the least amount of administrative effort?


Options are :

  • Use the Elastic Beanstalk Service
  • Deploy Cabernets on EC2 Instances
  • Use the Ops work service
  • Use the Elastic Container Service (Correct)

Answer : Use the Elastic Container Service

Your application currently makes use of AWS Cognito for managing user identities. You want to analyze the information that is stored in AWS Cognito for your application. Which of the following features of AWS Cognito should you use for this purpose?


Options are :

  • Cognito Cailbacks
  • Cognito Events
  • Cognito Data
  • Cognito Streams (Correct)

Answer : Cognito Streams

Company B is writing 10 items to the products table every second. Each item is 15.5Kb in size. What would be the required provisioned write throughput for best performance? Choose the correct answer from the options below?


Options are :

  • 160 (Correct)
  • 155
  • 10
  • 16

Answer : 160

An application hosted in AWS has been configured to use a Dynamo DB table. A number of items are written to the Dynamo DB table. These items are only accessed in a particular time frame, after which they can be deleted. Which of the following is an ideal way to manage the deletion of the stale items?


Options are :

  • Enable TTL for the items in Dynamo DB (Correct)
  • Create an additional column to store the date. Perform a query for the stale objects and the perform the Delete operation.
  • Enable versioning for the items in Dynamo DB and delete the last accessed version
  • Perform a scan on the table for the stale items and issue the Delete operation.

Answer : Enable TTL for the items in Dynamo DB

A company is writing a Lambda function that will run in multiple stages, such a dev, test and production. The function is dependent upon several external services, and it must call different endpoints for these services based on function?s deployment stage. What Lambda feature will enable the developer to ensure that the code references the correct endpoints when running in each stage?


Options are :

  • Tagging
  • Concurrency
  • Aliases
  • Environment variables (Correct)

Answer : Environment variables

A Developer working on an AWS Code Build project wants to override a build command as part of a build run to test a change. The developer has access to run the builds but does not have access to edit the Code Build project What process should the Developer use to override the build command?


Options are :

  • Update the buildspec.yml configuration tile that is part of the source code and run a new build.
  • Update the build spec property in the Start Build API to override the build command during build run.
  • Run the start build AWS CLI command with build spec-location property set to the new buildspec.yml file. (Correct)
  • Update the command in the Build Commands section during the build run in the AWS console.

Answer : Run the start build AWS CLI command with build spec-location property set to the new buildspec.yml file.

A Developer is writing an application that will run on EC2 instances and read messages from an SQS queue. The messages will arrive every 1 5-60 seconds. How should the Developer efficiently query the queue for new messages?


Options are :

  • Use long polling (Correct)
  • Use short polling
  • Implement exponential back off
  • Set a custom visibility timeout

Answer : Use long polling

An organization has an Amazon Aurora RDS instance that handles all of its AWS-based ecommerce activity. The application accessing the database needs to create large sales reports on an hourly basis, running 1 5 minutes after the hour. This reporting activity is slowing down the e-commerce application. Which combination of actions should be taken to reduce the impact on the main e-commerce application?


Options are :

  • Create a read replica of the database (Correct)
  • Migrate the data to a set of highly available Amazon EC2 instances
  • Create an SQS queue to implement SQS Buffering
  • Point the reporting application to the read replica (Correct)
  • Use SQS Buffering to retrieve data for reports

Answer : Create a read replica of the database Point the reporting application to the read replica

You need to migrate an existing on-premise application on AWS. It is a legacy-based application with little development support. Which of the following would be the best way to host this service in AWS?


Options are :

  • AWS Lambda Functions
  • AWS API gateway with AWS Lambda
  • EC2 Instances with Instance Store Volumes
  • EC2 Instances with EBS Backed Volumes (Correct)

Answer : EC2 Instances with EBS Backed Volumes

You have been instructed to develop a mobile application that will make use of AWS services. You need to decide on a data store to store the user sessions. Which of the following would be an Ideal data store for session management?


Options are :

  • AWS RDS
  • AWS Simple Storage Service
  • AWS Dynamo DB (Correct)
  • AWS Red shift

Answer : AWS Dynamo DB

A Developer has been asked to create an AWS Elastic Beanstalk environment for a production web application which needs to handle thousands of requests. Currently the dev environment is running on a time micro instance?How can the Developer change the EC2 instance type to m4.large?


Options are :

  • Change the instance type to m4.large In the configuration details page of the Create New Environment page.
  • Change the instance type value for the environment to m4.large by using update auto scaling group CLI command. (Correct)
  • Create a saved configuration file in Amazon S3 with the instance type as m4.large and use the same dunn environment creation.
  • Use Cloud Formation to migrate the Amazon EC2 Instance type of the environment from ti micro to m4.large.

Answer : Change the instance type value for the environment to m4.large by using update auto scaling group CLI command.

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions