AWS DVA-C01 Certified Developer Associate Practice Exam Set 3

A static web site has been hosted on a bucket and is now being accessed by users. One of the web pages java script section has been changed to access data which is hosted in another S3 bucket. Now that same web page Is no longer loading in the browser. Which of the following can help alleviate the error?


Options are :

  • Enable CORS for the bucket (Correct)
  • Enable versioning for the underlying 53 bucket.
  • Change the Bucket policy for the bucket to allow access from the other bucket
  • Enable Replication so that the objects get replicated to the other bucket

Answer : Enable CORS for the bucket

You?re developing an application that will be hosted on an EC2 Instance. This will be part of an Auto scaling Group. The application needs to get the private IP of the instance so that it can send it across to a controller- based application. Which of the following can be done to achieve this?


Options are :

  • Query the Instance Meta Data (Correct)
  • Have an Admin get the IP address from the console
  • Query the Instance User Data
  • Make the application run IF Config

Answer : Query the Instance Meta Data

You?re developing an application that is going to make use of Amazon Kinesis. Due to the high throughput, you decide to have multiple shards for the streams. Which of the following is TRUE when it comes to processing data across multiple shards?


Options are :

  • Order of data is possible across all shards in a stream . (Correct)
  • You cannot guarantee the order of data across multiple shards. Its possible only within a shard
  • You need to use Kinesis fire hose to guarantee the order of data
  • Order of data is not possible at all in Kinesis streams

Answer : Order of data is possible across all shards in a stream .

You1ve been asked to develop an application on the AWS Cloud. The application will be used to store confidential documents in an S3 bucket. You need to ensure that the bucket is defined in such a way that it does not accept objects that are not encrypted?


Options are :

  • Ensure a condition is set in the bucket policy (Correct)
  • Enable MFA for the underlying bucket
  • Ensure that a condition Is set In an lAM policy.
  • Enable CORS for the underlying bucket

Answer : Ensure a condition is set in the bucket policy

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 :

  • 155
  • 160
  • 10 (Correct)
  • 16

Answer : 10

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 :

  • 30
  • 6
  • 20
  • 10 (Correct)

Answer : 10

Your team has a Code Commit repository in your account. You need to give access to a set of developer?s in another account access to your Code Commit repository. Which of the following is the most effective way to grant access?


Options are :

  • Create AM users for each developer and provide access to the repository
  • Create an lAM Group. add the lAM users and then provide access to the repository
  • Enable public access for the repository
  • Create a cross account role. give the role the privileges. Provide the role ARN to the developers (Correct)

Answer : Create a cross account role. give the role the privileges. Provide the role ARN to the developers

You?ve 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 Elastic Cache Mem cached
  • AWS Elastic Beanstalk
  • AWS Ops work
  • AWS Elastic Cache - Red is (Correct)

Answer : AWS Elastic Cache - Red is

You?re a developer at a company that needs to deploy an application using Elastic Beanstalk. There is a requirement to place a health check. configure file for the environment, In which of the following location should this config file be placed to ensure It is part of the elastic beanstalk environment?


Options are :

  • In the .eb extensions folder (Correct)
  • In the packages folder
  • In the confag folder
  • In the application root folder

Answer : In the .eb extensions folder

Your company has developed a web application and is hosting it in an Amazon S3 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 S3 bucket tags with your AWS access keys for your bucket hosing your website so that the application can query them for access.
  • Configure a web identity federation role within lAM to enable access to the correct DynamoDB resources and retrieve temporary credentials. (Correct)
  • Create an Amazon S3 role in lAM with access to the specific DynamoD5 tables, and assign it to the bucket hosting your website.
  • Store AWS keys In global variables within your application and configure the application to use these credentials when making requests

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

Your company is planning on using the Simple Storage service to host objects that will be accessed by users. There is a speculation that there would be roughly 3000 GET requests per second. Which of the following could be used to ensure optimal performance? Choose 2 answers from the options given below?


Options are :

  • Use hash key prefixes for the object keys (Correct)
  • Enable versioning for the objects
  • Use a Cloud front distribution in front of the 53 bucket
  • Enable Cross Region Replication for the bucket

Answer : Use hash key prefixes for the object keys

