DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 Exam - Question 68


A company is building a serverless application that uses AWS Lambda functions. The company needs to create a set of test events to test Lambda functions in a development environment. The test events will be created once and then will be used by all the developers in an IAM developer group. The test events must be editable by any of the IAM users in the IAM developer group.

Which solution will meet these requirements?

Show Answer
Correct Answer: B

To meet the requirements of creating and sharing test events across developers in an IAM developer group, configuring the test events with sharing settings to make them shareable is the optimal solution. This ensures that all members have the appropriate permissions to access and edit these events directly within the AWS Lambda environment. This approach aligns with the native AWS Lambda functionalities designed to handle such use cases efficiently.

Discussion

17 comments
Sign in to comment
renektonOption: B
May 6, 2023

Under the "Test" tab there's an option. (Shareable) This event is available to IAM users within the same account who have permissions to access and use shareable events. You can check this by yourself on the Lambda Also, here's a documentation https://docs.aws.amazon.com/lambda/latest/dg/testing-functions.html#creating-shareable-events

delakOption: B
May 22, 2023

Since March of this year, this is now possible to share test events within the same account with different users.

MrTeeOption: A
Apr 20, 2023

I meant to select A

FyssyOption: A
Apr 17, 2023

To create test events that can be edited by any IAM user in a developer group, the company can create an Amazon S3 bucket and store the test event data as JSON files in the bucket.

Naj_64
Jul 10, 2023

A is wrong. To edit a test you only need IAM permissions. "To see, share, and edit shareable test events, you must have permissions for all of the following..." https://docs.aws.amazon.com/lambda/latest/dg/testing-functions.html#creating-shareable-events I'll go with B.

FyssyOption: C
Apr 19, 2023

Use roles. Not all IAM users

MrTeeOption: B
Apr 20, 2023

To create a set of test events that can be used by all developers in an IAM developer group and that are editable by any of the IAM users in the group, the company should create and store the test events in Amazon S3 as JSON objects and allow S3 bucket access to all IAM users (Option A). This will allow all developers in the IAM developer group to access and edit the test events as needed. The other options do not provide a way for multiple developers to access and edit the test events.

Cloud_CloudOption: B
Apr 23, 2023

there is an option in lambda console to share the event with other users

DUBERS
Jul 31, 2023

Would this not be C just because that's the only one that has the added security of the IAM roles?

JonalbOption: B
Oct 27, 2023

No AWS Lambda, você pode criar eventos de teste no console da AWS para invocar sua função e ver a resposta. Esses eventos de teste podem ser salvos e compartilhados com outros usuários IAM. Ao definir as configurações de compartilhamento de eventos para tornar os eventos de teste compartilháveis, você permite que todos os desenvolvedores do grupo de desenvolvedores IAM os usem e editem.

tqiu654Option: A
Dec 2, 2023

Based on ChatGPT:A

a_winOption: A
Dec 25, 2023

This approach ensures that the test events are stored centrally in an S3 bucket where all IAM users within the developer group have access. By granting access to the S3 bucket to all IAM users, any user within the group can create, edit, and retrieve the test events, meeting the requirement for collaborative access and editing. Options B and D don't directly address the need for IAM users to edit the test events; sharing settings might allow access, but they might not allow editing by all IAM users in the group. Option C, using DynamoDB, requires specific IAM role configurations for each user, which could become complex to manage and might not provide the same level of straightforward access and editing capability for all users within the IAM group.

ez_24
Jan 5, 2024

Selected Answer: A The key Concept here is Sharing - test events in the Lambda console are for individual account can't be used by other developers

SerialiDrOption: A
Jan 11, 2024

This option is viable. Amazon S3 can store JSON objects (test events), and access to these objects can be controlled through S3 bucket policies or IAM policies. By setting the correct permissions, all IAM users in the developer group can read and write to the S3 bucket, enabling them to edit and use the test events.

manngupta007
Jan 29, 2024

Answer: B https://aws.amazon.com/about-aws/whats-new/2022/03/aws-lambda-console-test-events/

SerialiDrOption: A
Feb 26, 2024

This option is the most straightforward and aligns with AWS practices for managing shared resources like test events. IAM policies can be configured to grant the necessary permissions to the developer group, ensuring that all members can access and edit the test events stored in S3. This method leverages the scalability and security features of S3, along with the granular permission control provided by IAM, to meet the requirements.

65703c1Option: B
May 22, 2024

B is the correct answer.

AnandeshOption: B
Jul 17, 2024

https://docs.aws.amazon.com/lambda/latest/dg/testing-functions.html