{"id":18781,"date":"2026-09-22T10:00:55","date_gmt":"2026-09-22T10:00:55","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=18781"},"modified":"2026-09-22T10:00:55","modified_gmt":"2026-09-22T10:00:55","slug":"amazon-aws-certified-developer-associate-dva-c02-practice-test-questions-and-exam-dumps-part5-q81-100","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/amazon-aws-certified-developer-associate-dva-c02-practice-test-questions-and-exam-dumps-part5-q81-100\/","title":{"rendered":"Amazon AWS Certified Developer &#8211; Associate DVA-C02 Practice Test Questions and Exam Dumps Part5 Q81-100"},"content":{"rendered":"<h2><b>View Full <\/b><a href=\"https:\/\/www.examlabs.com\/aws-certified-developer-associate-dva-c02-exam-dumps\"><b>Amazon AWS Certified Developer &#8211; Associate DVA-C02 Exam Dumps<\/b><\/a><b> and Practice Test Dumps.<\/b><\/h2>\n<p>&nbsp;<\/p>\n<h3><b>Question 81<\/b><\/h3>\n<p><b>A developer needs to grant temporary AWS permissions to an application without creating long-term IAM user credentials. Which AWS service should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon Cognito<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon S3<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">AWS KMS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">AWS Security Token Service (STS)<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS Security Token Service (STS) provides temporary security credentials that applications and users can use to access AWS resources. These credentials include an access key ID, secret access key, and session token and have a limited lifetime. STS is commonly used with IAM roles to provide temporary permissions without distributing long-term credentials. This approach is useful for cross-account access, federated identities, and applications that need temporary AWS permissions. Amazon Cognito can manage application identities, S3 provides object storage, and KMS manages encryption keys. STS is therefore appropriate when temporary AWS credentials are required.<\/span><\/p>\n<h3><b>Question 82<\/b><\/h3>\n<p><b>A developer wants to prevent a DynamoDB update from occurring unless an item has a specific expected value. Which feature should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DynamoDB Streams<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ConditionExpression<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ProjectionExpression<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">FilterExpression<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A DynamoDB ConditionExpression allows an application to specify a condition that must be satisfied before a write operation is completed. For example, an application can update an item only when its current version attribute matches an expected value. If the condition is false, DynamoDB rejects the operation. This is useful for implementing optimistic locking and preventing unintended overwrites. ProjectionExpression controls which attributes are returned, while FilterExpression filters query or scan results after the read operation. DynamoDB Streams records item changes. ConditionExpression is therefore the appropriate feature for validating an item&#8217;s state before modifying it.<\/span><\/p>\n<h3><b>Question 83<\/b><\/h3>\n<p><b>A developer wants to upload objects to an S3 bucket from an application while keeping the bucket private. Which approach is appropriate?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Use a presigned URL.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Make the bucket publicly writable.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Disable all S3 access controls.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Give every application user an IAM administrator account.<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">An S3 presigned URL provides temporary access to an S3 object operation while allowing the underlying bucket to remain private. A trusted application can generate a URL using credentials that have the required permissions, and the client can then use that URL to upload an object. The URL can be configured with an expiration period, limiting how long it remains valid. Publicly writable buckets introduce significant security risks, while giving users administrator permissions violates least-privilege principles. Presigned URLs are therefore a practical solution for securely allowing clients to upload files without exposing long-term AWS credentials.<\/span><\/p>\n<h3><b>Question 84<\/b><\/h3>\n<p><b>A developer wants to process a large number of messages independently and asynchronously. Which AWS service is designed primarily for message queuing?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon SNS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon EventBridge<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon SQS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon CloudFront<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Amazon Simple Queue Service (SQS) is a managed message queuing service designed for asynchronous communication between application components. Producers can place messages into a queue, while consumers process them independently. This helps decouple application components and allows consumers to process messages at their own rate. SQS supports standard and FIFO queue types for different workload requirements. SNS is primarily a publish\/subscribe service, EventBridge provides event routing, and CloudFront is a content delivery service. SQS is therefore the appropriate choice when an application needs a durable queue between producers and consumers.<\/span><\/p>\n<h3><b>Question 85<\/b><\/h3>\n<p><b>A developer is building a Lambda function that needs configuration values that vary between environments. Which feature can store these values without changing the function code?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Lambda layers<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Environment variables<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Lambda destinations<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Lambda aliases only<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Lambda environment variables allow developers to provide configuration values to a function without embedding those values directly in source code. Different environments can use different values for settings such as API endpoints, feature flags, or application configuration. Environment variables are available to the function during execution through the runtime environment. Sensitive information should generally be stored in services such as Secrets Manager or Parameter Store rather than plain environment variables. Lambda layers are intended for shared dependencies, destinations handle asynchronous invocation results, and aliases reference published function versions. Environment variables are therefore useful for environment-specific application configuration.<\/span><\/p>\n<h3><b>Question 86<\/b><\/h3>\n<p><b>A developer wants to automatically route application events to different targets based on the contents of each event. Which service should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon S3<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon RDS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon ECR<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon EventBridge<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Amazon EventBridge allows applications and AWS services to publish events to an event bus. Rules can evaluate event patterns and route matching events to different targets. For example, events can be sent to Lambda functions, SQS queues, SNS topics, or Step Functions workflows based on event attributes. This enables loosely coupled event-driven architectures. S3 provides object storage, RDS provides relational database capabilities, and ECR stores container images. EventBridge is particularly useful when routing decisions depend on the content of events and multiple independent consumers need to respond to different event types.<\/span><\/p>\n<h3><b>Question 87<\/b><\/h3>\n<p><b>A developer wants to ensure that only an application with a specific IAM role can read objects from an S3 bucket. Which configuration should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">An S3 bucket policy that grants access to the required IAM role.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Public-read access on the bucket.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Anonymous access through an S3 website endpoint.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A CloudFront distribution without access controls.<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">An S3 bucket policy can specify which IAM principals are allowed to perform actions on objects in the bucket. The policy can grant the required permissions specifically to an IAM role while keeping the bucket private. This supports the principle of least privilege by limiting access to the intended application identity. Public-read permissions would expose the objects to unauthenticated users and should not be used when private access is required. CloudFront does not automatically provide authorization to S3 objects. A targeted bucket policy combined with appropriate IAM permissions is therefore a suitable solution.<\/span><\/p>\n<h3><b>Question 88<\/b><\/h3>\n<p><b>A developer wants to execute several steps in a business workflow and retry a failed step automatically before continuing. Which AWS service is most suitable?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon SQS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon SNS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">AWS Step Functions<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon Route 53<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS Step Functions provides workflow orchestration for applications that require multiple coordinated steps. A state machine can define sequential tasks, parallel execution, conditional branching, waiting periods, retries, and error handling. Developers can configure retry behavior for specific failures and define what should happen when a task succeeds or fails. SQS provides asynchronous message queuing, SNS provides publish\/subscribe messaging, and Route 53 provides DNS services. Step Functions is therefore well suited to business processes that require multiple stages and controlled error handling across AWS services or application components.<\/span><\/p>\n<h3><b>Question 89<\/b><\/h3>\n<p><b>A developer wants to store a container image used by an Amazon ECS application. Which AWS service should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon SQS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon CloudWatch<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon DynamoDB<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon Elastic Container Registry (ECR)<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Amazon Elastic Container Registry (ECR) is a managed container image registry that allows developers to store, manage, and retrieve container images. ECS tasks can pull container images from ECR when deploying containerized applications. ECR integrates with AWS identity and access management and supports image lifecycle management capabilities. SQS is a messaging service, CloudWatch provides monitoring, and DynamoDB is a NoSQL database. Using ECR allows container images to be centrally managed and securely retrieved by container workloads according to the permissions configured for the application.<\/span><\/p>\n<h3><b>Question 90<\/b><\/h3>\n<p><b>A developer wants to improve the reliability of an application that occasionally receives throttling errors from AWS services. What should the application implement?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Exponential backoff and retry logic<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Unlimited immediate retries<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Disable all error handling<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Permanently stop after the first throttling response<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Exponential backoff allows an application to wait progressively longer between retry attempts after receiving transient failures such as throttling. Adding jitter to the delays can further reduce synchronized retry bursts from multiple clients. AWS SDKs commonly provide built-in retry behavior, but application developers should still understand retry settings and ensure that operations can safely be repeated. Unlimited immediate retries can increase the load on an already throttled service and make the problem worse. Proper retry handling improves resilience while preventing unnecessary request storms. Idempotency should also be considered for operations that may produce side effects.<\/span><\/p>\n<h3><b>Question 91<\/b><\/h3>\n<p><b>A developer needs to retrieve multiple known items from DynamoDB in a single API request. Which operation should be considered?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Scan<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">BatchGetItem<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Query<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">UpdateItem<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">DynamoDB BatchGetItem allows an application to retrieve multiple items from one or more DynamoDB tables using their primary keys in a single request. It is useful when the application already knows the keys of multiple required items. Query is designed to retrieve multiple items associated with a partition key and optional sort-key conditions. Scan examines items across a table or index, while UpdateItem modifies an existing item. BatchGetItem can reduce the number of individual API calls, although applications must still handle unprocessed keys and DynamoDB request limits appropriately.<\/span><\/p>\n<h3><b>Question 92<\/b><\/h3>\n<p><b>A developer wants to receive notifications when a CloudWatch metric exceeds a configured threshold. Which feature should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">CloudFormation stack<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">S3 event notification<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">CloudWatch alarm<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DynamoDB stream<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Amazon CloudWatch alarms monitor metrics and can change state when a metric crosses a configured threshold. An alarm can then perform actions such as sending notifications through Amazon SNS or triggering supported automated responses. For example, a developer could configure an alarm for a high Lambda error count or excessive API latency. CloudFormation manages infrastructure, S3 event notifications respond to S3 events, and DynamoDB Streams capture database changes. A CloudWatch alarm is therefore the appropriate feature when an application needs to monitor a metric and notify operators when the metric reaches an undesirable level.<\/span><\/p>\n<h3><b>Question 93<\/b><\/h3>\n<p><b>A developer wants to create an IAM policy that allows a Lambda function to read only objects from one specific S3 bucket. Which principle should be followed?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Least privilege<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Full administrator access<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Public access<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Root-user access<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The principle of least privilege means granting an identity only the permissions required to perform its intended tasks. For a Lambda function that only needs to read objects from one S3 bucket, the IAM policy should restrict permissions to the required S3 read actions and appropriate resources. Granting administrator access would provide unnecessary privileges and increase the potential impact of a compromised function. Public access and root-user credentials are also inappropriate for this use case. Applying least privilege improves security and makes permissions easier to audit and maintain as applications evolve.<\/span><\/p>\n<h3><b>Question 94<\/b><\/h3>\n<p><b>A developer wants to deploy infrastructure consistently across development, testing, and production environments. Which approach is most appropriate?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Manually create every resource in the console.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Store resource settings in application comments.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Configure each environment independently without templates.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Use AWS CloudFormation templates.<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS CloudFormation enables developers to define infrastructure as code through templates. The same template or parameterized template can be used to create consistent resources across multiple environments. This reduces configuration drift and makes infrastructure deployments repeatable. Templates can define resources, dependencies, policies, and configuration values. Manual console configuration can result in inconsistent environments and is harder to reproduce. By managing infrastructure through CloudFormation, development teams can automate deployments and maintain a version-controlled representation of the desired infrastructure state.<\/span><\/p>\n<h3><b>Question 95<\/b><\/h3>\n<p><b>A developer needs to distribute a web application&#8217;s static content globally with reduced latency. Which AWS service should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon RDS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon DynamoDB<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon CloudFront<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon SQS<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Amazon CloudFront is a content delivery network that distributes content through edge locations closer to end users. It can cache static assets such as images, JavaScript files, CSS, and other web content, reducing latency for users who are geographically distant from the origin. CloudFront can use origins such as S3 buckets or HTTP servers. RDS provides relational databases, DynamoDB provides NoSQL storage, and SQS provides messaging. CloudFront is therefore appropriate when an application needs global content distribution and improved performance for users across different geographic locations.<\/span><\/p>\n<h3><b>Question 96<\/b><\/h3>\n<p><b>A developer wants to create a DynamoDB transaction that either updates multiple related items successfully or does not apply any of the updates. Which feature should be used?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DynamoDB Streams<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DynamoDB transactions<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DynamoDB TTL<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DynamoDB Scan<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">DynamoDB transactions provide coordinated, all-or-nothing operations across multiple items and tables. This is useful when several related writes must succeed together to maintain application consistency. If a transaction cannot complete successfully, the changes are not partially applied according to the transaction&#8217;s atomic behavior. Streams capture changes after they occur, TTL handles expiration, and Scan retrieves items across a table or index. Transactions are therefore appropriate for workloads such as transferring application state between records or updating several related entities where partial completion could produce inconsistent results.<\/span><\/p>\n<h3><b>Question 97<\/b><\/h3>\n<p><b>A developer wants to monitor the execution duration and error rate of a Lambda function. Which service provides the required monitoring metrics?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon ECR<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon CloudWatch<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon Route 53<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Amazon Cognito<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Amazon CloudWatch provides metrics for AWS Lambda functions, including invocation count, duration, errors, throttles, and other execution information. Developers can use these metrics to understand application behavior and create alarms for operational conditions. CloudWatch Logs can also capture function output for troubleshooting. ECR is used for container image storage, Route 53 provides DNS services, and Cognito manages application identities. CloudWatch is therefore the appropriate monitoring service for Lambda performance and reliability metrics. Combining metrics, logs, and alarms can provide a more complete view of application operation.<\/span><\/p>\n<h3><b>Question 98<\/b><\/h3>\n<p><b>A developer wants to prevent an S3 object from being accidentally deleted for a defined retention period. Which S3 feature should be considered?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">S3 Object Lock<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">S3 Transfer Acceleration<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">S3 Select<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">S3 Inventory<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Amazon S3 Object Lock can help prevent objects from being deleted or overwritten during a configured retention period. It supports retention modes that provide different levels of protection and can be useful for workloads requiring immutable data or regulatory retention. Object Lock works with versioned S3 buckets and can help protect important records from accidental or unauthorized deletion. Transfer Acceleration is intended to improve data transfer performance, S3 Select retrieves selected object data, and Inventory provides object reports. When object immutability or retention protection is required, S3 Object Lock is the relevant feature.<\/span><\/p>\n<h3><b>Question 99<\/b><\/h3>\n<p><b>A developer wants to reduce the time required to initialize a Lambda function when it is invoked frequently. Which approach can help reduce initialization overhead?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Increase SQS retention.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Disable CloudWatch logging.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Reuse initialized resources outside the Lambda handler.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a new database connection for every invocation.<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Lambda functions can improve performance by initializing reusable resources outside the handler when appropriate. For example, a database client or AWS SDK client can be created during the initialization phase and reused across subsequent invocations when the execution environment remains available. This can reduce repeated connection setup and initialization overhead. Developers should avoid creating expensive resources unnecessarily during every invocation. Disabling logging does not directly solve initialization overhead, and creating a new database connection for every request can increase latency and resource consumption. Resource reuse should be implemented carefully while considering connection limits, timeouts, and application behavior.<\/span><\/p>\n<h3><b>Question 100<\/b><\/h3>\n<p><b>A developer needs to allow an application to access AWS services using credentials without embedding long-term access keys in the application code. Which approach should be preferred?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Store the root account credentials in the application.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Use IAM roles and temporary credentials.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Put access keys in a public configuration file.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Use the same administrator credentials for every application.<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">IAM roles provide applications with temporary credentials without requiring developers to embed long-term AWS access keys in source code. Depending on the compute environment, AWS services can automatically provide temporary role credentials to applications through the appropriate credential provider mechanism. This approach improves security and supports the principle of least privilege because each application can receive only the permissions it requires. Root credentials and shared administrator credentials should never be used for application workloads. Keeping long-term credentials out of source code also reduces the risk of accidental exposure through repositories, logs, or deployment artifacts.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Full Amazon AWS Certified Developer &#8211; Associate DVA-C02 Exam Dumps and Practice Test Dumps. &nbsp; Question 81 A developer needs to grant temporary AWS permissions to an application without creating long-term IAM user credentials. Which AWS service should be used? Amazon Cognito Amazon S3 AWS KMS AWS Security Token Service (STS) Correct Answer: 4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1648,1647],"tags":[],"_links":{"self":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18781"}],"collection":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/comments?post=18781"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18781\/revisions"}],"predecessor-version":[{"id":18783,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18781\/revisions\/18783"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=18781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=18781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=18781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}