Amazon DVA-C02 Practice Test - Questions Answers, Page 28
List of questions
Related questions
A developer is designing an event-driven architecture. An AWS Lambda function that processes data needs to push processed data to a subset of four consumer Lambda functions. The data must be routed based on the value of one field in the data.
Which solution will meet these requirements with the LEAST operational overhead?
Create an Amazon Simple Queue Service {Amazon SQS) queue and even! source mapping for each consumer Lambda function. Add message routing logic to the data-processing Lambda function.
Create an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the four consumer Lambda functions to the topic. Add message filtering logic to each consumer Lambda function. Subscribe the data-processing Lambda function to the SNS topic.
Create a separate Amazon Simple Notification Service (Amazon SNS) topic and subscription for each consumer Lambda function. Add message routing logic to the data-processing Lambda function to publish to the appropriate topic.
Create a single Amazon Simple Notification Service {Amazon SNS) topic. Subscribe the four consumer Lambda functions to the topic. Add SNS subscription filter policies to each subscription. Configure the data-processing Lambda function to publish to the topic.
A developer is building an application that processes a stream of user-supplied data. The data stream must be consumed by multiple Amazon EC2 based processing applications in parallel and in real time. Each processor must be able to resume without losing data if there is a service interruption. The application architect plans to add other processors in the near future, and wants to minimize the amount of data duplication involved.
Which solution will satisfy these requirements?
Publish the data to Amazon Simple Queue Service (Amazon SQS).
Publish the data to Amazon Data Firehose.
Publish the data to Amazon EventBridge.
Publish the data to Amazon Kinesis Data Streams.
A large company has its application components distributed across multiple AWS accounts. The company needs to collect and visualize trace data across these accounts.
What should be used to meet these requirements?
AWS X-Ray
Amazon CloudWatch
Amazon VPC flow logs
Amazon OpenSearch Service
A developer must cache dependent artifacts from Maven Central, a public package repository, as part of an application's build pipeline. The build pipeline has an AWS CodeArtifact repository where artifacts of the build are published. The developer needs a solution that requires minimum changes to the build pipeline.
Which solution meets these requirements?
Modify the existing CodeArtifact repository to associate an upstream repository with the public package repository.
Create a new CodeArtifact repository that has an external connection to the public package repository.
Create a new CodeArtifact domain that contains a new repository that has an external connection to the public package repository.
Modify the CodeArtifact repository resource policy to allow artifacts to be fetched from the public package repository.
A company is providing read access to objects in an Amazon S3 bucket for different customers. The company uses 1AM permissions to restrict access to the S3 bucket. The customers can access only their own files.
Due to a regulation requirement, the company needs to enforce encryption in transit for interactions with Amazon S3.
Which solution will meet these requirements?
Add a bucket policy to the S3 bucket to deny S3 actions when the aws:SecureTransport condition is equal to false.
Add a bucket policy to the S3 bucket to deny S3 actions when the s3:x-amz-acl condition is equal to public-read.
Add an 1AM policy to the 1AM users to enforce the usage of the AWS SDK.
Add an 1AM policy to the 1AM users that allows S3 actions when the s3:x-amz-acl condition is equal to bucket-owner-read.
A team is developing an application that is deployed on Amazon EC2 instances. During testing, the team receives an error. The EC2 instances are unable to access an Amazon S3 bucket.
Which steps should the team take to troubleshoot this issue? (Select TWO.)
Check whether the policy that is assigned to the JAM role that is attached to the EC2 instances grants access to Amazon S3.
Check the S3 bucket policy to validate the access permissions for the S3 bucket.
Check whether the policy that is assigned to the 1AM user that is attached to the EC2 instances grants access to Amazon S3.
Check the S3 Lifecycle policy to validate the permissions that are assigned to the S3 bucket.
Check the security groups that are assigned to the EC2 instances. Make sure that a rule is not blocking the access to Amazon S3.
A developer created several AWS Lambda functions that write data to a single Amazon S3 bucket. The developer configured all the Lambda functions to send logs and metrics to Amazon CloudWatch.
The developer receives reports that one of the Lambda functions writes data to the bucket very slowly. The developer needs to measure the latency between the problematic Lambda function and the S3 bucket.
Which solution will meet this requirement?
Enable AWS X-Ray on the Lambda function. In the generated trace map. select the line between Lambda and Amazon S3.
Query the Lambda function's log file in Amazon CloudWatch Logs Insights. Return the average of the auto-discovered duration field.
Enable CloudWatch Lambda Insights on the function. View the latency graph that CloudWatch Lambda Insights provides.
Enable AWS X-Ray on the Lambda function. Select Amazon S3 in the latency graph to view the latency histogram.
A developer is integrating Amazon ElastiCache in an application. The cache will store data from a database. The cached data must populate real-time dashboards. Which caching strategy will meet these requirements?
A read-through cache
A write-behind cache
A lazy-loading cache
A write-through cache
A company's application has an AWS Lambda function that processes messages from loT devices. The company wants to monitor the Lambda function to ensure that the Lambda function is meeting its required service level agreement (SLA).
A developer must implement a solution to determine the application's throughput in near real time. The throughput must be based on the number of messages that the Lambda function receives and processes in a given time period. The Lambda function performs initialization and post-processing steps that must not factor into the throughput measurement.
What should the developer do to meet these requirements?
Use the Lambda function's ConcurrentExecutions metric in Amazon CloudWatch to measure the throughput.
Modify the application to log the calculated throughput to Amazon CloudWatch Logs. Use Amazon EventBridge to invoke a separate Lambda function to process the logs on a schedule.
Modify the application to publish custom Amazon CloudWatch metrics when the Lambda function receives and processes each message. Use the metrics to calculate the throughput.
Use the Lambda function's Invocations metric and Duration metric to calculate the throughput in Amazon CloudWatch.
A developer is using AWS CodeDeploy to launch an application onto Amazon EC2 instances. The application deployment fails during testing. The developer notices an IAM_ROLE_PERMISSIONS error code in Amazon CloudWatch logs.
What should the developer do to resolve the error?
Ensure that the deployment group is using the correct role name for the CodeDeploy service role.
Attach the AWSCodeDeployRoleECS policy to the CodeDeploy service role.
Attach the AWSCodeDeployRole policy to the CodeDeploy service role.
Ensure the CodeDeploy agent is installed and running on all instances in the deployment group.
Question