Amazon AWS Certified Developer - Associate DVA-C02 Exam Practice Questions (P. 2)
- Full Access (557 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
A company is migrating legacy internal applications to AWS. Leadership wants to rewrite the internal employee directory to use native AWS services. A developer needs to create a solution for storing employee contact details and high-resolution photos for use with the new application.
Which solution will enable the search and retrieval of each employee's individual details and high-resolution photos using AWS APIs?
Which solution will enable the search and retrieval of each employee's individual details and high-resolution photos using AWS APIs?
- AEncode each employee's contact information and photos using Base64. Store the information in an Amazon DynamoDB table using a sort key.
- BStore each employee's contact information in an Amazon DynamoDB table along with the object keys for the photos stored in Amazon S3.Most Voted
- CUse Amazon Cognito user pools to implement the employee directory in a fully managed software-as-a-service (SaaS) method.
- DStore employee contact information in an Amazon RDS DB instance with the photos stored in Amazon Elastic File System (Amazon EFS).
Correct Answer:
B
B

Opting to store each employee's contact information in an Amazon DynamoDB table with the object keys for photos stored in Amazon S3 offers a robust, scalable approach for managing employee details and high-resolution images effectively. DynamoDB facilitates rapid, structured data retrieval, while S3 handles large data like images efficiently, ensuring fast access and scalability. This combination not only leverages DynamoDB's quick access capabilities but also capitalizes on S3’s cost-efficient storage solution for large files, making it a suitable choice for applications requiring organized data retrieval and large file storage.
send
light_mode
delete
Question #12
A developer is creating an application that will give users the ability to store photos from their cellphones in the cloud. The application needs to support tens of thousands of users. The application uses an Amazon API Gateway REST API that is integrated with AWS Lambda functions to process the photos. The application stores details about the photos in Amazon DynamoDB.
Users need to create an account to access the application. In the application, users must be able to upload photos and retrieve previously uploaded photos. The photos will range in size from 300 KB to 5 MB.
Which solution will meet these requirements with the LEAST operational overhead?
Users need to create an account to access the application. In the application, users must be able to upload photos and retrieve previously uploaded photos. The photos will range in size from 300 KB to 5 MB.
Which solution will meet these requirements with the LEAST operational overhead?
- AUse Amazon Cognito user pools to manage user accounts. Create an Amazon Cognito user pool authorizer in API Gateway to control access to the API. Use the Lambda function to store the photos and details in the DynamoDB table. Retrieve previously uploaded photos directly from the DynamoDB table.
- BUse Amazon Cognito user pools to manage user accounts. Create an Amazon Cognito user pool authorizer in API Gateway to control access to the API. Use the Lambda function to store the photos in Amazon S3. Store the object's S3 key as part of the photo details in the DynamoDB table. Retrieve previously uploaded photos by querying DynamoDB for the S3 key.Most Voted
- CCreate an IAM user for each user of the application during the sign-up process. Use IAM authentication to access the API Gateway API. Use the Lambda function to store the photos in Amazon S3. Store the object's S3 key as part of the photo details in the DynamoDB table. Retrieve previously uploaded photos by querying DynamoDB for the S3 key.
- DCreate a users table in DynamoDB. Use the table to manage user accounts. Create a Lambda authorizer that validates user credentials against the users table. Integrate the Lambda authorizer with API Gateway to control access to the API. Use the Lambda function to store the photos in Amazon S3. Store the object's S3 key as par of the photo details in the DynamoDB table. Retrieve previously uploaded photos by querying DynamoDB for the S3 key.
Correct Answer:
B
B

The correct approach for the application in question is using Amazon Cognito for user management due to its suitability for authenticating and authorizing web and mobile applications. More critically, choosing to store photos directly in Amazon S3 is essential, as DynamoDB has a size limitation of 400KB per item, which wouldn't accommodate the photo sizes ranging from 300KB to 5MB. Storing only the reference keys in DynamoDB ensures efficient data retrieval and minimal operational complexity, aligning well with the application's needs. This setup optimizes both storage capabilities and manageability.
send
light_mode
delete
Question #13
A company receives food orders from multiple partners. The company has a microservices application that uses Amazon API Gateway APIs with AWS Lambda integration. Each partner sends orders by calling a customized API that is exposed through API Gateway. The API call invokes a shared Lambda function to process the orders.
Partners need to be notified after the Lambda function processes the orders. Each partner must receive updates for only the partner's own orders. The company wants to add new partners in the future with the fewest code changes possible.
Which solution will meet these requirements in the MOST scalable way?
Partners need to be notified after the Lambda function processes the orders. Each partner must receive updates for only the partner's own orders. The company wants to add new partners in the future with the fewest code changes possible.
Which solution will meet these requirements in the MOST scalable way?
- ACreate a different Amazon Simple Notification Service (Amazon SNS) topic for each partner. Configure the Lambda function to publish messages for each partner to the partner's SNS topic.
- BCreate a different Lambda function for each partner. Configure the Lambda function to notify each partner's service endpoint directly.
- CCreate an Amazon Simple Notification Service (Amazon SNS) topic. Configure the Lambda function to publish messages with specific attributes to the SNS topic. Subscribe each partner to the SNS topic. Apply the appropriate filter policy to the topic subscriptions.Most Voted
- DCreate one Amazon Simple Notification Service (Amazon SNS) topic. Subscribe all partners to the SNS topic.
Correct Answer:
C
C

Option C provides an efficient and scalable method to handle notifications for multiple partners with minimal system alteration when adding new partners. By utilizing a single Amazon SNS topic and incorporating message attributes, this design ensures that each partner receives only the notifications relevant to their orders through the use of filter policies on their subscriptions. This setup avoids the complexity and scalability issues associated with managing multiple SNS topics or numerous Lambda functions. It strikes an ideal balance between simplicity, scalability, and maintainability, making it the most suitable choice for the given scenario.
send
light_mode
delete
Question #14
A financial company must store original customer records for 10 years for legal reasons. A complete record contains personally identifiable information (PII). According to local regulations, PII is available to only certain people in the company and must not be shared with third parties. The company needs to make the records available to third-party organizations for statistical analysis without sharing the PII.
A developer wants to store the original immutable record in Amazon S3. Depending on who accesses the S3 document, the document should be returned as is or with all the PII removed. The developer has written an AWS Lambda function to remove the PII from the document. The function is named removePii.
What should the developer do so that the company can meet the PII requirements while maintaining only one copy of the document?
A developer wants to store the original immutable record in Amazon S3. Depending on who accesses the S3 document, the document should be returned as is or with all the PII removed. The developer has written an AWS Lambda function to remove the PII from the document. The function is named removePii.
What should the developer do so that the company can meet the PII requirements while maintaining only one copy of the document?
- ASet up an S3 event notification that invokes the removePii function when an S3 GET request is made. Call Amazon S3 by using a GET request to access the object without PII.
- BSet up an S3 event notification that invokes the removePii function when an S3 PUT request is made. Call Amazon S3 by using a PUT request to access the object without PII.
- CCreate an S3 Object Lambda access point from the S3 console. Select the removePii function. Use S3 Access Points to access the object without PII.Most Voted
- DCreate an S3 access point from the S3 console. Use the access point name to call the GetObjectLegalHold S3 API function. Pass in the removePii function name to access the object without PII.
Correct Answer:
C
C

To meet the requirements of handling PII while maintaining only one copy of the document, using an S3 Object Lambda access point is the best approach. This feature allows you to execute the removePii Lambda function as data is retrieved from S3, enabling on-the-fly transformation of the document to exclude PII for specific requests. This ensures that the original data remains immutable and secure in S3, while still being able to provide a modified version of the data to third parties as required.
send
light_mode
delete
Question #15
A developer is deploying an AWS Lambda function The developer wants the ability to return to older versions of the function quickly and seamlessly.
How can the developer achieve this goal with the LEAST operational overhead?
How can the developer achieve this goal with the LEAST operational overhead?
- AUse AWS OpsWorks to perform blue/green deployments.
- BUse a function alias with different versions.Most Voted
- CMaintain deployment packages for older versions in Amazon S3.
- DUse AWS CodePipeline for deployments and rollbacks.
Correct Answer:
B
B

Using Lambda function aliases to manage different versions provides an efficient and low-overhead method to quickly switch between versions of your Lambda function. Aliases act as pointers to specific function versions, allowing updates or rollbacks with minimal effort. This setup streamlines the process, ensuring both agility and stability in your deployment strategy, without the complexity of managing resources manually or using additional tools.
send
light_mode
delete
Question #16
A developer has written an AWS Lambda function. The function is CPU-bound. The developer wants to ensure that the function returns responses quickly.
How can the developer improve the function's performance?
How can the developer improve the function's performance?
- AIncrease the function's CPU core count.
- BIncrease the function's memory.Most Voted
- CIncrease the function's reserved concurrency.
- DIncrease the function's timeout.
Correct Answer:
B
B
send
light_mode
delete
Question #17
For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?
- ABeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
- BApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStartMost Voted
- CBeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
- DApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
Correct Answer:
A
A
send
light_mode
delete
Question #18
A company is building a serverless application on AWS. The application uses an AWS Lambda function to process customer orders 24 hours a day, 7 days a week. The Lambda function calls an external vendor's HTTP API to process payments.
During load tests, a developer discovers that the external vendor payment processing API occasionally times out and returns errors. The company expects that some payment processing API calls will return errors.
The company wants the support team to receive notifications in near real time only when the payment processing external API error rate exceed 5% of the total number of transactions in an hour. Developers need to use an existing Amazon Simple Notification Service (Amazon SNS) topic that is configured to notify the support team.
Which solution will meet these requirements?
During load tests, a developer discovers that the external vendor payment processing API occasionally times out and returns errors. The company expects that some payment processing API calls will return errors.
The company wants the support team to receive notifications in near real time only when the payment processing external API error rate exceed 5% of the total number of transactions in an hour. Developers need to use an existing Amazon Simple Notification Service (Amazon SNS) topic that is configured to notify the support team.
Which solution will meet these requirements?
- AWrite the results of payment processing API calls to Amazon CloudWatch. Use Amazon CloudWatch Logs Insights to query the CloudWatch logs. Schedule the Lambda function to check the CloudWatch logs and notify the existing SNS topic.
- BPublish custom metrics to CloudWatch that record the failures of the external payment processing API calls. Configure a CloudWatch alarm to notify the existing SNS topic when error rate exceeds the specified rate.Most Voted
- CPublish the results of the external payment processing API calls to a new Amazon SNS topic. Subscribe the support team members to the new SNS topic.
- DWrite the results of the external payment processing API calls to Amazon S3. Schedule an Amazon Athena query to run at regular intervals. Configure Athena to send notifications to the existing SNS topic when the error rate exceeds the specified rate.
Correct Answer:
B
B
send
light_mode
delete
Question #19
A company is offering APIs as a service over the internet to provide unauthenticated read access to statistical information that is updated daily. The company uses Amazon API Gateway and AWS Lambda to develop the APIs. The service has become popular, and the company wants to enhance the responsiveness of the APIs.
Which action can help the company achieve this goal?
Which action can help the company achieve this goal?
- AEnable API caching in API Gateway.Most Voted
- BConfigure API Gateway to use an interface VPC endpoint.
- CEnable cross-origin resource sharing (CORS) for the APIs.
- DConfigure usage plans and API keys in API Gateway.
Correct Answer:
A
A
send
light_mode
delete
Question #20
A developer wants to store information about movies. Each movie has a title, release year, and genre. The movie information also can include additional properties about the cast and production crew. This additional information is inconsistent across movies. For example, one movie might have an assistant director, and another movie might have an animal trainer.
The developer needs to implement a solution to support the following use cases:
For a given title and release year, get all details about the movie that has that title and release year.
For a given title, get all details about all movies that have that title.
For a given genre, get all details about all movies in that genre.
Which data store configuration will meet these requirements?
The developer needs to implement a solution to support the following use cases:
For a given title and release year, get all details about the movie that has that title and release year.
For a given title, get all details about all movies that have that title.
For a given genre, get all details about all movies in that genre.
Which data store configuration will meet these requirements?
- ACreate an Amazon DynamoDB table. Configure the table with a primary key that consists of the title as the partition key and the release year as the sort key. Create a global secondary index that uses the genre as the partition key and the title as the sort key.Most Voted
- BCreate an Amazon DynamoDB table. Configure the table with a primary key that consists of the genre as the partition key and the release year as the sort key. Create a global secondary index that uses the title as the partition key.
- COn an Amazon RDS DB instance, create a table that contains columns for title, release year, and genre. Configure the title as the primary key.
- DOn an Amazon RDS DB instance, create a table where the primary key is the title and all other data is encoded into JSON format as one additional column.
Correct Answer:
A
A
send
light_mode
delete
All Pages