Amazon (DVA-C01) Exam Questions And Answers page 55
A team of Developers must migrate an application running inside an AWS Elastic Beanstalk environment from a Classic Load Balancer to an Application Load Balancer.
Which steps should be taken to accomplish the task using the AWS Management Console?
Which steps should be taken to accomplish the task using the AWS Management Console?
1. Create a new environment with the same configurations except for the load balancer type.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action.
1. Clone the existing environment, changing the associated load balancer type.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action.
1. Edit the environment definitions in the existing deployment.
2. Change the associated load balancer type according to the requirements.
3. Rebuild the environment with the new load balancer type.
2. Change the associated load balancer type according to the requirements.
3. Rebuild the environment with the new load balancer type.
Storage Services
Deployment and Management
A video-hosting website has two types of members: those who pay a fee, and those who do not. Each video upload places a message in Amazon SQS. A fleet of Amazon EC2 instances polls Amazon SQS and processes each video.
The developer needs to ensure that the videos uploaded by the paying members are processed first.
How can the developer meet this requirement?
The developer needs to ensure that the videos uploaded by the paying members are processed first.
How can the developer meet this requirement?
Create two SQS queues: one for paying members, and one for non-paying members. Poll the paying member queue first and then poll the non-paying member queue.
Use SQS to set priorities on individual items within a single queue; give the paying members videos the highest priority.
Use SQS to set priorities on individual items within a single queue and use Amazon SNS to encode the videos.
Create two Amazon SNS topics: one for paying members and one for non-paying members. Use SNS topic subscription priorities to differentiate between the two types of members.
Compute Services
Storage Services
A web application is designed to allow new users to create accounts using their email addresses. The application will store attributes for each user, and is expecting millions of user to sign up.
What should the Developer implement to achieve the design goals?
What should the Developer implement to achieve the design goals?
Amazon Cognito user pools
AWS Mobile Hub user data storage
Amazon Cognito Sync
AWS Mobile Hub cloud logic
Storage Services
Database Services
A web application is using Amazon Kinesis Streams for clickstream data that may not be consumed for up to 12 hours.
How can the Developer implement encryption at rest for data within the Kinesis Streams?
How can the Developer implement encryption at rest for data within the Kinesis Streams?
Enable SSL connections to Kinesis
Use Amazon Kinesis Consumer Library
Encrypt the data once it is at rest with a Lambda function
Enable server-side encryption in Kinesis Streams
Developer Tools
Monitoring and Troubleshooting
A website s page load times are gradually increasing as more users access the system at the same time. Analysis indicates that a user profile is being loaded from a database in all the web pages being visited by each user and this is increasing the database load and the page load latency. To address this issue the Developer decides to cache the user profile data.
Which caching strategy will address this situation MOST efficiently?
Which caching strategy will address this situation MOST efficiently?
Create a new Amazon EC2 Instance and run a NoSQL database on it. Cache the profile data within this database using the write-through caching strategy.
Create an Amazon ElastiCache cluster to cache the user profile data. Use a cache-aside caching strategy.
Use a dedicated Amazon RDS instance for caching profile data. Use a write-through caching strategy.
Create an ElastiCache cluster to cache the user profile data. Use a write-through caching strategy.
Database Services
Deployment and Management
AWS CodeBuild builds code for an application, creates the Docker image, pushes the image to Amazon Elastic Container Registry (Amazon ECR), and tags the image with a unique identifier.
If the Developers already have AWS CLI configured on their workstations, how can the Docker images be pulled to the workstations?
If the Developers already have AWS CLI configured on their workstations, how can the Docker images be pulled to the workstations?
Run the following:
docker pull REPOSITORY URI : TAG
docker pull REPOSITORY URI : TAG
Run the output of the following:
aws ecr get-login
and then run:
docker pull REPOSITORY URI : TAG
aws ecr get-login
and then run:
docker pull REPOSITORY URI : TAG
Run the following:
aws ecr get-login
and then run:
docker pull REPOSITORY URI : TAG
aws ecr get-login
and then run:
docker pull REPOSITORY URI : TAG
Run the output of the following:
aws ecr get-download-url-for-layer
and then run:
docker pull REPOSITORY URI : TAG
aws ecr get-download-url-for-layer
and then run:
docker pull REPOSITORY URI : TAG
Developer Tools
Deployment and Management
During non-peak hours, a Developer wants to minimize the execution time of a full Amazon DynamoDB table scan without affecting normal workloads. The workloads average half of the strongly consistent read capacity units during non-peak hours.
How would the Developer optimize this scan?
How would the Developer optimize this scan?
Use parallel scans while limiting the rate
Use sequential scans
Increase read capacity units during the scan operation
Change consistency to eventually consistent during the scan operation
Networking and Content Delivery
Developer Tools
During non-peak hours, a Developer wants to minimize the execution time of a full Amazon DynamoDB table scan without affecting normal workloads. The workloads average half of the strongly consistent read capacity units during non-peak hours.
How would the Developer optimize this scan?
How would the Developer optimize this scan?
Use parallel scans while limiting the rate
Use sequential scans
Increase read capacity units during the scan operation
Change consistency to eventually consistent during the scan operation
Networking and Content Delivery
Developer Tools
For a deployment using AWS CodeDeploy, what is the run order of the hooks for in-place deployments?
Before Install -> Application Stop -> Application Start -> After Install
Application Stop -> Before Install -> After Install -> Application Start
Before Install -> Application Stop -> Validate Service -> Application Start
Application Stop -> Before Install -> Validate Service -> Application Start
Deployment and Management
Given the following AWS CloudFormation template:
What is the MOST efficient way to reference the new Amazon S3 bucket from another AWS CloudFormation template?
What is the MOST efficient way to reference the new Amazon S3 bucket from another AWS CloudFormation template?
Add an Export declaration to the Outputs section of the original template and use ImportValue in other templates.
Add Exported: true to the ContentBucket in the original template and use ImportResource in other templates.
Create a custom AWS CloudFormation resource that gets the bucket name from the ContentBucket resource of the first stack.
Use Fn::Include to include the existing template in other templates and use the ContentBucket resource directly.
Storage Services
Deployment and Management
Comments