PracticeCF

DVA-C02 Question Bank · Latest 50 Questions Free Preview (Page 1/5)

Questions 1–10 of the latest 50 DVA-C02 questions (5 pages total), with answers and explanations, no login required. Practice all 1394 questions online.

Question 1 · No. 1345 · Single choice

A developer adds new dependencies to an existing AWS Lambda function. The developer cannot deploy the Lambda function because the unzipped deployment package exceeds the maximum size quota for the Lambda function. The instruction set architecture of the Lambda function is x86_64. The developer must implement a solution to deploy the Lambda function with the new dependencies. Which solution will meet these requirements?

Answer: D

Explanation: The issue here is that the unzipped deployment package size exceeds Lambda's limit. AWS Lambda supports deploying functions as container images, which allows larger package sizes (up to 10 GB). This solution directly addresses the problem by enabling the developer to package all dependencies within a container image without exceeding size limits. Other options like snapshots or EBS volumes are not supported solutions for managing Lambda dependencies.
Question 2 · No. 1346 · Single choice

A company has an ecommerce platform. A developer is designing an Amazon DynamoDB table to store customer order data for the platform. The table uses the order ID as the partition key. The developer needs to modify the table to get all order IDs that are associated with a given customer email address in a single query. The solution must give the developer the ability to query order IDs by other item attributes in the future. Which solution will meet these requirements?

Answer: D

Explanation: The requirement is to query all order IDs associated with a given customer email address in a single query, while also retaining flexibility for future queries on other attributes. A Global Secondary Index (GSI) allows you to define an alternative partition key and sort key, enabling efficient querying on attributes other than the primary partition key (order ID). Using the customer email address as the partition key in a GSI allows direct querying of orders by email, meeting the requirements effectively.
Question 3 · No. 1347 · Single choice

A company has an application that runs on Amazon EC2 instances. The application needs to use dynamic feature flags that will be shared with other applications. The application must poll on an interval for new feature flag values. The values must be cached when they are retrieved. Which solution will meet these requirements in the MOST operationally efficient way?

Answer: B

Question 4 · No. 1348 · Single choice

A company is developing a new application that uses Amazon EC2, Amazon S3, and AWS Lambda resources. The company wants to allow employees to access the AWS Management Console by using existing credentials that the company stores and manages in an on-premises Microsoft Active Directory. Each employee must have a specific level of access to the AWS resources that is based on the employee’s role. Which solution will meet these requirements with the LEAST operational overhead?

Answer: A

Explanation: The question requires a solution that allows employees to access AWS resources using their existing on-premises Active Directory credentials while minimizing operational overhead. Option A suggests using AWS Directory Service for Microsoft Active Directory, which integrates with the on-premises Active Directory via a trust relationship. This setup enables centralized management of employee roles and permissions in IAM, reducing overhead. Other options involve more complex custom solutions or tools like LDAP, identity brokers, or Amazon Cognito, which would require additional development and maintenance effort.
Question 5 · No. 1349 · Single choice

A video streaming company has a pipe in Amazon EventBridge Pipes that uses an Amazon Simple Queue Service (Amazon SQS) queue as an event source. The pipe publishes all source events to a target EventBridge event bus. Before events are published, the pipe uses an AWS Lambda function to retrieve the stream status of each event from a database and adds the stream status to each source event. The company wants the pipe to publish events to the event bus only if the video stream has a status of ready. Which solution will meet these requirements?

Answer: A

Question 6 · No. 1350 · Single choice

A company’s application includes an Amazon DynamoDB table for product orders. The table has a primary partition key of orderId and has no sort key. The company is adding a new feature that requires the application to query the table by using the customerId attribute. Which solution will provide this query functionality?

Answer: B

Explanation: The correct solution is to create a new Global Secondary Index (GSI) on the table with a partition key of customerId. A GSI allows you to query the DynamoDB table using an alternate partition key, which in this case is customerId. Changing the existing primary key or creating a Local Secondary Index (LSI) won’t work since LSIs require a sort key in the base table, and modifying the primary key structure would disrupt the current design.
Question 7 · No. 1351 · Single choice

A developer is creating an AWS Step Functions state machine to handle an order processing workflow. When the state machine receives an order, the state machine pauses until the order has been confirmed. A record that is added to an Amazon DynamoDB table by another service confirms each order. The developer must complete the order processing workflow. Which solution will meet this requirement?

Answer: A

Question 8 · No. 1352 · Single choice

A developer built an application that uses AWS Lambda functions to process images. The developer wants to improve image processing times throughout the day. The developer needs to create an Amazon CloudWatch Logs Insights query that shows the average, slowest, and fastest processing time in 1-minute intervals. Which query will meet these requirements?

Answer: A

Question 9 · No. 1353 · Single choice

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?

Answer: D

Explanation: The solution that meets the requirements with the LEAST operational overhead is to create a single Amazon SNS topic and use subscription filter policies. This way, the data-processing Lambda function can publish messages to one topic and rely on SNS to route the messages to the appropriate consumer Lambda functions based on the filter policies. This approach minimizes the need for custom routing logic in the producer or consumer functions, reducing complexity and maintenance effort.
Question 10 · No. 1354 · Single choice

A company has an AWS Step Functions state machine named myStateMachine. The company configured a service role for Step Functions. The developer must ensure that only the myStateMachine state machine can assume the service role. Which statement should the developer add to the trust policy to meet this requirement?

Answer: A

Explanation: To ensure that only the myStateMachine state machine can assume the service role, the developer should add a statement to the trust policy that restricts access to only that specific state machine. This can be achieved by specifying the ARN (Amazon Resource Name) of the state machine in the 'StringEquals' condition for the 'sts:ExternalId'. The correct option should explicitly include the ARN of the state machine in the condition.
12345 Next