Amazon (DVA-C01) Exam Questions And Answers page 17
A Developer has an e-commerce API hosted on Amazon ECS. Variable and spiking demand on the application is causing order processing to take too long. The application processes Amazon SQS queues. The ApproximateNumberOfMessagesVisible metric spikes at very high values throughout the day, which cause Amazon CloudWatch alarm breaches. Other ECS metrics for the API containers are well within limits.
What can the Developer implement to improve performance while keeping costs low?
What can the Developer implement to improve performance while keeping costs low?
Docker Swarm
Service scheduler
Step scaling policy
Networking and Content Delivery
Monitoring and Troubleshooting
A Developer has a stateful web server on-premises that is being migrated to AWS. The Developer must have greater elasticity in the new design.
How should the Developer re-factor the application to make it more elastic? (Choose two.)
How should the Developer re-factor the application to make it more elastic? (Choose two.)
Use pessimistic concurrency on Amazon DynamoDB
Use Amazon CloudFront with an Auto Scaling group
Use Amazon CloudFront with an AWS Web Application Firewall
Store session state data in an Amazon DynamoDB table
Use an ELB with an Auto Scaling group
Storage Services
Deployment and Management
A Developer has been asked to build a real-time dashboard web application to visualize the key prefixes and storage size of objects in Amazon S3 buckets. Amazon DynamoDB will be used to store the Amazon S3 metadata.
What is the optimal and MOST cost-effective design to ensure that the real-time dashboard is kept up to date with the state of the objects in the Amazon S3 buckets?
What is the optimal and MOST cost-effective design to ensure that the real-time dashboard is kept up to date with the state of the objects in the Amazon S3 buckets?
Use an Amazon CloudWatch event backed by an AWS Lambda function. Issue an Amazon S3 API call to get a list of all Amazon S3 objects and persist the metadata within DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
Use Amazon S3 Event Notification backed by a Lambda function to persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
Run a cron job within an Amazon EC2 instance to list all objects within Amazon S3 and persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
Create a new Amazon EMR cluster to get all the metadata about Amazon S3 objects; persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.
Storage Services
Networking and Content Delivery
A Developer has been asked to create an AWS Lambda function that is triggered any time updates are made to items in an Amazon DynamoDB table. The function has been created, and appropriate permissions have been added to the Lambda execution role. Amazon DynamoDB streams have been enabled for the table, but the function is still not being triggered.
Which option would enable DynamoDB table updates to trigger the Lambda function?
Which option would enable DynamoDB table updates to trigger the Lambda function?
Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table
Configure event source mapping for the Lambda function
Map an Amazon SNS topic to the DynamoDB streams
Increase the maximum execution time (timeout) setting of the Lambda function
Compute Services
Database Services
A Developer has been asked to make changes to the source code of an AWS Lambda function. The function is managed using an AWS CloudFormation template. The template is configured to load the source code from an Amazon S3 bucket. The Developer manually created a .ZIP file deployment package containing the changes and put the file into the correct location on Amazon S3. When the function is invoked, the code changes have not been applied.
What step is required to update the function with the changes?
What step is required to update the function with the changes?
Delete the .ZIP file on S3, and re-upload by using a different object key name.
Update the CloudFormation stack with the correct values for the function code properties S3Bucket, S3Key, or S3ObjectVersion.
Ensure that the function source code is base64-encoded before uploading the deployment package to S3.
Modify the execution role of the Lambda function to allow S3 access permission to the deployment package .ZIP file.
Storage Services
Deployment and Management
A developer has built a market application that stores pricing data in Amazon DynamoDB with Amazon ElastiCache in front. The prices of items in the market change frequently. Sellers have begun complaining that, after they update the price of an item, the price does not actually change in the product listing.
What could be causing this issue?
What could be causing this issue?
The cache is not being invalidated when the price of the item is changed
The price of the item is being retrieved using a write-through ElastiCache cluster
The DynamoDB table was provisioned with insufficient read capacity
The DynamoDB table was provisioned with insufficient write capacity
Database Services
Networking and Content Delivery
A Developer has built an application running on AWS Lambda using AWS Serverless Application Model (AWS SAM).
What is the correct order of execution to successfully deploy the application?
What is the correct order of execution to successfully deploy the application?
1. Build the SAM template in Amazon EC2.
2. Package the SAM template to Amazon EBS storage.
3. Deploy the SAM template from Amazon EBS.
2. Package the SAM template to Amazon EBS storage.
3. Deploy the SAM template from Amazon EBS.
1. Build the SAM template locally.
2. Package the SAM template onto Amazon S3.
3. Deploy the SAM template from Amazon S3.
2. Package the SAM template onto Amazon S3.
3. Deploy the SAM template from Amazon S3.
1. Build the SAM template locally.
2. Deploy the SAM template from Amazon S3.
3. Package the SAM template for use.
2. Deploy the SAM template from Amazon S3.
3. Package the SAM template for use.
1. Build the SAM template locally.
2. Package the SAM template from AWS CodeCommit.
3. Deploy the SAM template to CodeCommit.
2. Package the SAM template from AWS CodeCommit.
3. Deploy the SAM template to CodeCommit.
Security and Identity Services
Deployment and Management
A developer has built an application using Amazon Cognito for authentication and authorization. After a user is successfully logged in to the application, the application creates a user record in an Amazon DynamoDB table.
What is the correct flow to authenticate the user and create a record in the DynamoDB table?
What is the correct flow to authenticate the user and create a record in the DynamoDB table?
Authenticate and get a token from an Amazon Cognito user pool. Use the token to access DynamoDB.
Authenticate and get a token from an Amazon Cognito identity pool. Use the token to access DynamoDB.
Authenticate and get a token from an Amazon Cognito user pool. Exchange the token for AWS credentials with an Amazon Cognito identity pool. Use the credentials to access DynamoDB.
Authenticate and get a token from an Amazon Cognito identity pool. Exchange the token for AWS credentials with an Amazon Cognito user pool. Use the credentials to access DynamoDB.
Compute Services
Storage Services
A Developer has code running on Amazon EC2 instances that needs read-only access to an Amazon DynamoDB table.
What is the MOST secure approach the Developer should take to accomplish this task?
What is the MOST secure approach the Developer should take to accomplish this task?
Create a user access key for each EC2 instance with read-only access to DynamoDB. Place the keys in the code. Redeploy the code as keys rotate.
Use an IAM role with an AmazonDynamoDBReadOnlyAccess policy applied to the EC2 instances.
Run all code with only AWS account root user access keys to ensure maximum access to services.
Use an IAM role with Administrator access applied to the EC2 instance.
Storage Services
Security and Identity Services
A Developer has code running on Amazon EC2 instances that needs read-only access to an Amazon DynamoDB table.
What is the MOST secure approach the Developer should take to accomplish this task?
What is the MOST secure approach the Developer should take to accomplish this task?
Create a user access key for each EC2 instance with read-only access to DynamoDB. Place the keys in the code. Redeploy the code as keys rotate.
Use an IAM role with an AmazonDynamoDBReadOnlyAccess policy applied to the EC2 instances.
Run all code with only AWS account root user access keys to ensure maximum access to services.
Use an IAM role with Administrator access applied to the EC2 instance.
Database Services
Security and Identity Services
Comments