You?ve developed an application script that needs to be bootstrapped into instances that are launched via an Auto scaling Group. How would you achieve this in the east way possible?


Options are :

  • Create a Lambda function to install the script
  • Place the script in the Liser data for the Instance (Correct)
  • Place a scheduled task on the instance that starts as soon as the Instance is launched
  • Place the script in the metadata for the instance

Answer : Place the script in the Liser data for the Instance

An application needs to make use of a messaging system. The messages need to be processed in the order they are received and also no duplicates should be allowed. Which of the following would you use for this purpose?


Options are :

  • Add the .FIFO extension to the Standard SOS Queue
  • Use the FlFO SQS Queues (Correct)
  • Enable FIFO on an existing SQS Standard Queue
  • Consider using SNS

Answer : Use the FlFO SQS Queues

Which of the following combination of services can be used for development and hosting of the REST full service? Choose 2 answers from the options below ?


Options are :

  • AWS Lambda and AWS API gateway (Correct)
  • AWS EC2 and AWS Elastic Load Balancer (Correct)
  • AWS SQS and Cloud front
  • AWS 53 and Cloud front

Answer : AWS Lambda and AWS API gateway AWS EC2 and AWS Elastic Load Balancer

You?ve been asked to develop an application on the AWS Cloud. The application will involve picking up videos from users and placing them in an ideal and durable data store. Which of the following would be an ideal data store, ensuring that components are properly decoupled?


Options are :

  • AWS Simple Storage Service (Correct)
  • AWS Dynamo DB
  • AWS Glacier
  • EBS Volumes

Answer : AWS Simple Storage Service

You are developing a mobile based application that needs to make use of an authentication service. There are a set of videos files which need to be accessed via unauthenticated access. How can you BEST achieve this using AWS?


Options are :

  • Create an lAM group with public access
  • Use AWS Cognito with unauthenticated access enabled (Correct)
  • Use AWS STS with SAML
  • Create an lAM user with public access

Answer : Use AWS Cognito with unauthenticated access enabled

Your company is planning on creating new development environments in AWS. They want to make use of their existing Chef recipes which they use for their on-premise configuration for servers in AWS. Which of the following service would be ideal to use in this regard?


Options are :

  • AWS Elastic Beanstalk
  • AWS Ops Work (Correct)
  • AWS SOS
  • AWS Cloud formation

Answer : AWS Ops Work

Which of the following is the right sequence of hooks that get called in AWS Code Deploy?


Options are :

  • Before lnstall->After Install->Validate Service-> Application Start
  • Application Stop-> Before lnstall >After I nstal l->Application Start (Correct)
  • Before install-> Application Stop-> Validate Service-> Application Start
  • Before lnstall->After Install-> Application Stop-> Application Start

Answer : Application Stop-> Before lnstall >After I nstal l->Application Start

Your application has the requirement to store data in a backend data store. Indexing should be possible on the data, but the data does not perform to any schema. Which of the following would be the ideal data store to choose for this application?


Options are :

  • AWS Dynamo DB (Correct)
  • AWS Red shift
  • AWS RDS
  • AWS S3

Answer : AWS Dynamo DB

You have a lambda function that is processed asynchronously. You need a way to check and debug issues if the function falls? How could you accomplish this?


Options are :

  • Use AWS Cloud watch metrics
  • Use AWS Cloud trail logs
  • Assign a dead letter queue (Correct)
  • Configure SNS notifications

Answer : Assign a dead letter queue

Your application is developed to pick up metrics from several servers and push them off to Cloud watch. At times the application gets client (4xx) errors. Which of the following can be done from the programming side to resolve such errors?


Options are :

  • Use the AWS CLI instead of the SDK to push the metrics
  • Enable encryption for the requests
  • Ensure that all metrics have a timestamp before sending them across
  • Use exponential back off in your requests (Correct)

Answer : Use exponential back off in your requests

You have deployed an application an EC2 Instance. This application makes calls to a Dynamo DB service. There are numerous performance issues present in the application. You decide to use the XRay service to debug the performance Issues. You are not able to see the trails in the XRay service. Which of the following could be the underlying issue? Choose 2 answers from the options given below ?


