AWS Certified Developer Associate DVA-C01 – Question096

A company has an application that runs on AWS Elastic Beanstalk in a load-balanced environment. The company needs to update the instance types in the environment to a more recent generation of instance types.
The company must minimize downtime during the deployment of this configuration change.
Which deployment options will meet these requirements? (Choose two.)

A.
Disabled
B. Rolling based on Health
C. Immutable
D. All at once
E. Canary

Correct Answer: CE

AWS Certified Developer Associate DVA-C01 – Question095

A company is using Amazon RDS as the backend database for its application. After a recent marketing campaign, a surge of read requests to the database increased the latency of data retrieval from the database.
The company has decided to implement a caching layer in front of the database. The cached content must be encrypted and must be highly available.
Which solution will meet these requirements?

A.
Amazon CloudFront
B. Amazon ElastiCache for Memcached
C. Amazon ElastiCache for Redis in cluster mode
D. Amazon DynamoDB Accelerator (DAX)

Correct Answer: C

AWS Certified Developer Associate DVA-C01 – Question094

A software company is using AWS CodeBuild to build an application. The buildspec runs the application build and creates a Docker image that contains the application. The company needs to push the Docker image to Amazon Elastic Container Registry (Amazon ECR) only upon the completion of each successful build.
Which solution meets these requirements?

A.
Change the buildspec by adding a post_build phase that uses the commands block to push the Docker image.
B. Change the buildspec by adding a post_build phase that uses the finally block to push the Docker image.
C. Specify the Docker image in the buildspec's artifacts sequence with an action to push the image.
D. Use a batch build to define a build matrix. Use the batch build to push the Docker image.

Correct Answer: C

AWS Certified Developer Associate DVA-C01 – Question093

A company is using continuous integration/continuous delivery (CI/CD) systems. A developer must automate the deployment of an application software package to Amazon EC2 instances and virtual servers that run on premises.
Which AWS service should the developer use to meet these requirements?

A.
AWS Cloud9
B. AWS CodeBuild
C. AWS Elastic Beanstalk
D. AWS CodeDeploy

Correct Answer: D

AWS Certified Developer Associate DVA-C01 – Question092

An application runs on multiple EC2 instances behind an ELB.
Where is the session data best written so that it can be served reliably across multiple requests?

A.
Write data to Amazon ElastiCache.
B. Write data to Amazon Elastic Block Store.
C. Write data to Amazon EC2 Instance Store.
D. Write data to the root filesystem.

Correct Answer: C

AWS Certified Developer Associate DVA-C01 – Question091

A developer received the following error message during an AWS CloudFormation deployment:
DELETE_FAILED (The following resource(s) failed to delete:
[ASGInstanceRolel2345678].)
Which action should the developer take to resolve this error?

A.
Contact AWS Support to report an issue with the Auto Scaling Groups (ASG) service.
B. Add a DependsOn attribute to the ASGInstanceRole12345678 resource in the CloudFormation template. Then delete the stack.
C. Modify the CloudFormation template to retain the ASGInstanceRolel2345678 resource. Then manually delete the resource after deployment.
D. Add a force parameter when calling CloudFormation with the role-arn of ASGInstanceRolel2345678.

Correct Answer: C

AWS Certified Developer Associate DVA-C01 – Question090

An application running on Amazon EC2 opens connections to an Amazon RDS SQL Server database. The developer does not want to store the user name and password for the database in the code. The developer would also like to automatically rotate the credentials.
What is the MOST secure way to store and access the database credentials?

A.
Create an IAM role that has permissions to access the database. Attach the role to the EC2 instance.
B. Use AWS Secrets Manager to store the credentials. Retrieve the credentials from Secrets Manager as needed.
C. Store the credentials in an encrypted text file in an Amazon S3 bucket. Configure the EC2 instance's user data to download the credentials from Amazon S3 as the instance boots.
D. Store the user name and password credentials directly in the source code. No further action is needed because the source code is stored in a private repository.

Correct Answer: B

AWS Certified Developer Associate DVA-C01 – Question089

A company is migrating its on-premises database to Amazon RDS for MySQL. The company has read-heavy workloads, and wants to make sure it re-factors its code to achieve optimum read performance for its queries.
How can this objective be met?

A.
Add database retries to effectively use RDS with vertical scaling.
B. Use RDS with multi-AZ deployment.
C. Add a connection string to use an RDS read replica for read queries.
D. Add a connection string to use a read replica on an EC2 instance.

Correct Answer: C

AWS Certified Developer Associate DVA-C01 – Question088

A developer is designing a serverless application for an ecommerce website. An Amazon API Gateway API exposes AWS Lambda functions for billing, payment, and user operations. The website features shopping carts for the users. The shopping carts must be stored for extended periods of time and will be retrieved frequently by the front-end application.
The load on the application will vary significantly based on the time of day and the promotional sales that are offered on the website. The application must be able to scale automatically to meet these changing demands.
Which solution will meet these requirements?

A.
Store the data objects on an Amazon RDS DB instance. Cache the data objects in memory by using Amazon ElastiCache.
B. Store the data objects on Amazon EC2 instances behind an Application Load Balancer. Use session affinity (sticky sessions) for each user's shopping cart.
C. Store the data objects in Amazon S3 buckets. Cache the data objects by using Amazon CloudFront with the maximum TTL.
D. Store the data objects in Amazon DynamoDB tables. Cache the data objects by using DynamoDB Accelerator (DAX).

Correct Answer: A

AWS Certified Developer Associate DVA-C01 – Question087

A developer needs to create an application that supports Security Assertion Markup Language (SAML) and authentication with social media providers. It must also allow access to AWS services, such as Amazon DynamoDB.
Which AWS service or feature will meet these requirements with the LEAST amount of additional coding?

A.
AWS AppSync
B. Amazon Cognito identity pools
C. Amazon Cognito user pools
D. Amazon Lambda@Edge

Correct Answer: C