Amazon (DVA-C01) Exam Questions And Answers page 23
A developer is building an application using an Amazon API Gateway REST API backed by an AWS Lambda function that interacts with an Amazon DynamoDB table. During testing, the developer observes high latency when making requests to the API.
How can the developer evaluate the end-to-end latency and identify performance bottlenecks?
How can the developer evaluate the end-to-end latency and identify performance bottlenecks?
Enable and configure AWS X-Ray tracing on API Gateway and the Lambda function. Use X-Ray to trace and analyze user requests.
Enable Amazon CloudWatch Logs for the Lambda function. Enable execution logs for API Gateway to view and analyze user request logs.
Enable VPC Flow Logs to capture and analyze network traffic within the VPC.
Compute Services
Networking and Content Delivery
A developer is building an application using an Amazon API Gateway REST API backed by an AWS Lambda function that interacts with an Amazon DynamoDB table. During testing, the developer observes high latency when making requests to the API.
How can the developer evaluate the end-to-end latency and identify performance bottlenecks?
How can the developer evaluate the end-to-end latency and identify performance bottlenecks?
Enable AWS CloudTrail logging and use the logs to map each latency and bottleneck.
Enable and configure AWS X-Ray tracing on API Gateway and the Lambda function. Use X-Ray to trace and analyze user requests.
Enable Amazon CloudWatch Logs for the Lambda function. Enable execution logs for API Gateway to view and analyze user request logs.
Enable VPC Flow Logs to capture and analyze network traffic within the VPC.
Compute Services
Networking and Content Delivery
A developer is building an AWS Lambda function that will dynamically generate and send a weekly newsletter to 100,000 users. This newsletter contains both static text and images. The developer needs a fast and highly scalable place to store the images that will be hyperlinked in the newsletter.
Where should the developer store these images?
Where should the developer store these images?
Use an Amazon DynamoDB table with DynamoDB Streams and read capacity auto scaling enabled.
Use an Amazon S3 bucket and S3 Transfer Acceleration to speed up the image download.
Use an Amazon Aurora database with a public DNS endpoint and auto scaling enabled.
Use an Amazon S3 backed Amazon CloudFront distribution with a high Time-to-Live (TTL) to maximize caching.
Storage Services
Monitoring and Troubleshooting
A developer is building a new application that uses an Amazon DynamoDB table. The specification states that all items that are older than 48 hours must be removed.
Which solution will meet this requirement?
Which solution will meet this requirement?
Create a new attribute that has the Number data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
Create a new attribute that has the String data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
Create a new attribute that has the Number data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
Create a new attribute that has the String data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
Database Services
Monitoring and Troubleshooting
A developer is building a new complex application on AWS. The application consists of multiple microservices hosted on Amazon EC2. The developer wants to determine which microservice adds the most latency while handling a request.
Which method should the developer use to make this determination?
Which method should the developer use to make this determination?
Instrument each microservice request using the AWS X-Ray SDK. Examine the annotations associated with the requests.
Instrument each microservice request using the AWS X-Ray SDK. Examine the subsegments associated with the requests.
Instrument each microservice request using the AWS X-Ray SDK. Examine the Amazon CloudWatch EC2 instance metrics associated with the requests.
Instrument each microservice request using the Amazon CloudWatch SDK. Examine the CloudWatch EC2 instance metrics associated with the requests.
Compute Services
Networking and Content Delivery
A Developer is building a serverless application using AWS Lambda and must create a REST API using an HTTP GET method.
What needs to be defined to meet this requirement? (Choose two.)
What needs to be defined to meet this requirement? (Choose two.)
A Lambda@Edge function
An Amazon API Gateway with a Lambda function
An exposed GET method in an Amazon API Gateway
An exposed GET method in the Lambda function
An exposed GET method in Amazon Route 53
Networking and Content Delivery
Deployment and Management
A developer is building a static, client-side rendered website that is powered by ReactJS. The code has no server-side generated components and does not need to run any programming languages on the server. However, the code serves static HTML, CSS, and JavaScript to the client on each request. The developer's solution to host the website must maximize performance and cost-effectiveness.
Which combination of AWS services or resources should the developer use to meet these requirements?
Which combination of AWS services or resources should the developer use to meet these requirements?
Application Load Balancer and Amazon EC2
Amazon API Gateway and AWS Lambda
Amazon CloudFront and Amazon S3
Amazon CloudFront and AWS Elastic Beanstalk
Storage Services
A Developer is building a three-tier web application that should be able to handle a minimum of 5000 requests per minute. Requirements state that the web tier should be completely stateless while the application maintains session state for the users.
How can session data be externalized, keeping latency at the LOWEST possible value?
How can session data be externalized, keeping latency at the LOWEST possible value?
Create an Amazon RDS instance, then implement session handling at the application level to leverage a database inside the RDS database instance for session data storage
Implement a shared file system solution across the underlying Amazon EC2 instances, then implement session handling at the application level to leverage the shared file system for session data storage
Create an Amazon ElastiCache Memcached cluster, then implement session handling at the application level to leverage the cluster for session data storage
Create an Amazon DynamoDB table, then implement session handling at the application level to leverage the table for session data storage
Security and Identity Services
Deployment and Management
A Developer is building a web application that uses Amazon API Gateway to expose an AWS Lambda function to process requests from clients. During testing, the Developer notices that the API Gateway times out even though the Lambda function finishes under the set time limit.
Which of the following API Gateway metrics in Amazon CloudWatch can help the Developer troubleshoot the issue? (Choose two.)
Which of the following API Gateway metrics in Amazon CloudWatch can help the Developer troubleshoot the issue? (Choose two.)
CacheHitCount
IntegrationLatency
CacheMissCount
Latency
Count
Networking and Content Delivery
Monitoring and Troubleshooting
A developer is building a website that will be hosted in an Amazon S3 bucket with static website hosting enabled. The developer will use Amazon Route 53 for the DNS service and will use an alias record to point the company s domain to the bucket. The developer must redirect one S3 object to a different URL.
What should the developer use so that the redirect will work correctly from a page on the website?
What should the developer use so that the redirect will work correctly from a page on the website?
A Route 53 CNAME alias record that points to the new location
An S3 object-level redirect through system-defined metadata
A Route 53 A record that points to the new location
A redirect that is configured within the S3 bucket s policy
Storage Services
Networking and Content Delivery
Comments