Options are :

  • The right AMI is not chosen for the EC2 instance
  • Ensure that the lAM Role attached permission to upload data onto X-Ray (Correct)
  • Ensure that the lAM Role attached to the instance has permission to upload data onto Cloud watch
  • The X-Ray daemon is not installed on the EC2 instance (Correct)

Answer : Ensure that the lAM Role attached permission to upload data onto X-Ray The X-Ray daemon is not installed on the EC2 instance

You have the following YAML file given to you which is required to deploy a Lambda function using server less deployment. AWS Template Format Version: 2010-09-09? Transform: AWS::Serverless-201 6-1 0-31 Resources: Test Function: Type: AWS::Server less::Function Properties: Handler: index. handler Runtime: nodejs6.10 Environment: Variables: 53_BUCKET: demo bucket Which of the following is required to ensure the deployment can take place?


Options are :

  • Use the cloud formation package command to package the deployment
  • Use the cloud formation package command to deploy the template
  • Place the function code in the .eb extensions folder
  • Place the function code in the root directory along with the YAML file (Correct)

Answer : Place the function code in the root directory along with the YAML file

Your company is hosting a static web site in S3. The code has recently been changes wherein Java script calls are being made to the web pages in the same bucket via the FQDN. But the browser Is blocking the requests. What should be done to alleviate the issue?


Options are :

  • Enable CRR on the bucket
  • Enable versioning on the bucket
  • Enable CORS on the bucket (Correct)
  • Enable encryption the bucket

Answer : Enable CORS on the bucket

A company currently allows access to their API?s to customers via the API gateway. Currently all clients have a 6-month period to move from using the older API?s to newer versions of the API?s. The code for the API is hosted in AWS Lambda. Which of the following is the ideal strategy to employ in such a situation?


Options are :

  • Create another AWS Lambda ALIAS and give the link to that version to the customers.
  • Create a deployment package that would automatically change the link to the new Lambda version
  • Create another AWS Lambda version and give the link to that version to the customers.
  • Create another stage in the API gateway (Correct)

Answer : Create another stage in the API gateway

Your team is developing a solution that will make use of Dynamo DB tables. Due to the nature of the application, the data is needed across a couple of regions across the world. Which of the following would help reduce the latency of requests to Dynamo DB from different regions?


Options are :

  • Enable Indexes for the table
  • Increase the read and write throughput for the table
  • Enable Multi-AZ for the Dynamo DB table
  • Enable global tables for Dynamo DB (Correct)

Answer : Enable global tables for Dynamo DB

Your developing a common lambda function that will be used across several environments such as staging, development etc. The lambda function needs to interact with a database In each of these environments. What is the best way to develop the Lambda function?


Options are :

  • Create one Lambda function and create several ALIAS for each database
  • Create one Lambda function and create several versions for each database
  • Create one Lambda function and create environment variables for each database (Correct)
  • Create a Lambda function for each environment so that each function can point to its respective database

Answer : Create one Lambda function and create environment variables for each database

An application needs to use an authentication in AWS. Users need to have MFA enabled when trying to log into the application. Which of the following can be used for this purpose?


Options are :

  • Use AWS STS with SAML
  • Create an lAM group with public access
  • Create an lAM user with public access
  • Use AWS Cogn Ito with MFA (Correct)

Answer : Use AWS Cogn Ito with MFA

An application is currently accessing a Dynamo DB table. Currently the tables queries are performing well. Changes have been made to the application and now the performance of the application is starting to degrade. After looking at the changes , you see that the queries are making use of an attribute which is not the partition key? Which of the following would be the adequate change to make to resolve the issue?


Options are :

  • Change all the queries to ensure they use the partition key
  • Add an index for the Dynamo DB table (Correct)
  • Change the read capacity on the table
  • Enable global tables for Dynamo DB

Answer : Add an index for the Dynamo DB table

You have docker containers which are going to be deployed in the AWS Elastic Container Service. You need to ensure that instances of containers cannot access each other since these different instances are going to be used by Individual customers. How can you accomplish this?


Options are :

  • Place the access keys in the Docker containers
  • Create Task lAM Roles (Correct)
  • Place lAM Roles for the underlying EC2 Instances
  • Place the access keys in the EC2 Instances

Answer : Create Task lAM Roles

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions